how to integrate check_mk with nagios

how to integrate check_mk with nagios

It should be safe enough though, since you’re using a forced command and a key. And I sort of agree: why should Nagios run if there’s nothing to monitor? Optionally you can install NagVis for some fancy network maps. # Go get coffee, this takes a while Require valid-user, Options None root@z:~/check_mk-1.1.7i5> ./setup.sh Well, that’s that for today. Now before we go on to install Check_MK, we first need to get Nagios up and running. 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. AddHandler mod_python .py 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. root@z:~/nagios-plugins-1.4.15> cd $DESTDIR ; makepkg /usr/src/packages/nagios-plugins-1.4.15-i386-1BnV.txz However, since I refused to let localhost stay in my configuration, Nagios still complained even though my syntax was fine. Most important is the nagios.cfg file: Allow from all # Rewrite all other URLs to index.php/URL command_file=/var/lib/nagios/rw/nagios.cmd The default is for the systemtime check to run — the VMs it is checking are both RHEL and Windows. ScriptAlias /nagios/cgi-bin "/usr/share/nagios/cgi-bin" host_name jemoeder Then the Nagios Plugins that normally do the detection work: or when everything is ok it says something like: Your environment passed all requirements. Now to build a package: root@z:~> cd rrdtool-* root@z:~> tar zxvf !#:t Alias /pnp4nagios "/usr/share/pnp4nagios" Back to top ↑. Reloading Nagios...OK On your Services Directory page:If you are creating a new service for your integration, click +New Service.If you are adding your integration to an existing service, click the name of the service you want to add the integration to. Thank you in advance. Nagios plugins provide the check_http plugin script. 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. RewriteBase /pnp4nagios/ In my nagios logs I see something like: # Allow any files or directories that exist to be displayed directly It requires graphviz though, I couldn’t be bothered. DocumentRoot /www/vhosts/nagios.jemoeder.nl So we do that (or you can choose to rename it I guess): Next, you need to add the host whose SSL/TLS certificates is to be monitored to Nagios Server. max_check_attempts 3 check_command check_ping!100.0,20%!500.0,60% 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. Failing that it will check some weird places and then give up. If you followed my install garbage from above you should make it look something like this: }, define command{ First, generate a host key and put it in /etc/check_mk/keys or something, readable by user nagios. One thing we should change is for pnp4nagios. 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. It does not imply that Either that or you hit the END button by accident. AuthType Basic One possible reason is, that the file /etc/nagios/htpasswd.users is missing. root@z:~/mod-python-3.3.1> cd pkg ; makepkg /usr/src/packages/mod_python-3.3.1-i386-1.txz RewriteRule . * index.php/$0 [PT,L]. root@z:~/nagios-plugins-1.4.15> make install && make install-root root@z:~/nagios-3.2.2> mkdir -p pkg/var/lock/nagios Require valid-user 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 I do have one puzzling problem is that for some reason just a few weeks ago I started getting lots of Warning Status in Nagios and Check_Mk consoles that say ERROR – you did an active check on this service – please disable active checks. I have been able to authenticate users against AD for the check mk flavour of Nagios. address 127.0.0.1 ; 2 - Service is in a CRITICAL status. Alias /check_mk /usr/share/check_mk/web/htdocs * Found running Nagios process, autodetected 18 settings. All other servicemarks and trademarks are the property of their respective owner. all_hosts = [ 'localhost' ] That finally worked. @engr_cat: for linux agents there is the NTP check. XI integration with Check_MK. 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 ), didn’t enable If you failed, at least Nagios is polite enough to point out exactly where you made your mistake, so fix it! Processing object config file '/etc/nagios/objects/commands.cfg'... Blabla dumbass yadieyada. Below are parameters used in hostgroups, Hostgroup_name: Give the name of your website or project; Alias: Any short name of your site or project; Members: Give the name which you used in the host.cfg file as host_name. (if you don’t do this it will use the first cfg_dir it finds). 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. 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 The board administrator may also grant additional permissions to registered users. root@z:~> check_mk -O If you go back to your browser you will suddenly notice that the numbers went up. check_command check_ping!100.0,20%!500.0,60% check_external_commands=1 If no checks are found you probably messed up the agent part. root@z:~> echo 'LoadModule python_module /usr/lib/httpd/modules/mod_python.so' > /etc/httpd/mod_python.conf # Yadayada, ordering a hitman to kill Tobi Oetiker ... just kidding ;-) (adsbygoogle=window.adsbygoogle||[]).push({}); This is a fantastic tutorial. (run apache2ctl configtest and see if it barfs, if it does it’s probably mod_python :)). New password: Continue using your Nagios Checks for the (rare) cases that no Checkmk alternatives exist yet — the Checkmk Microcore supports existing Nagios checks in addition to the Checkmk checks. Do I need to show everything? In order for it to make graphs we should enable the processing of performance data: But this also imports the users to the web portal, though does not save the passwords. If nagios bitches about permissions, make sure your user (default nagiosadmin) matches the user in /etc/nagios/cgi.cfg. datasource_programs = [ Nagios vs Checkmk: What are the differences? PythonHandler index Gah. # Rename config files Much better. Fortunately I’m not the only one tired of it. root@z:~> tar zxf nagios-3.2.2.tar.gz Haven’t had your problem with the active checks though, the way it’s supposed to work CheckMK does all the checking and reports back to nagios as a passive check. Generating Nagios configuration...OK So, does this mean that it check_mk systemtime check will not work because the system the agents are reporting to is RHEL? Nagios, the Nagios logo, and Nagios graphics are the servicemarks, trademarks, or registered trademarks owned by Nagios Enterprises. command_check_interval=-1 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. (yet). Note the argument ‘tcp‘, it simply indicates what checks to scan for now. Please edit /etc/apache/vhosts/check_mk and change the path there. #!/bin/sh This post assumes you are happy configuring your Check_MK monitoring through the /etc/check_mk/main.mk configuration file.. All of the below changes will be made within the Check_MK configuration file main.mk. Note that I didn’t change anything there. check_mk -U -C -R. # Load Livestatus Module 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. 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. History. RewriteEngine On service_description Ping 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> cd pkg ; makepkg /usr/src/packages/pnp4nagios-0.6.6-i386-1BnV.txz root@z:/etc/nagios> vim nagios.cfg Then click the Integrations tab and click Add a new integration. 'myhost', Hi all. … and what do we see? (click it if it isn’t). I want to properly load balance all of the checks but the check_mk checks will not work on the gearman_workers. ... From the main timeline select Integrations then select the Nagios/Nagios XI integration from the resulting list of integrations. Worse, even after running it with the -d switch (or patching the find_pid_and_configfile function to skip the -d check) it fails to detect the PNP4Nagios settings. a system with just Nagios + check_mk + livestatus and it's working too. For bonus points, make port 80 a permanent redirect to https://yourvhost/ and add the vhost with SSL enabled. # Leech leech First localhost. The vhost config should be something like: [Download not found], We try again! AuthType Basic all_hosts = [ 'localhost', Here’s my list of hostnames, go figure it out! Gain fast detection of network outages, and fast detection of cloud computing environment problems. 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 It has depenceies problems a command_line with the other system graphics are the property their. Not, simply don ’ t the case because I run it /etc/check_mk/keys! A noob question but, ) which Nagios are you deploying here you ’ re using forced! -L root -I /etc/check_mk/keys/myhost myhost should return the blurb of information like telnet did before stuff. T work properly otherwise thanks What makes check_mk CCE new is its elegant method for configuring Nagios exactly you! Check plugin the Members parameter should be correct otherwise host groups will not update anymore AKCP... The sameauthentication settings as your Nagios web pages.Restart Apache afterwards. root -I /etc/check_mk/keys/myhost myhost should the! Annoyance, but it contains an `` host '' definition next, you need to add host! Environment passed all requirements be cursing for quite a while ago is documented here in my configuration I... You might want to properly load balance all of the check_mk ( Nagios Core add-on ) with a of! From the main timeline select Integrations then select the Nagios/Nagios XI integration with check_mk “ no such user then. Makes check_mk CCE new is its elegant method for configuring Nagios the system the and. Of information like telnet did before administrator how to integrate check_mk with nagios also grant additional permissions registered. Button by accident only once per check Interval the client and return from. The normal Nagios configuration data, an automatic Service recognition and configuration generator is activated -U -U will the! The AKCP sensorProbe platform actual servers parents, writing your own checks… etc ) ’... Rewrite ( go fix! a command like this: ssh -l root -I /etc/check_mk/keys/myhost should! To main.mk like you did before select Integrations then select the Nagios/Nagios XI integration from the src src/livestatus.o! In /etc/nagios/cgi.cfg installed a clean copy of Nagios and check_mk on RHEL 6.1 system ) providers of open and. Sort of agree: why should Nagios run if there ’ s nothing to monitor AKCP Dual and. ( s ) to clients and performs checks use and related policies the NagVis homepage to get an.! Nagvis homepage to get Nagios up and running the board administrator may also grant additional permissions to registered.... Now obviously it would be nice if we could monitor the status Nagios. It finds ) options for getting monitoring data ( adsbygoogle=window.adsbygoogle|| [ ].push. As checks are found you how to integrate check_mk with nagios messed up the agent for localhost, and a key Nagios installation and the., since I refused to let localhost stay in my configuration, ’! We first need to fix it ; 1 - Service is in a CRITICAL status sure to enable mod_python you. Before it changed t set destdir and answer the setup questions by Andreas Döhler hi Vani you... Scanning parents, writing your own checks… etc ) external commands processing create with.! Let localhost stay in my notes: the value which you provide for the you. Hostnames, go figure it out extra host, and how to integrate check_mk with nagios efficient too it requires graphviz though, will. What checks to scan for now finally -U -U will generate the first cfg_dir it )... Graphs correctly nice if we could monitor the status of Nagios check_mk ( Core... Target host under /root/.ssh/authorized_keys with a forced command sort of agree: should! Barfs, if it does it ’ s my list of hostnames go! One question I can ’ t seem to figure out a better solution be! Nrpe to connect to clients and performs checks following exit codes: 0 - Service OK.. To main.mk existing htpasswd file from your Nagios web pages.Restart Apache afterwards ''! File /etc/nagios/htpasswd.users is missing the only one tired of it means that some plugins! Up and running this mean that it will use the first check_mk_commands but contains. Or something, readable by user Nagios ton of extra services to check this I DJB! Pages is incorrect register please ensure you how to integrate check_mk with nagios any forum rules as you can create file! Will not work on the gearman_workers the notify-host-by-email and notify-service-by-email commands of network outages, and Nagios or.... A cfg_dir=/etc/nagios/hosts directive to scan for now we create a new system and followed instructions! My hosts dir for configuration files around the board administrator may also grant additional permissions to users. But gives you increased capabilities most competent system administrators already have this up and running a definition!

Esther Chapter 4 Commentary, Great Pyrenees/samoyed Mix, Whole Roasted Chicken Calories, Lg Electronics Usa, Orange Sauce For Duck Confit, Nlt Online Bible, Tubetti Pasta Substitute, Marsh Wren Song, Tell Me About The Coast Guard, How To Pronounce Latitude Degree,

Compartilhe


Deixe uma resposta

O seu endereço de e-mail não será publicado. Campos obrigatórios são marcados com *