Notification for change in critical state

Stijn Gruwier sg at schaubroeck.be
Thu Jan 4 09:07:11 CET 2007


Hello,

I have a similar issue but with multiple netapp volumes instead of 
multiple ip addresses being checked by one plugin. Wat might be a 
solution is is submitting (enough) checkresults to the external command 
file in your check script, forcing a different state, like unknown, wich 
will triger a notification when it goes back to critical/warning....

This can be done with the external command process_service_check_result, 
maybe like this:
PROCESS_SERVICE_CHECK_RESULT;routername;check-multiple-ip;3;One 
more/less ip address is down

Then when your check script returns CRITICAL there will be a state 
changes from critical -> unknown -> critical and notifications will be 
sent. For this you'd need passive service checks enabled for the service 
and there should be a delay between submitting the external command and 
the plugin exit, so nagios has time to process the check results and 
change the service state.
 This isn't perfect, there will be 2 notifications, but maybe by 
disabling notifications for the unknown state there will be only 1 (or 
0, I don't know?).

Regards,

Stijn Gruwier
Schaubroeck Informatica


チャンドラ schreef:
> Hi,
>
> I am running nagios 2.5, monitoring a network that has many devices with
>  multiple IPs (ie. routers).
> Currently I have each IP registered as a separate host, which works
> well, but is a pain to manage.
> What I want to do is set up a multi-ping service that will ping all the
> IPs and generate a critical state if one of the IPs does not respond.
> The problem is that, for example, one IP goes down and a notification is
> sent out, there doesn't seem to be a way to force a notification to be
> sent if another IP goes down, as the service is already in a hard
> critical state.
> I thought about generating an external command from the check script,
> but the list of external commands
> (http://nagios.org/developerinfo/externalcommands/commandlist.php)
> doesn't list one that I could see helping...(like maybe one to force the
> state type back to soft or something). Setting the notification number
> to 0 didn't do the trick (see SET_SVC_NOTIFICATION_NUMBER).
>
> Is such a scenario possible? or am I barking up the wrong tree?
>
> Thanks for any help,
> Martin
>
>
>   


-------------------------------------------------------------------------
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
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