opinkerfi/okconfig — pull request #48 by gardart (2013-10-29 11:05:31+00:00)
Title: Added okc-nagios-check_nagiostats service check to nagios template

#Plugin information
This check uses check_nagiostats plugin written by [Jochern Bern](https://www.monitoringexchange.org/inventory/Check-Plugins/Software/Nagios/check_nagiostats)

#Installation

The plugin is available here https://www.monitoringexchange.org/attachment/download/Check-Plugins/Software/Nagios/check_nagiostats/check_nagiostats

##PNP4Nagios setup

Create a symbolic link for pnp4nagios template nagiostats.php so it can be applied to okc-nagios-check_nagiostats

'''
sudo ln -s /usr/share/nagios/html/pnp4nagios/templates.dist/nagiostats.php /usr/share/nagios/html/pnp4nagios/templates.dist/okc-nagios-check_nagiostats.php
sudo ln -s /usr/share/nagios/html/pnp4nagios/templates.dist/nagiostats.php /usr/share/nagios/html/pnp4nagios/templates.dist/okc-nagios-check_nagiostats_passive.php
'''
![performance information - mozilla firefox_2013-10-29_11-03-16](https://f.cloud.github.com/assets/3597603/1427425/e431d394-4089-11e3-947e-5f4ec5702cbc.jpg)

# Service/Host config information
The check can be run in passive mode by adding something like this in the crontab for nagios user:

'''
* * * * * /usr/lib64/nagios/plugins/check_nagiostats --passive "nagios.utm.is" "Nagios Statistics Passive" >> /var/spool/nagios/cmd/nagios.cmd
'''