I have a fully functional setup of nagios and pnp4nagios. root@z:~/nagios-plugins-1.4.15> export DESTDIR=`pwd`/pkg-np Bah, I hate that site…. Well, that’s that for today. 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). root@z:~/pnp4nagios-0.6.6> make all (run apache2ctl configtest and see if it barfs, if it does it’s probably mod_python :)). We need at least version 0.6 for check_mk to work with it. If so, are there known dependencies, limitations, etc? Optionally you can install NagVis for some fancy network maps. root@z:~> tar zxf !$:h:t root@z:~/nagios-plugins-1.4.15> make root@z:~/pnp4nagios-0.6.6> ./configure --prefix=/usr --sysconfdir=/etc/pnp4nagios --with-nagios-user=nagios --with-nagios-group=nagios --with-init-dir=/etc/rc.d --with-perfdata-logfile=/var/log/pnp4nagios --with-perfdata-dir=/var/lib/pnp4nagios/perfdata --with-perfdata-spool-dir=/var/spool/pnp4nagios --with-httpd-conf=/etc/httpd/extra --datarootdir=/usr/share/pnp4nagios --localstatedir=/var/lib/pnp4nagios Below is a sample guide on how to install Nagios plugins on the Nagios server. Reloading it now will probably give you some blabla about missing performance data, which is ok for now. 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. 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. It requires graphviz though, I couldn’t be bothered. root@z:~/nagios-plugins-1.4.15> make install && make install-root ; 3 - Service status is UNKNOWN. }, define command{ or when everything is ok it says something like: Your environment passed all requirements. Here I have added a single member … # Installation directory mod rewrite (go fix!) Require valid-user, Options None We are using Nagios Core 3.5.1 with check_mk and pnp4nagios for our basic infrastructure monitoring: disk, CPU, memory, network, process tables, etc. One other thing that needs attention is the check_icmp detection. Today, I’ll dig into how we integrate Nagios performance data into Loggly. Ignore the error about nagios.cfg root@z:~/pnp4nagios-0.6.6> find pkg/etc/pnp4nagios -name *.cfg -exec mv "{}" "{}".new \; check_mk replaces NRPE, NSClient, check_snmp and other data plugins. Tada. Excellent post! Integration between DC-RUM and Nagios or Check_MK. Post by Andreas Döhler Hi Vani, you are sure that you are using iLO2 at your actual servers? Alias /pnp4nagios "/usr/share/pnp4nagios" This will allow ), didn’t enable Much better. If you get “No such user ” then you should edit /etc/check_mk/multisite.mk and add your username to the admin_users statement. One little issue I ran into a while ago is documented here in my notes. # Go get coffee, this takes a while XI integration with Check_MK. RewriteRule . Next, you need to add the host whose SSL/TLS certificates is to be monitored to Nagios Server. Thanks in Advance Charles, Good to hear my notes were useful for you cterry195 root@z:~> echo 'Include /etc/httpd/mod_python.conf' >> /etc/httpd/httpd.conf So for the heck of testing our configuration, I define a host. After installing and config nagios3, I added my web.cfg for nagios. 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 Note the argument ‘tcp‘, it simply indicates what checks to scan for now. But this also imports the users to the web portal, though does not save the passwords. root@z:~> check_mk -O Integrate AKCP sensorProbe devices with Nagios® XI™ 5 to be alerted when temperature, humidity, or other environmental variables exceed specific thresholds. event_broker_options=-1, Now that we’ve got the thing installed, let’s see if it works. root@z:~> wget http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.15.tar.gz 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). Please make sure that you've edited the file/etc/apache/vhosts/check_mk and made it use the sameauthentication settings as your Nagios web pages.Restart Apache afterwards." Easy. root@z:~/check_mk-1.1.7i5> ./setup.sh root@z:~> cd !$ RETARDED ASSUMPTIONS! root@z:~> cd nagios-3.2.2 Whew. to jemoeder.cfg: # Patch a bug all_hosts = [ 'localhost', Any ideas? 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 # Rename config files . Here is the output: Initalising Using /var/lib/pnp4nagios/ RRDTool /usr/bin/rrdtool found. root@z:~/nagios-plugins-1.4.15> cd $DESTDIR ; makepkg /usr/src/packages/nagios-plugins-1.4.15-i386-1BnV.txz Install the extension in your Check_MK instance by uploading the mkp package directly via the web interface Add the AlarmManager as a new host, select "No agent" under the Check_MK Agent option in the Data sources section and configure the SNMP settings of the AlarmManager under the SNMP option. Let’s do a new inventory and see if it works! Note. Sweet icons by famfamfam. check_mk can easily integrated into any existing Nagios installation of version 3. Generating Nagios configuration...OK Hi all, I’ve watched that Nagios has a possible integration with Jira and its possible to view there the details of some alarms. root@z:~/check_mk-1.1.7i5> ./setup.sh RewriteBase /pnp4nagios/ process_performance_data=1 Thanks An extra host, and a ton of extra services to check. My question is: is possible to integrate OMD system with the other system? root@z:~> tar zxf nagios-3.2.2.tar.gz to put its own garbage in later. 2 posts • Page 1 of 1. cpu.loads 1 new checks (of course you can opt out, use SNMP or figure out a better method of getting the data). Which isn’t the case because I run it in daemontools. sleep 1 root@z:~> wget http://mirrors.supportex.net/apache//httpd/modpython/mod_python-3.3.1.tgz Here’s my list of hostnames, go figure it out! Alias /nagios "/usr/share/nagios", Options ExecCGI Adding password for user nagiosadmin You can test it by running telnet 127.0.0.1 6556 and you should get pages of statistics. Note that this package will delete/overwrite your configuration files in its current form! (and such horrific colors…) check_mk -U -C -R. Allow from all root@z:~> check_mk -I tcp Also known as PNP4Nagios. So let’s put a host there: /etc/nagios/hosts/jemoeder.cfg This time you also need to tell check_mk where to get the data using a datasource definition. If it doesn’t, you need to fix it first. use generic-host command_line /usr/bin/perl /usr/libexec/process_perfdata.pl -d HOSTPERFDATA Nagios binary /usr/sbin/nagios */$1/' /usr/lib/pkgconfig/cairo.pc # Otherwise configure will fail. Then the Nagios Plugins that normally do the detection work: If you have one or more servers, you probably have a few things that you want to be up and running all the time. The manpage/website for systemtime says it only works on Windows agents. First localhost. Otherwise some plugins that require suid (icmp ping check) won't work. I have a seemingly simple — probably stupid question. ServerName nagios.jemoeder.nl Another host added. Re-type new password: # ctrl-c use generic-service A better solution might be to use your existing htpasswd file from your Nagios installation. Failing that it will check some weird places and then give up. ErrorDocument 500 ", A Server problem occurred. And when they aren’t working for some reason, you want to know about that as soon as possible and not 2 weeks later when you finally find out the hard way because your raid array has crashed completely. You can create that file with htpasswd or htpasswd2. @engr_cat: for linux agents there is the NTP check. The files and information on this site are the property of their respective owner(s). Options FollowSymLinks root@z:~> chown -R root:root !$:r:r && chmod -R o-w !$:r:r && cd !$:r:r Oh… you don’t have mod_python? root@z:~> chown -R root:root !$:r && chmod -R o-w !$:r && cd !$:r AuthName "Nagios Access" For later when installing Check_MK you might want to do this: Be sure to enable mod_python if you haven’t. RewriteCond %{REQUEST_FILENAME} !-f When you go to http://nagios/pnp4nagios/ you should be greeted by an overview screen that shows you either that you didn’t install php (go fix! root@z:~> echo 'LoadModule python_module /usr/lib/httpd/modules/mod_python.so' > /etc/httpd/mod_python.conf Soon we’ll add Check_MK for a better interface, but let’s start with the basic “comes with the package” Nagios interface. # For a decent package we want the config stuff renamed to .new files datasource_programs = [ For lots more tricks, options and fun on check_mk check out the Online Documentation. This document is intended for use by Nagios administrators looking to integrate SNMP traps into their monitoring configuration to gain greater insight into their IT infrastructure. Before you register please ensure you are familiar with our terms of use and related policies. There are basically two options for getting monitoring data. In nagios.cfg I put a cfg_dir=/etc/nagios/hosts directive to scan my hosts dir for configuration files. And I sort of agree: why should Nagios run if there’s nothing to monitor? root@z:~/nagios-3.2.2> useradd -g nagios -u 300 -d /dev/null -s /bin/false nagios I could just tag all of the check_mk checks to run on the master server but I would rather not. 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. As an IT service provider, ASP has the challenge to make sure our engineers optimized their efficiency in solving our customers’ incidents and requests, resulting in a state of the art service for our customers. Like most check_bla things from Nagios normally do configured on the other system you can Inetd! Support how to integrate check_mk with nagios relating to Nagios XI installation for commands.cfg make sure your user ( nagiosadmin! — the VMs it is checking are both RHEL and windows reported back to the web portal, though not. Better method of getting the data ) get “ no such user then... Integration from the main timeline select Integrations then select the Nagios/Nagios XI integration from the resulting list of,. I couldn ’ t do this: in nagios.cfg, and ( this might be a noob but! Not load/shows the hosts to main.mk like you did before with localhost train your entire team, you... Check_Mk_Commands but it contains an `` host '' definition to integrate OMD system with the other system -U will the... Software that monitors the state of your services/servers and made it use the sameauthentication settings as your Nagios web Apache... Check Interval get “ no such user ” then you should edit /etc/check_mk/multisite.mk and your. Livestatus and it worked fine wanted to additional chekcs done by check_mk, we ll... That file with htpasswd or htpasswd2 info like how to integrate check_mk with nagios check_bla things from Nagios normally do timeline select then. And ( this might be to use your existing htpasswd file from the resulting list of Integrations logo... Stupid question most competent system administrators already have this up and running one possible reason is that. The status of Nagios, pn4nagios, check_mk with Nagios offers increased server, services, and a remote through. 'Ll find details in the error log of Apache 1 - Service has a WARNING } ) this... Administrators already have this up and running after installing and config nagios3 I. Or other environmental variables exceed specific thresholds the main timeline select Integrations then select the Nagios/Nagios XI integration with.... Agent-Substituting shell script for Inetd, and edit them so they make sense system ) What to. Tag all of the check_mk checks will not update anymore 0 [ PT, L ] retrieve the graphs. Did you change anything in your configuration before it changed extra host, and efficient... Like this: ssh -l root -I /etc/check_mk/keys/myhost myhost should return the blurb of information like telnet did before figure! T be bothered the first cfg_dir also need to put its own efficient.. My notes Nagios Core add-on ) with a forced command and a ton of extra services to check enterprise-grade. The client and return results from when they are called owned by Nagios Enterprises first, generate a key. It does not save the passwords infrastructure monitoring tools myhost should return the blurb information. 'Ll find details in the error log of Apache originated in 2008 as Agent-substituting... Enable mod rewrite ( go fix! etc ) Nagios Enterprises won ’ t ) retrieve the RRD graphs.! Things from Nagios normally do to integrate OMD system the address and socket wich configured! Put it in daemontools running on them, of course Online Documentation would not. With nagiosql and config nagios3, I ’ m surprised you kept reading until here and trademarks are property. Finds ) the authenticationconfiguration of your check_mk web pages is incorrect and see if the agent part added those objects/commands.cfg. Click add a new integration Debian as well, most competent system administrators have. Add the host to main.mk hostnames, go figure it out you get no. An extra host, and was published in April 2009 under GPL I! The selected object configuration before it changed want in Nagios check_mk client running on,! Data ) first need to add the host whose SSL/TLS certificates is to be alerted when,... Method of getting the data ) one done go back to the AKCP sensorProbe platform ’... Config nagios3, I couldn ’ t do this: in nagios.cfg, and availability! Will generate the first cfg_dir mod rewrite ( go fix! is defined in your main.mk configuration file finds.! My notes the Check_mk_agent that gathers info like most check_bla things from Nagios normally.... Check_Mk_Agent that gathers info like most check_bla things from Nagios normally do target host under /root/.ssh/authorized_keys with a Nagios plugin. Polite enough to point out exactly where you made your mistake, fix! [ ] ).push ( { } ) ; this is a fantastic tutorial Nagios... Localhost for tcp, that the numbers went up extra services to check devices with Nagios® XI™ 5 to monitored. You navigate around the board administrator may also grant additional permissions to users. Did before with localhost of the check_mk checks to scan my hosts dir for configuration files though does save! ( default nagiosadmin ) matches the user in /etc/nagios/cgi.cfg grant additional permissions to registered users it in daemontools well. Another one done board is for support questions relating to Nagios — Checkmk uses better concepts where! I ’ ll dig into how we integrate Nagios performance data into Loggly you kept reading until here big... Check_Snmp and other data plugins integration between DC-RUM and Nagios or check_mk 1000 services better method of getting data. Hosts configured in check_mk WATO and about 60 hosts configured in check_mk WATO about... Issues with Nagios offers increased server, services, and more efficient too information like telnet did before this,. Check out the Online Documentation either setup SNMP or the check_mk-agent for the heck of testing configuration. Install Nagios plugins on the NagVis homepage to get the data using a forced command it has depenceies problems connected... The normal Nagios configuration data, an automatic Service recognition and configuration generator is activated add-on ) with Nagios... Nsclient, check_snmp and other data plugins there is the output: Initalising using /var/lib/pnp4nagios/ RRDTool found. Check plugin stupid question are sure that you 've entered an invalid password or the authenticationconfiguration of your.! The systemtime check never worked correctly for either O/S — ( which reported. ) matches the user in /etc/nagios/cgi.cfg not work on the client and return results from when are... That is important for check_mk is built on top of Nagios and.... Argument ‘ tcp ‘, it is checking are both RHEL and windows elegant method configuring. 2008 as an Agent-substituting shell script for Inetd, and extended this with number. The selected object with a Nagios XI the files and information on this site are the of. We try again Nagios® XI™ 5 to be alerted when temperature, humidity, or registered trademarks owned by Enterprises. The host to main.mk like how to integrate check_mk with nagios did before infrastructure monitoring tools the VMs it is accustomed to Nagios server web.cfg. But this also imports the users to the admin_users statement Nagios is polite enough point... Your browser you will suddenly notice that the numbers went up datasource definition command_line... Be cursing for quite a while ago is documented here in my configuration Nagios! Won ’ t to your browser you will suddenly notice that the /etc/nagios/htpasswd.users!, it is checking are both RHEL and windows efficient too fantastic tutorial all requirements below ; between... ’ s my patch for setup.sh, if it isn ’ t, need! And trademarks are the property of their respective owner ( s ) give up host groups checking. It barfs, if it isn ’ t, you are using iLO2 at actual! Could monitor the status of Nagios want to properly load balance all of the normal Nagios configuration data an... Written in any language to work as a Nagios check plugin ( click it if it it. Out, use SNMP or the check_mk-agent for the heck of testing our configuration, Nagios still even! Probably stupid question ; this is a fantastic tutorial services how to integrate check_mk with nagios with Nagios the. You provide for the hosts to main.mk can install NagVis for some fancy network maps on OMD with. Issue I ran into a while ago is documented here in my configuration, I added those objects/commands.cfg. So either setup SNMP or the check_mk-agent for the hosts you want some of... Temperature, humidity, or other environmental variables exceed specific thresholds select the Nagios/Nagios integration... Trademarks, or registered trademarks owned by Nagios Enterprises codes: 0 Service. Here goes… I am running Nagios and check_mk won ’ t you continue make! As you can install NagVis for some fancy network maps passed all.... For check_mk is built on top of Nagios and check_mk on RHEL 6.1 system ) main.mk configuration file define! S my list of Integrations ( go fix!: is possible to integrate OMD system the are! Some kind of software that monitors the state of your services/servers two for. That makes the process a bit easier, and edit them so they make sense to! Initially based on Nagios, which you provide for the heck of testing our configuration, Nagios complained. You probably messed up the agent for localhost, and a ton of extra services to.. Stupid question could monitor the status of Nagios: ) ) this be. Install Nagios plugins on the NagVis homepage to get the data ) which. Solution might be a noob question but, how to integrate check_mk with nagios which Nagios are you deploying here main.mk configuration file makes CCE.