On 15.07.2013 21:41, Joseph Spenner wrote:
> I'm curious if there's a simple way to disable / re-enable 
> notifications for a specific host via command line.   I wish to make 
> some backups which will take the host down for a period of time.  I 
> can cron the backups, and was hoping to issue a command prior to the 
> backup so we don't get notified during the downtime.
>
> I found various posts about this with nagios, such as:
>
> http://rayber.blogspot.com/2011/09/disable-notifications-during.html
>
> But wasn't sure of the syntax, since I couldn't find the URL to the 
> cmd.cgi used.
> I found it on the filesystem at:
>   /usr/local/icinga/sbin/cmd.cgi
>
> Also, what if the system doesn't actually have any services?  Some 
> systems are simply getting a ping.
>
> Any help would be great.

http://docs.icinga.org/latest/en/extcommands.html
external commands can be invoked on the shell too. check the 
eventhandler submit_check_result for a sample if the "echo $cmd >> 
$cmdpipe" remains unclear.

look for

DISABLE_HOST_NOTIFICATIONS
DISABLE_HOST_SVC_NOTIFICATIONS
DISABLE_SVC_NOTIFICATIONS

within
http://docs.icinga.org/latest/en/extcommands2.html

-- 
DI (FH) Michael Friedrich

mail:     michael.friedr...@gmail.com
twitter:  https://twitter.com/dnsmichi
jabber:   dnsmi...@jabber.ccc.de
irc:      irc.freenode.net/icinga dnsmichi

icinga open source monitoring
position: lead core developer
url:      https://www.icinga.org


------------------------------------------------------------------------------
See everything from the browser to the database with AppDynamics
Get end-to-end visibility with application monitoring from AppDynamics
Isolate bottlenecks and diagnose root cause in seconds.
Start your free trial of AppDynamics Pro today!
http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk
_______________________________________________
icinga-users mailing list
icinga-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/icinga-users

Reply via email to