Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
check_one_nagios
0.1
2012-01-30
- Nagios 2.x
- Nagios 3.x
GPL
73839
File | Description |
---|---|
check_one_nagios_v1-0.tar.gz | version 0.1 (tgz) |
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!
================
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
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.