I am not aware of any such plugin, but it would be easy enough to write a plugin that does that yourself in perl.

 

You could parse the

http://hostname/nagios/cgi-bin/config.cgi?type=hosts

and

http://hostname/nagios/cgi-bin/config.cgi?type=services

 

and make sure that plugins are enabled.

 

Of course it would be tricky with the one hour time difference, not that I think of it.

Maybe you could use escalations somehow? Not sure about that though.

 

Alternatively you might want to choose the “Re-schedule the next check of this host” Host Command instead of disabling all notifications permanently.

 

There are surely other ways too, but that’s what I can think of off the top of my head.

 

Good luck,

Sebastian.

 


From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rob Brown
Sent: Sunday, August 06, 2006 12:29 PM
To: [email protected]
Subject: [Nagios-users] checking if notifications are disabled

 

Does anyone have a simple way to check whether or not notifications are disabled? Preferrably from the command line.

Occasionaly I or one of my colleages will disable notifications during an outage or something and forget to turn them back on.

I want to write a check that sends an alert if notifications are disabled for more than say, an hour.

Thanks.

 

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to