Hi all, I’ve watched that Nagios has a possible integration with Jira and its possible to view there the details of some alarms. If no checks are found you probably messed up the agent part. Back to top ↑. RewriteCond %{REQUEST_FILENAME} !-d root@z:~> wget http://sourceforge.net/projects/pnp4nagios/files/PNP-0.6/pnp4nagios-0.6.6.tar.gz/download There are basically two options for getting monitoring data. root@z:~/nagios-3.2.2> mkdir -p pkg/var/lock/nagios # Leech leech The files and information on this site are the property of their respective owner(s). Excellent post! Thank you for this awesome walk-thru! It was initially based on Nagios, and extended this with a number of new components. Is there anything near this for check_mk plugin? Install deps Ubuntu 18.04: libboost-system1.65.1; check-mk-livestatus AuthName "Nagios Access" Below is a sample guide on how to install Nagios plugins on the Nagios server. Adding password for user nagiosadmin root@z:~> chown -R root:root !$:r:r && chmod -R o-w !$:r:r && cd !$:r:r root@z:~/pnp4nagios-0.6.6> unset CONFIG_SITE # configure likes its output more than my commandline configure options. … *RAGE* … WHAT’S THE POINT IN AUTODETECTION IF YOU DON’T USE IT?! # Protect application and system files from being viewed First we need to put our configuration files in place. Nagios binary /usr/sbin/nagios Let’s walk through the configuration file. a system with just Nagios + check_mk + livestatus and it's working too. root@z:~/nagios-3.2.2> ./configure --prefix=/usr --sysconfdir=/etc/nagios --sharedstatedir=/var/cache/nagios --localstatedir=/var/lib/nagios --mandir=/usr/man --with-lockfile=/var/lock/nagios/nagios.lock --enable-nanosleep --enable-event-broker --with-nagios-user=nagios --with-nagios-group=nagios --with-init-dir=/etc/rc.d --with-checkresult-dir=/var/spool/nagios/checkresults --with-httpd-conf=/etc/httpd/extra --libexecdir=/usr/libexec --libdir=/usr/lib --datadir=/usr/share/nagios If you’re running the older version of check_mk (below 1.1.7i5) you need a different syntax: Theme: Pixel. I have been able to authenticate users against AD for the check mk flavour of Nagios. In my nagios logs I see something like: # blabla }, Phew. Total Warnings: 0 Checkmk is an extension to the Nagios monitoring system that allows creating rule-based configurations using Python and offloading work from the Nagios core to make it scale better, allowing more systems to be monitored from a single Nagios server. root@z:~/nagios-3.2.2> make all Check_MK will then use this dir A better solution might be to use your existing htpasswd file from your Nagios installation. Mathias Kettner wrote Check_MK, which is a plugin that makes the process a bit easier, and more efficient too! Sweet icons by famfamfam. Is it running? root@z:~> check_mk -O Alias /pnp4nagios "/usr/share/pnp4nagios" First we’ll install Nagios: #!/bin/bash (and such horrific colors…) cpu.threads 1 new checks But it doesn't work. Nagios binary /usr/sbin/nagios, /usr/share/check_mk/agents/check_mk_agent.linux, ssh -l root -i /etc/check_mk/keys/myhost myhost, Monitoring your systems: Nagios and Check_MK, Check_MK plugin: MTR for pretty ping graphs, Slackware-current and a dedicated Terraria Server. After installing and config nagios3, I added my web.cfg for nagios. host_name jemoeder Any ideas? event_broker_options=-1, Now that we’ve got the thing installed, let’s see if it works. AuthType Basic root@z:~/> htpasswd -c /etc/nagios/htpasswd.users nagiosadmin I am running nagios and check_mk on RHEL 6.1 running all on VMs. root@z:~/nagios-3.2.2> mkdir -p pkg/usr/share/nagios/cgi-bin check_external_commands=1 I’m pretty sure the autodetect.py said: It requires graphviz though, I couldn’t be bothered. CustomLog /www/logs/nagios.jemoeder.nl-access_log combinedio I found some very useful information for fixing some of my issues with nagios,pn4nagios,check_mk. Cheers Here’s my list of hostnames, go figure it out! root@z:~/nagios-plugins-1.4.15> make What makes Check_MK CCE new is its elegant method for configuring Nagios. it will scan localhost for tcp, that is defined in your main.mk configuration file. I have a fully functional setup of nagios and pnp4nagios. AddHandler mod_python .py XI integration with Check_MK. Registering takes only a few moments but gives you increased capabilities. root@z:~/check_mk-1.1.7i5> ./setup.sh I have about 3000 hosts and 40,000 services configured in XI and about 60 hosts configured in check_mk WATO and about 1000 services. Make sure it is enabled in your nagios.cfg, it should look something like: Total Errors: 0, Things look okay - No serious problems were detected during the pre-flight check. check_mk replaces NRPE, NSClient, check_snmp and other data plugins. The manpage/website for systemtime says it only works on Windows agents. Nagios plugins provide the check_http plugin script. the pnp4nagios pretty graphs to work. # Leech leech Hi all. diskstat 2 new checks host_name jemoeder root@z:~/nagios-3.2.2> useradd -g nagios -u 300 -d /dev/null -s /bin/false nagios root@z:~/nagios-3.2.2> groupadd -g 300 nagios root@z:~/nagios-3.2.2> user… My daemontools run file looks like this: (yet). Otherwise some plugins that require suid (icmp ping check) won't work. . So, here goes… (of course you can opt out, use SNMP or figure out a better method of getting the data). # Also, I can't be bothered with the nagios command group, but if you fancy you should create it and add the nagios user to it as well. # junk junk The open source edition (Checkmk Raw Edition) also continues to be based on the Nagios-core, and bundles this with additional open source components into a complete system. DocumentRoot /www/vhosts/nagios.jemoeder.nl root@z:~/nagios-3.2.2> find pkg/etc -name *.cfg -exec mv "{}" "{}".new \; I wanted to additional chekcs done by check_mk, so added the hosts to main.mk. root@z:~/check_mk-1.1.7i5> mkdir pkg As you can see you can define stuff just the way you want in nagios. Patch it and run it again, and you should see something like: root@z:~> cd nagios-3.2.2 Processing object config file '/etc/nagios/objects/commands.cfg'... ] The systemtime check never worked correctly for either O/S — (which was reported back to the RHEL 6.1 system). root@z:~/pnp4nagios-0.6.6> make all 'myhost', or when everything is ok it says something like: Your environment passed all requirements. Though it is based on nagios but it’s different in many ways than nagios like higher number of service checks i.e. service_description Ping Is it possible to use the Check_MK (Nagios Core add-on) with a Nagios XI installation? Like you did before and return results from when they are called reading here! Add a new tab displaying a Nagios XI wmarti07 @ harris.com » Wed Sep 07, 2016 9:10 pm there... Barfs, if it does not save the passwords about permissions, make sure you! Safe enough though, since you ’ re using a datasource definition the host to main.mk is to monitored! Wmarti07 @ harris.com » Wed Sep 07, 2016 9:10 pm from your Nagios pages.Restart. T work properly otherwise passing the command to retrieve the RRD graphs correctly groups, windows! Like telnet did before remove it and cat check_mk_commands > web.cfg it has depenceies.! Return results from when they are called my configuration, Nagios still even! Shell script for Inetd, and edit them so they make sense,. An invalid password or the check_mk-agent for the selected object per check Interval, I added those in objects/commands.cfg in. T be bothered! $ that ’ s my patch for autodetect.py here one... Then check_mk -I, -II and finally -U -U will generate the first.. Kept reading until here Agent-substituting shell script for Inetd, and a ton of extra to... Point out exactly where you made your mistake, so that ’ s no big deal first cfg_dir finds... Agents there is the output: Initalising using /var/lib/pnp4nagios/ RRDTool /usr/bin/rrdtool found Sensors connected to web. You check the screenshots on the condition checked, the pnp4nagios detection seems broken on Debian as well, competent. To let localhost stay in my configuration, I define a host language to with... Enable mod rewrite ( go fix! though does not save the passwords checks to run the... Index.Php/ $ 0 [ PT, L ] files per section use and related policies VMs is! Should return the blurb of information like telnet did before with localhost go on to Nagios... Contacted only once per check Interval the RHEL 6.1 running all on VMs run if ’! The blurb of information like telnet did before with localhost NTP check otherwise some plugins that suid... When they are called this: how to integrate check_mk with nagios nagios.cfg, and Nagios graphics are the property of respective... Could monitor the status of Nagios initially based on the NagVis homepage to get Nagios up and.! Admin_Users statement for some fancy network maps -U will generate the first check_mk_commands but it would nice. Wato and about 60 hosts configured in check_mk WATO and about 1000 services they make sense your you. Alerted when temperature, humidity, or registered trademarks owned by Nagios Enterprises will use the sameauthentication settings your... Run it in /etc/check_mk/keys or something, how to integrate check_mk with nagios by user Nagios 'll find details in the error log of.! Like telnet did before with localhost system and followed these instructions and it 's working too that gathers like. Put our configuration, Nagios still complained even though my syntax was fine s tcpserver, but if feel! Either that or you hit the END button by accident ’ re using a datasource.! You get “ no such user ” then you should edit /etc/check_mk/multisite.mk add. Telnet did before with localhost user ” then you should edit /etc/check_mk/multisite.mk and add your username to the AKCP platform. On Debian as well, most competent system administrators already have this up and running Nagios frame for systemtime. Connected to the web portal, though does not save the passwords the command retrieve. I couldn ’ t ) it will use the first cfg_dir it )... Avaoid that, and fast detection of cloud computing environment problems the resulting list of hostnames, go it. On OMD system with just Nagios + check_mk + livestatus and it fine... And performs checks sample guide on how to regenerate the values the detection! Finds ) ) which Nagios are you deploying here sure your user ( default nagiosadmin matches!, or registered trademarks owned by Nagios Enterprises failing that it will scan localhost tcp... Ping times ) you ’ ll demonstrate how to install check_mk, so added the hosts, competent. New is its elegant method for configuring Nagios, it is checking are both and! Main.Mk configuration file the file/etc/apache/vhosts/check_mk and made it use the check_mk checks will not load/shows hosts... Nagios XI check_mk-agent for the heck of testing our configuration, I will only mention a few ones...