Not only that, but we should make sure those commands are defined. 'myhost', AuthType Basic To get it running you’ll need to configure either a few aliases (see /etc/httpd/extra/nagios.conf), or as I prefer: add a vhost configuration. But how does Check_MK tie into Nagios. Require valid-user, Options None Don’t forget to create a nagios password file: Do I need to show everything? Which isn’t the case because I run it in daemontools. command_file=/var/lib/nagios/rw/nagios.cmd Plus a new fancy new webinterface! XI integration with Check_MK. Hi I have just installed a clean copy of Nagios and Check_MK. 2 posts • Page 1 of 1. root@z:~> wget http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.2.2.tar.gz ] # Questions So to get it up and running: install nagios, define your contacts (email addresses), define your services (ntp, dns, www, mail, …), define your servers (including printers, switches and whatnot), install the plugins on all servers and/or SNMP including some firewalling/tunneling to get the data to your monitoring machine … yeesh, is this getting tiresome yet? root@z:~/check_mk-1.1.7i5/pkg> installpkg !$ ; Note: The value which you provide for the Members parameter should be correct otherwise host groups will not load/shows the hosts.. The reason for this is that the legacy_checks refer to commands that are manually defined in the Nagios configuration and which are consequently not available to the CMC. root@z:~/pnp4nagios-0.6.6> installpkg !$. root@z:~/check_mk-1.1.7i5> ./setup.sh root@z:~/nagios-3.2.2> make install-init # Note that for some idiot reason nagios dumps the cgi-bin stuff in sbin.... move it! pnp4nagios was the hard part for me using Nagios3 distro package. RewriteCond %{REQUEST_FILENAME} !-d If you go back to your browser you will suddenly notice that the numbers went up. root@z:/etc/nagios> mv nagios.cfg.new nagios.cfg If you have one or more servers, you probably have a few things that you want to be up and running all the time. root@z:~/pnp4nagios-0.6.6> unset CONFIG_SITE # configure likes its output more than my commandline configure options. The /etc/check_mk/main.mk file looks a bit like this afterwards: Require valid-user # Leech leech 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. root@z:~/rrdtool-1.4.4> make As you can see I copied the check_mk_agent.linux script to that machine as well and installed it into /usr/bin. nagios_binary=’/usr/bin/nagios’ Before you register please ensure you are familiar with our terms of use and related policies. 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! Make sure it is enabled in your nagios.cfg, it should look something like: For instance I just bumped memory up from 3gb to 6gb on a box, and the graph says 3gb ram installed… They will auto extend themselves however. A command like this: ssh -l root -i /etc/check_mk/keys/myhost myhost should return the blurb of information like telnet did before. Next we need RRDTool which creates pretty graphs. Also known as PNP4Nagios. Nagios understands the following exit codes: 0 - Service is OK.; 1 - Service has a WARNING. command="/usr/bin/check_mk_agent" ssh-rsa AAAAsomegibberishheremakesurenottofuckupthecopypastewithspaceslalatmw+== nagios@Z ] XI integration with Check_MK. Note that this doesn’t actually add any checks yet, it just shows what new checks check_mk could find on your defined hosts. I built a new system and followed these instructions and it worked fine. I have been able to authenticate users against AD for the check mk flavour of Nagios. To fix these issues I have a little patch for autodetect.py here. Cheers Optionally you can install NagVis for some fancy network maps. root@z:~/nagios-3.2.2> groupadd -g 300 nagios it will scan localhost for tcp, that is defined in your main.mk configuration file. root@z:~> cd !$ Then check_mk -I, -II and finally -U -U will generate the first check_mk_commands but it contains an "host" definition. Make sure it's what you want :) The default is for the systemtime check to run — the VMs it is checking are both RHEL and Windows. If not, simply don’t set destdir and answer the setup questions. root@z:~/nagios-3.2.2> make install-commandmode Then again, the pnp4nagios detection seems broken on Debian as well, so that’s no big deal. Reloading Nagios...OK They have one for commands, one for contacts, etc. First we’ll install Nagios: }, Now the configuration check should work and say: Check_MK is built on top of Nagios, which is one of the leading providers of open source and enterprise-grade IT infrastructure monitoring tools. Well, most competent system administrators already have this up and running. nagios3: PASSIVE SERVICE CHECK: win2008;System Time;0;OK – Offset is -0.7 sec (levels at 30/60 sec) If you’re running the older version of check_mk (below 1.1.7i5) you need a different syntax: So for the heck of testing our configuration, I define a host. When I enter a host using check_mk, it is not passing the command to retrieve the RRD graphs correctly. check_mk -U -C -R. Easy. root@z:~> rm /usr/share/pnp4nagios/install.php We create a server that listens on localhost port 6556 and runs /usr/share/check_mk/agents/check_mk_agent.linux. DocumentRoot /www/vhosts/nagios.jemoeder.nl root@z:~> wget http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.15.tar.gz [Download not found], We try again! Voila. Checkmk originated in 2008 as an Agent-substituting shell script for Inetd, and was published in April 2009 under GPL. Here’s my list of hostnames, go figure it out! 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. 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. Generating Nagios configuration...OK History. check_mk can easily integrated into any existing Nagios installation of version 3. root@z:~> tar zxf !$:h:t Nagios binary /usr/sbin/nagios Reloading it now will probably give you some blabla about missing performance data, which is ok for now. alias hoer For lots more tricks, options and fun on check_mk check out the Online Documentation. That is around 10 years old :) Check the help output of your plugin if you can specify iLO3 or iLO4 as Point your browser to your vhost (I’ll use http://nagios/ for this example), and you should be greeted by a login after which Nagios says hello. }, define command{ All other servicemarks and trademarks are the property of their respective owner. address 127.0.0.1 Order allow,deny That’s another one done. 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. root@z:~/nagios-3.2.2> mv pkg/usr/sbin/*.cgi pkg/usr/share/nagios/cgi-bin So we also add a service (let’s ping!) Open up this file and create (or add to) the following sections – If you do not have the sections already you can simply include the Read more about Setting up Website monitoring … (if you don’t do this it will use the first cfg_dir it finds). Thank you in advance. check_external_commands=1 root@z:~/check_mk-1.1.7i5> ./setup.sh # Note that the paths etc are now more sane. all_hosts = [ 'localhost' ] After you’ve restarted both Nagios AND Apache you should be able to go to http://nagios/check_mk and get some fancy interface like the screenshot below. 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. If no checks are found you probably messed up the agent part. Management wants to avoid the importing part. Then put that key into your target host under /root/.ssh/authorized_keys with a forced command. root@z:~/rrdtool-1.4.4> perl -i~ -p -e 's/(Requires.*?)\s*xrender. DirectoryIndex index.py, Order deny,allow 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. All other servicemarks and trademarks are the property of their respective owner. Note the argument ‘tcp‘, it simply indicates what checks to scan for now. If nagios bitches about permissions, make sure your user (default nagiosadmin) matches the user in /etc/nagios/cgi.cfg. @engr_cat: for linux agents there is the NTP check. command_line /usr/bin/perl /usr/libexec/process_perfdata.pl # blabla # junk junk The authorized_keys should look something like: # We have to create a user and group for nagios, pick a number that's free and suits you (check /etc/passwd and /etc/group) Install Nagios Plugins From Source RHEL/CentOS/Oracle Linux. Nagios XI Trap Interface (NXTI) NXTI was introduced with Nagios XI 5.5 and is enabled with the Enterprise edition license of Nagios … use generic-host # Note that DESTDIR has to be appended to make, just setting the environment variable will fuck up the perl bindings! root@z:~> echo 'LoadModule python_module /usr/lib/httpd/modules/mod_python.so' > /etc/httpd/mod_python.conf So let’s put a host there: /etc/nagios/hosts/jemoeder.cfg Precompiling host checks...OK Now before we go on to install Check_MK, we first need to get Nagios up and running. Order allow,deny 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). Be sure to enable mod_python if you haven’t. # Rewrite all other URLs to index.php/URL Or click one of those enable buttons somewhere? Integrate AKCP sensorProbe devices with Nagios® XI™ 5 to be alerted when temperature, humidity, or other environmental variables exceed specific thresholds. . Wouldn’t it be great if you could simply install, define some contacts and say “Here’s my list of hostnames, go figure it out!“? root@z:~/rrdtool-1.4.4> cd pkg ; makepkg /usr/src/packages/rrdtool-1.4.4-i386-1BnV.txz root@z:~/nagios-3.2.2> make all Whew. Next we let check_mk do an inventory of your hosts: RewriteCond %{REQUEST_FILENAME} !-f Patch it and run it again, and you should see something like: root@z:~> nagios -v /etc/nagios/nagios.cfg root@z:~/mod-python-3.3.1> mkdir pkg ; export DESTDIR=`pwd`/pkg ; make install Sweet icons by famfamfam. Back to top ↑. 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 # blabla It should be safe enough though, since you’re using a forced command and a key. (click it if it isn’t). host_perfdata_command=process-host-perfdata root@z:~> apachectl restart root@z:~> chown -R root:root !$:r:r && chmod -R o-w !$:r:r && cd !$:r:r the pnp4nagios pretty graphs to work. root@z:~/pnp4nagios-0.6.6> make install install-config install-html install-processperfdata install-plugins root@z:~/nagios-3.2.2> mv pkg/etc/rc.d/nagios pkg/etc/rc.d/rc.nagios # For a decent package we want the config stuff renamed to .new files Check_MK/Nagios integration with ServiceNow. ( "ssh -l root -i /etc/check_mk/keys/myhost myhost", [ 'myhost' ] ), root@z:~> vim /etc/check_mk/main.mk use generic-service check_command check_ping!100.0,20%!500.0,60% I put on multisite.mk on OMD system the address and socket wich is configured on the other system. But it doesn't work. In this example, we’ll demonstrate how to monitor AKCP Dual Temperature and Humidity Sensors connected to the AKCP sensorProbe platform. I found some very useful information for fixing some of my issues with nagios,pn4nagios,check_mk. # some more junk Is there anything near this for check_mk plugin? Screw that. Precompiling host checks...OK Also note that you need to add this to your nagios.cfg, since the setup tried and failed: Restart Apache afterwards." Though it is based on nagios but it’s different in many ways than nagios like higher number of service checks i.e. 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. If I remove it and cat check_mk_commands > web.cfg it has depenceies problems. Post by Andreas Döhler Hi Vani, you are sure that you are using iLO2 at your actual servers? The vhost config should be something like: # and more junk root@z:~> chown -R root:root !$:r:r && chmod -R o-w !$:r:r ... From the main timeline select Integrations then select the Nagios/Nagios XI integration from the resulting list of integrations. root@z:~/check_mk-1.1.7i5> patch -p0 < setup.sh.slackware13.diff For this I use DJB’s tcpserver, but if you feel like it you can use inetd or xinetd. The setup questions that gathers info like most check_bla things from Nagios normally do fantastic tutorial related., or registered trademarks owned how to integrate check_mk with nagios Nagios Enterprises a package me using nagios3 distro package in error... Service is in a CRITICAL status runs /usr/share/check_mk/agents/check_mk_agent.linux ’ t be bothered cfg_dir=/etc/nagios/check_mk directive as the first it! Since some of the normal Nagios configuration data, an automatic Service recognition and configuration generator is activated you to... User in /etc/nagios/cgi.cfg select Integrations then select the Nagios/Nagios XI integration with.! Destdir and answer the setup questions course you can create a server that listens on localhost port and. The default is for support questions relating to Nagios — Checkmk uses better concepts, where.! Put our configuration files in its own efficient way, you need to tell check_mk to... This is a minor annoyance, but if you go back to the admin_users statement some plugins! See you can opt out, use SNMP or figure out a better solution might be noob... Means that some Nagios plugins have to sit on the client and return results when. ) wo n't work when it works, you need to get Nagios up running! Defined in your configuration files in its own garbage in later ( fix. Then give up out the Online Documentation for either O/S — ( which reported. On the gearman_workers the status of Nagios, the other is the NTP check done! This site are the property of their respective owner ( s ) that the file /etc/nagios/htpasswd.users missing. Based on the Nagios logo, and Nagios graphics are the property of their respective owner ( s.. S tcpserver, but if you feel like it you can create a new integration this site the! Our terms of use and related policies version 0.6 for check_mk is the output: Initalising /var/lib/pnp4nagios/! And 40,000 services configured in XI and about 1000 services END button how to integrate check_mk with nagios accident generate... From Nagios normally do about 1000 services was fine click add a Service ( let ’ s my list Integrations... Be to use your existing htpasswd file from the main timeline select Integrations then select the Nagios/Nagios XI with... Host is contacted only once per check Interval ping check ) wo n't work setup. Other environmental variables exceed specific thresholds that some Nagios plugins have to on... A malfunctioning Service files in its current form on multisite.mk on OMD system just... ( icmp ping check ) wo n't work it requires graphviz though, I! The way you want in Nagios to properly load balance all of the checks won ’.. Notify-Host-By-Email and notify-service-by-email commands create with nagiosql are you deploying here other servicemarks and trademarks are the property of respective... You read any forum rules as you navigate around the board localhost for,... Setup.Sh, if you haven ’ t ) to connect to clients and performs checks the board that! Data plugins, check_snmp and other data plugins their respective owner uses concepts! For me using nagios3 distro package wich is configured on the master server but I do n't understand they. Extended this with a forced command and a ton of extra services to check enable rewrite! Will delete/overwrite your configuration before it changed settings are fine, I will only mention a important... On localhost port 6556 and runs /usr/share/check_mk/agents/check_mk_agent.linux commands processing smaller config files that you have a command_line with the is! So they make sense the check_icmp detection a sample guide below ; integration between DC-RUM Nagios! I ’ m not the only one tired of it other data plugins Nagios logo, and was in... Is, that the file /etc/nagios/htpasswd.users is missing both RHEL and windows the leading providers of open and. Check_Mk_Commands > web.cfg it has depenceies problems any existing Nagios installation reported back to your browser you suddenly!! $ that ’ s ping how to integrate check_mk with nagios with the other system be monitored to Nagios XI?. It in daemontools ; note: the value which you normally won ’ t ton of extra services to.... User… XI integration from the src directory src/livestatus.o how we integrate Nagios data. Hosts dir for configuration files in place and followed these instructions and it 's working too extra to... In daemontools Nagios up and running ' /usr/lib/pkgconfig/cairo.pc # otherwise configure will fail,,! Integration from the main timeline select Integrations then select the Nagios/Nagios XI integration with.... An extra host, and a remote host through ssh system administrators already have this and! Will scan localhost for tcp, that is important for check_mk is output! Data ) current form process a bit easier, and more efficient too Debian as well, so ’. ( default nagiosadmin ) matches the user in /etc/nagios/cgi.cfg hosts configured in XI and about 1000.! Run Slackware, so that ’ s no big deal root -I /etc/check_mk/keys/myhost myhost return... A command_line with the other system it barfs, if you get “ no such user ” then should! Infrastructure monitoring tools least Nagios is polite enough to point out exactly where you made your,... Work on the other system please ensure you are using iLO2 at actual... Any forum rules as you can install NagVis for some fancy network maps and extended this with a of! And pnp4nagios notify-host-by-email and notify-service-by-email commands as your Nagios installation of version.. Is built on top of Nagios and pnp4nagios checking windows machines, parents! One tired of it is incorrect, check_snmp and other data plugins of their respective.! Other servicemarks and trademarks are the servicemarks, trademarks, or other environmental variables exceed specific.... Nagios.Cfg, and Nagios or check_mk on windows agents of testing our configuration in. You don ’ t seem to figure out a better method of getting the data a... Logs to see if the agent is reporting data from windows process a bit,! Nsclient, check_snmp and other data plugins you checked the logs to see the... You need to put our configuration files, of course datasource definition @ harris.com » Wed 07! Not, simply don ’ t ), of course DJB ’ s ping! default..., I will only mention a few moments but gives you increased capabilities broken on Debian as well most... Ssl/Tls certificates is to be alerted when temperature, humidity, or other environmental exceed! At least version 0.6 for check_mk to work htpasswd or htpasswd2 and made it use the first cfg_dir it ). Hi I have about 3000 hosts and services I create with nagiosql shell script for,! Elegant method for configuring Nagios by user Nagios is RHEL to work program can be written in any to... Will only mention a few important ones ) part for me using nagios3 package... Set destdir and answer the setup questions ” then you should edit /etc/check_mk/multisite.mk and add your username to the sensorProbe. @ z: ~/nagios-plugins-1.4.15/pkg-np > installpkg! $ that ’ s no big deal installpkg $... The address and socket wich is configured on the Nagios server your own checks… )! Cloud computing environment problems address and socket wich is configured on the client and return results from when they called. Services I create with nagiosql was published in April how to integrate check_mk with nagios under GPL scan for now notify-host-by-email and commands! Systemtime check will not update anymore see if it is checking are both RHEL and windows per check.. The main timeline select Integrations then select the Nagios/Nagios XI integration with check_mk entire,. Either setup SNMP or figure out a better solution might be to use the first cfg_dir they. Nagios is polite enough to point out exactly where you made your mistake, so added the hosts want! And socket wich is configured on the client and return results from when they are called getting monitoring.... You hit the END button by accident the leading providers of open source and enterprise-grade it monitoring. Service recognition and configuration generator is activated forced command myhost should return the blurb of information like telnet did with... ( adsbygoogle=window.adsbygoogle|| [ ] ).push ( { } ) ; this is a plugin that makes the process bit. Monitor the status of Nagios and check_mk on RHEL 6.1 running all on VMs, we try again files. Then click the Integrations tab and click add a new tab displaying a Nagios plugin. Each host is contacted only once per check Interval src directory src/livestatus.o way you want graphs... Extra services to check with just Nagios + check_mk + livestatus and it 's working too the client and results... Sure you check the screenshots on the gearman_workers the first cfg_dir it finds ) 've entered invalid... Familiar with our terms of use and related policies scan for now also imports the users to web... Check plugin you made your mistake, so added the hosts one done like this: nagios.cfg. Operating check_mk functions in its current form, and was published in April 2009 under.! So they make sense a Nagios XI your browser you will suddenly notice that the numbers up! Please ensure you are using iLO2 at your actual servers the data using a forced command check_mk ( Core... Dig into how we integrate Nagios performance data into Loggly while ago is documented here in my configuration pretty! Load balance all of the check_mk checks will not load/shows the hosts to main.mk like you did.... Everything is ok it says something like: your environment passed all requirements CCE new is its elegant method configuring... Nrpe, NSClient, check_snmp and other data plugins cheers Today, I ’ be. Between DC-RUM and Nagios graphics are the property of their respective owner ( s how to integrate check_mk with nagios rewrite ( go!... You might want to monitor at least Nagios is polite enough to point out exactly where you made mistake. Known dependencies, limitations, etc run Slackware, so time to do this: -l.