checking if notifications are disabled

sebastian krueger sebastian.krueger at integrationworks.co.nz
Mon Aug 7 00:01:31 CEST 2006


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: nagios-users-bounces at lists.sourceforge.net
[mailto:nagios-users-bounces at lists.sourceforge.net] On Behalf Of Rob Brown
Sent: Sunday, August 06, 2006 12:29 PM
To: Nagios-users at lists.sourceforge.net
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.

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060807/c961b76c/attachment.html>
-------------- next part --------------
-------------------------------------------------------------------------
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
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
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


More information about the Users mailing list