
Others
check_one_nagios
Description:
CHECK_ONE_NAGIOS
================
Ensure you have only one Nagios master process…
Current Version
0.1
Last Release Date
2012-01-30
Compatible With
- Nagios 2.x
- Nagios 3.x
Owner
License
GPL
Project Files
File | Description |
---|---|
check_one_nagios_v1-0.tar.gz | version 0.1 (tgz) |
Project Notes
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
Page Sections
Project Stats
Rating
5 (1)
Favorites
1
Views
73,797