Home Directory Plugins Others check_one_nagios

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_one_nagios

Current Version
0.1
Last Release Date
2012-01-30
Compatible With
  • Nagios 2.x
  • Nagios 3.x
License
GPL
Hits
73831
Files:
FileDescription
check_one_nagios_v1-0.tar.gzversion 0.1 (tgz)
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
CHECK_ONE_NAGIOS
================
Ensure you have only one Nagios master process...
Ever had a Nagios server behaving in a strange way?
Like:
* error message: "having result for foo but service|host foo does not exists in config file"
* still receiving alerts after suspending alert for that user?

Maybe you have an old nagios instance running, while the new instance is also running. but the old one is running based on an old configuration.

This should'nt happend. But I've been hit by that several time. the check_nagios check script can only detect you have at least one nagios process. but nagios can run a lot of forked/parallel process and it's hard to detect which ones are the main process.

Well finally I sax that on my linux server a psauxf|grep nagios will render a STATUS column where the main Nagios process have the "Ssl" status and the othersonly "S". And when I have two (or even 3) "Ssl" status nagios process bad things happen. So I wrote this simple bash script to be uased as a classical nagios check and detect I have more than one nagios process in "Ssl" status.

USAGE: check_one_nagios [OPTIONS]

-h|--help : show program help
-v|--version : show program version
-c|--command : Command used to filter ps output (by default '/usr/local/nagios/bin/nagios')
-s|--status : Status of the process used to filter ps output (by default 'Ssl')

Licence: Gnu GPL v3
Reviews (1)
bycornea, January 13, 2013
I've been hit by the problem several time too.