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


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!
Project Files
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
Reviews (1) Add a Review
Useful script
by cornea, January 31, 2013
I've been hit by the problem several time too.
Helpful? Yes  No 
Add a Review

You must be logged in to submit a review.

Thank you for your review!

Your review has been submitted and is pending approval.

Recommend

To:


From:


Thank you for your recommendation!

Your recommendation has been sent.

Project Stats
Rating
5 (1)
Favorites
1
Views
73,744