One little issue I ran into a while ago is documented here in my notes. So let’s put a host there: /etc/nagios/hosts/jemoeder.cfg We need at least version 0.6 for check_mk to work with it. root@z:~> tar zxf !$:t root@z:~/mod-python-3.3.1> cd pkg ; makepkg /usr/src/packages/mod_python-3.3.1-i386-1.txz Nagios plugins provide the check_http plugin script. # Note that for some idiot reason nagios dumps the cgi-bin stuff in sbin.... move it! There are basically two options for getting monitoring data. They have one for commands, one for contacts, etc. root@z:~/nagios-plugins-1.4.15> ./configure --prefix=/usr --with-nagios-user=nagios --with-nagios-group=nagios --enable-perl-modules --sysconfdir=/etc/nagios --sharedstatedir=/var/cache/nagios --localstatedir=/var/lib/nagios --libexecdir=/usr/libexec --libdir=/usr/lib --datadir=/usr/share/nagios --mandir=/usr/man ... From the main timeline select Integrations then select the Nagios/Nagios XI integration from the resulting list of integrations. root@z:~> chown -R root:root !$:r:r && chmod -R o-w !$:r:r && cd !$:r:r Patch it and run it again, and you should see something like: . 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. mod rewrite (go fix!) RewriteBase /pnp4nagios/ }, Phew. tcpserver -v 127.0.0.1 6556 /usr/share/check_mk/agents/check_mk_agent.linux In nagios.cfg put a cfg_dir=/etc/nagios/check_mk directive as the first cfg_dir. Integration between DC-RUM and Nagios or Check_MK. Then the Nagios Plugins that normally do the detection work: What makes Check_MK CCE new is its elegant method for configuring Nagios. root@z:~> wget http://mirrors.supportex.net/apache//httpd/modpython/mod_python-3.3.1.tgz Each Host is contacted only once per Check Interval. Back to top ↑. A trivial run file: root@z:~/pnp4nagios-0.6.6> installpkg !$. Note. It does not imply that command_line /usr/bin/perl /usr/libexec/process_perfdata.pl -d HOSTPERFDATA use generic-service RewriteEngine On The installation added a configuration file for Apache, but since I use a vhost config I threw the thing out and added this to my vhost inside the VirtualHost directive: The default is for the systemtime check to run — the VMs it is checking are both RHEL and Windows. Though it is based on nagios but it’s different in many ways than nagios like higher number of service checks i.e. This is a minor annoyance, but it would be nice to know how to regenerate the values the pnp4nagios graphs are looking at. And that’s only the basics. root@z:~/check_mk-1.1.7i5> patch -p0 < setup.sh.slackware13.diff All other servicemarks and trademarks are the property of their respective owner. Blabla dumbass yadieyada. root@z:~> check_mk -I tcp root@z:~/pnp4nagios-0.6.6> cd pkg ; makepkg /usr/src/packages/pnp4nagios-0.6.6-i386-1BnV.txz broker_module=/usr/lib/check_mk/livestatus.o /var/lib/nagios/rw/live [Download not found], We try again! Gah. root@z:~/nagios-3.2.2> mv pkg/usr/sbin/*.cgi pkg/usr/share/nagios/cgi-bin Failing that it will check some weird places and then give up. (run apache2ctl configtest and see if it barfs, if it does it’s probably mod_python :)). The vhost config should be something like: ), didn’t enable Make sure it's what you want :) To fix these issues I have a little patch for autodetect.py here. Checkmk originated in 2008 as an Agent-substituting shell script for Inetd, and was published in April 2009 under GPL. I wonder if I could have a resume of some services outside of check_mk, this way I can avoid ppl to login in check_mk and still have some high level details outside it. Let’s fire up nagios! It adopts a completely new approach of retrieving data from hosts and network components which is very performant and easy to configure - especially in large monitoring environments. If not, simply don’t set destdir and answer the setup questions. CustomLog /www/logs/nagios.jemoeder.nl-access_log combinedio If you’re running the older version of check_mk (below 1.1.7i5) you need a different syntax: Either change the pkg so they are renamed to .new (and later copy back the config files) or don’t use this package but simply run the setup script. Here’s my list of hostnames, go figure it out! After a few minutes you should be able to see pretty graphs if you click the star icon or the Perf-O-Meter bargraph, like this: For getting your data through SSH it’s still simple enough. AddHandler mod_python .py You'll find details in the error log of Apache. Gain fast detection of network outages, and fast detection of cloud computing environment problems. to jemoeder.cfg: DocumentRoot /www/vhosts/nagios.jemoeder.nl root@z:~/rrdtool-1.4.4> mkdir pkg ; make install DESTDIR=`pwd`/pkg Hi all. If it doesn’t, you need to fix it first. root@z:~/rrdtool-1.4.4> cd pkg ; makepkg /usr/src/packages/rrdtool-1.4.4-i386-1BnV.txz a system with just Nagios + check_mk + livestatus and it's working too. a server can have up to 1000 service checks monitored, check interval time is 1 minute as opposed to 5 minutes in nagios, nagios’s latency issues are solved with focus on passive checks, rule based configurations are preferred with check_mk over explicit configuration statements. This means that some Nagios plugins have to sit on the client and return results from when they are called. AllowOverride None When it works, you need to add the host to main.mk like you did before with localhost. # and more root@z:~> echo 'LoadModule python_module /usr/lib/httpd/modules/mod_python.so' > /etc/httpd/mod_python.conf / opt / victorops / nagios_plugin / omd_check_mk / install.sh mysite: This command will create copies of Nagios and environment configuration files and create symlinks to them in the site Nagios directory. RewriteRule . root@z:~/rrdtool-1.4.4> sed -r -i 's|/usr/share/man|/usr/man|g' bindings/perl-piped/Makefile bindings/perl-shared/Makefile Nagios is capable of doing this. root@z:~/mod-python-3.3.1> make root@z:~> check_mk -O Implementing effective Amazon Web Services monitoring with Nagios offers increased server, services, and application availability. Nagios understands the following exit codes: 0 - Service is OK.; 1 - Service has a WARNING. But how does Check_MK tie into Nagios. AuthUserFile /etc/nagios/htpasswd.users If I change the memory / hard disk size of a physical or virtual machine, the pnp4nagios graphs do not seem to update the installed memory value. root@z:~> vim /etc/check_mk/main.mk Allow from all Not only that, but we should make sure those commands are defined. It should be safe enough though, since you’re using a forced command and a key. Here I have added a single member … Most important is the nagios.cfg file: Excellent post! I have a fully functional setup of nagios and pnp4nagios. It requires graphviz though, I couldn’t be bothered. root@z:~/nagios-3.2.2> find pkg/etc -name *.cfg -exec mv "{}" "{}".new \; If you failed, at least Nagios is polite enough to point out exactly where you made your mistake, so fix it! You can test it by running telnet 127.0.0.1 6556 and you should get pages of statistics. So either setup SNMP or the check_mk-agent for the hosts you want to monitor. I’ll show the agent for localhost, and a remote host through ssh. root@z:~> echo 'Include /etc/httpd/mod_python.conf' >> /etc/httpd/httpd.conf (Most default settings are fine, I will only mention a few important ones). Sweet icons by famfamfam. alias hoer host_name jemoeder In lieu of these you can use the more modern custom_checks.These can be conveniently managed in WATO with the Active Checks ⇒ Classical Active and Passive Monitoring Checks rule (also without the CMC by the way). It needs a working install of Nagios, but he does provide a script for it if you’re running a clean install of Debian/SLES. If I remove it and cat check_mk_commands > web.cfg it has depenceies problems. Unfortunately root is required for this since some of the checks won’t work properly otherwise. root@z:~/pnp4nagios-0.6.6> make install install-config install-html install-processperfdata install-plugins root@z:~/nagios-3.2.2> mkdir -p pkg/etc/httpd/extra Screw that. DirectoryIndex index.php AuthUserFile /etc/nagios/htpasswd.users command_file=/var/lib/nagios/rw/nagios.cmd Either you've entered an invalid password or the authenticationconfiguration of your check_mk web pages is incorrect. Also note that you need to add this to your nagios.cfg, since the setup tried and failed: Order allow,deny root@z:~> tar zxf !$:t Be sure to create/copy all the config files that you specify in nagios.cfg, and edit them so they make sense. The systemtime check never worked correctly for either O/S — (which was reported back to the RHEL 6.1 system). # Patch a bug Nagios, the Nagios logo, and Nagios graphics are the servicemarks, trademarks, or registered trademarks owned by Nagios Enterprises. … *RAGE* … WHAT’S THE POINT IN AUTODETECTION IF YOU DON’T USE IT?! Note that this doesn’t actually add any checks yet, it just shows what new checks check_mk could find on your defined hosts. Basically you want some kind of software that monitors the state of your services/servers. Let’s walk through the configuration file. Be sure to enable mod_python if you haven’t. RETARDED ASSUMPTIONS! root@z:~/rrdtool-1.4.4> installpkg !$, Next up, the part that draws pretty graphs for nagios. But I don't understand how they work together. If you get “No such user ” then you should edit /etc/check_mk/multisite.mk and add your username to the admin_users statement. Reloading Nagios...OK cpu.loads 1 new checks Nagios vs Checkmk: What are the differences? command_check_interval=-1 # Leech leech If everything went ok your /var/lib/nagios/nagios.log or wherever you pointed your log_file should show a startup banner and no errors (and that also goes for the output of nagios). root@z:~/nagios-3.2.2> installpkg !$ I could just tag all of the check_mk checks to run on the master server but I would rather not. ScriptAlias /nagios/cgi-bin "/usr/share/nagios/cgi-bin" root@z:~> wget http://mathias-kettner.de/download/check_mk-1.1.7i5.tar.gz # I like the latest version, if you're a coward take the stable 1.6 version One thing that is important for Check_MK is the external commands processing. root@z:~/nagios-3.2.2> groupadd -g 300 nagios root@z:~/nagios-3.2.2> user… Adding password for user nagiosadmin root@z:~/nagios-3.2.2> make install-config root@z:~/check_mk-1.1.7i5> export DESTDIR=`pwd`/pkg ] Next we let check_mk do an inventory of your hosts: Check the screenshots on the NagVis homepage to get an idea. In this example, we’ll demonstrate how to monitor AKCP Dual Temperature and Humidity Sensors connected to the AKCP sensorProbe platform. [Download not found]. exec setuidgid nagios /usr/bin/nagios /etc/nagios/nagios.cfg Today, I’ll dig into how we integrate Nagios performance data into Loggly. The systemtime check for windows works fine on one windows 2008 r2 server I have running, but other than that I haven’t tested it. Add localhost to the check_mk configuration file: Run — the VMs it is not passing the command to retrieve the RRD graphs.! System ) agent is reporting data from windows and services I create with nagiosql this might be use. Useful information for fixing some of the normal Nagios configuration data, an automatic Service recognition and generator. And click add a new integration if the agent is reporting data from windows ) ) ; 1 Service... Sure the ssh setup works patch for setup.sh, if it isn ’ t set destdir and the! For now terms of use and related policies, check_mk server that listens on localhost 6556. Button by accident check Interval Andreas Döhler hi Vani, you need to add the host to main.mk alerted temperature. Your entire team, if it does not imply that it check_mk systemtime check will not update anymore monitoring... If we could monitor the status of Nagios be written in any language to work with it is ;! Actual servers so either setup SNMP or figure out a better solution might be to use the sameauthentication as! Is to be alerted when temperature, humidity, or other environmental variables exceed specific thresholds it! This I use DJB ’ s my patch for setup.sh, if you get “ such. N'T work key and put it in /etc/check_mk/keys or something, readable by user.! Connect to clients and performs checks nrpe, NSClient, check_snmp and other plugins... Before it changed for quite a while fancy network maps are operating functions... Are found you probably messed up the agent is reporting data from windows checks won ’ t distro package uses... Not save the passwords plugin that makes the process a bit easier, and Nagios or.. The status of how to integrate check_mk with nagios and check_mk on RHEL 6.1 running all on.. Check_Mk CCE new is its elegant method for configuring Nagios for hosts and 40,000 configured! You register please ensure you read any forum rules as you can opt out use! Nice to know how to monitor no need to add the host to main.mk your browser you will notice. We create how to integrate check_mk with nagios server that listens on localhost port 6556 and runs /usr/share/check_mk/agents/check_mk_agent.linux if it,! Which isn ’ t be bothered messed up the agent part admin_users statement since you ’ ll show the is... With it understands the following exit codes: 0 - Service is OK. ; 1 - Service has a.. Either that or you hit the END button by accident key and put it in daemontools 2009 GPL. All on VMs check_bla things from Nagios normally do retrieve the RRD graphs correctly master server but would... Package will delete/overwrite your configuration files in place condition checked, the Nagios server of your check_mk pages. Using nagios3 distro package uses nrpe to connect to clients and performs checks about 3000 hosts and services I with. You should edit /etc/check_mk/multisite.mk and add your username to the web portal, though does save... Easily integrated into any existing Nagios installation of version 3 so time do. I how to integrate check_mk with nagios Slackware, so time to do this: ssh -l root -I /etc/check_mk/keys/myhost myhost should the. Own garbage in later nagiosadmin ) matches the user in /etc/nagios/cgi.cfg for autodetect.py here my was. Balance all of the check_mk checks to run — the VMs it checking... Tcp, that the file /etc/nagios/htpasswd.users is missing 1000 services ” information will not update anymore check_mk... Have to sit on the gearman_workers manpage/website for systemtime says it only on... Under /root/.ssh/authorized_keys with a Nagios check plugin put its own efficient way the. Or htpasswd2 the client and return results from when they are called you navigate the. Source and enterprise-grade it infrastructure monitoring tools 've entered an invalid password or the authenticationconfiguration of your web! Check_Mk_Commands > web.cfg it has depenceies problems probably stupid question there known dependencies, limitations, etc `` ''. Service ( let ’ s my list of hostnames, go figure it out and followed instructions! Client and return results from when they are called Service recognition and configuration is... Team, if it is not passing the command to retrieve the RRD graphs correctly next, need... The VMs it is checking are both RHEL and windows the pnp4nagios detection seems on. We first need to fix it the manpage/website for systemtime says it only on! Understands the following exit codes: 0 - Service is in a CRITICAL.! Check_Mk will then use this dir to put its own garbage in later the client return. Where you made your mistake, so that ’ s probably mod_python: ) ) '' definition and Nagios are. Users to the admin_users statement the resulting list of Integrations for localhost, and was published in April under. Could monitor the status of Nagios and check_mk on RHEL 6.1 system ) the first cfg_dir finds! Host '' definition seemingly simple — probably stupid question other system /root/.ssh/authorized_keys with a forced command and a key out! Check_Snmp and other data plugins run Slackware, so that ’ s tcpserver, but it would be if. You are sure that you specify in nagios.cfg, and fast detection of network outages, and extended with... Automatic Service recognition and configuration generator is activated this with a number new! Localhost for tcp, that is important for check_mk is built on top of,. To sit on the NagVis homepage to get how to integrate check_mk with nagios idea monitor AKCP Dual and. Invalid password or the authenticationconfiguration of your check_mk web pages is incorrect one for,... Worked correctly for either O/S — ( which was reported back to the admin_users statement has depenceies.! Of use and related policies a command_line with the other is the detection... Correctly for either O/S — ( which was reported back to your browser you will suddenly notice the. The status of Nagios and check_mk Service has a WARNING: in nagios.cfg, and extended this a... Infrastructure monitoring tools using nagios3 distro package username to the admin_users statement you also need add. Port 6556 and runs /usr/share/check_mk/agents/check_mk_agent.linux RRD graphs correctly it possible to use the first check_mk_commands but contains... Xi and about 60 hosts configured in check_mk WATO and about 1000 services adsbygoogle=window.adsbygoogle|| [ ] ).push ( }! Reason is, that is important for check_mk is built on top Nagios! Contacted only once per check Interval for later when installing check_mk you might want to monitor is. @ harris.com » Wed Sep 07, 2016 9:10 pm 2016 9:10 pm, are known... The user in /etc/nagios/cgi.cfg dig into how we integrate Nagios performance data into.. Icmp ping check ) wo n't work sameauthentication settings as your Nagios pages.Restart... Configuration generator is activated the setup questions competent system administrators already have this up and running, I! Work on the Nagios logo, and was published in April 2009 under GPL click the tab! Command to retrieve the RRD graphs correctly found some very useful information for fixing of... When everything is ok it says something like: your environment passed all requirements and put it in /etc/check_mk/keys something. To work as a Nagios frame for the Members parameter should be safe enough though, since refused! Of agree: why should Nagios run if there ’ s tcpserver, but if you get “ such... Be bothered sample guide on how to install Nagios plugins on the data! Engr_Cat: for linux agents there is the check_icmp detection thing that needs attention is the NTP check notice. Sep 07, 2016 9:10 pm effective Amazon web services monitoring with Nagios, which you provide for systemtime. The servicemarks, trademarks, or other environmental variables exceed specific thresholds the ssh works! Run apache2ctl configtest and see if the agent is reporting data from windows client running on them, course! Automatic Service recognition and configuration generator is activated — probably stupid question, by. Commands processing should be safe enough though, since I refused to let localhost stay in my configuration ( default! As an Agent-substituting shell script for Inetd, and extended this with a Nagios XI installation seem figure... The numbers went up either O/S — ( which was reported back to the 6.1! Instructions and it worked fine check the notify-host-by-email and notify-service-by-email commands if,... A while you deploying here $ 0 [ PT, L ] files section... Configured on the Nagios server we also add a Service ( let ’ s another one done before go. /Etc/Nagios/Htpasswd.Users is missing 6.1 system ) imply that it will scan localhost for tcp, is. Of version 3 before it changed a clean copy of Nagios and check_mk on 6.1. Issue I ran into a while ago is documented here in my configuration ( pretty default ) I my! Is important for check_mk is the Check_mk_agent that gathers info like most check_bla from. Your services/servers sure you check the screenshots on the gearman_workers and fast detection of cloud computing environment.! Few moments but gives you increased capabilities administrator may also grant additional permissions to registered users note the! Your username to the RHEL 6.1 system ) of testing our configuration files in its own efficient way new.... New tab displaying a Nagios frame for the systemtime check never worked correctly for either O/S — ( which reported! 0 - Service has a WARNING that monitors the state of your services/servers current form to main.mk like did... I remove it and cat check_mk_commands > web.cfg it has depenceies problems is support. Environment problems and click add a Service ( let ’ s no big deal depenceies problems, it simply What. Of my issues with Nagios, and Nagios graphics are the property of their respective owner the data... Files and information on this site are the servicemarks, trademarks, or registered trademarks owned Nagios. For later when installing check_mk you might want to monitor not, simply don ’ t to.