AW: Scheduling downtime for all services in a host?

Sand Philipp Philipp.Sand at sycor.de
Thu Feb 9 13:15:36 CET 2006


When you want to schedule a downtime for all services on a host, even when the host won't go down, the easiest way is to schedule a *fixed* downtime. When you schedule a flexible downtime for the host, the downtime starts when the hostcheck turns critical, *not* when a servicecheck on the host goes critical!
Try out, it should work with fixed downtimes.
________________________________________
Von: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] Im Auftrag von karl.kornel at mindspeed.com
Gesendet: Mittwoch, 8. Februar 2006 03:30
An: nagios-users at lists.sourceforge.net
Betreff: RE: [Nagios-users] Scheduling downtime for all services in a host?


I also thought that was the case, so I decided to try it. 

I declared a host with 2 services, PING and SSH, and I waited until Nagios ran its first checks to make sure that everything was up.  Then I declared an hour of flexible downtime on the host, scheduled to start 5 minutes ago and to last for one hour.  I did this using the CGIs. 

Once my command had been received, I turned off SSH (just SSH).  I would expect that, since I had declared downtime, I would not be notified about the SSH failure.  However, 10 minutes later I got an email telling me that SSH on the host was down. 

So it looks to me like scheduling downtime just for the host will not automatically schedule downtime for the services on the host, and I can not assume that the host and its services will be going down at the same time. 


-- A. Karl Kornel
Mindspeed Technologies, Inc.
karl.kornel at mindspeed.com
(949) 579-3503 

"Andrew Xenides" <andrew at staff.esc.net.au> wrote on 01/07/2003 05:02:13 AM:

> I think if a host is down it assumes that the services wont be up either. 
>   
> 
> From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> admin at lists.sourceforge.net] On Behalf Of karl.kornel at mindspeed.com
> Sent: Wednesday, February 08, 2006 12:00 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Scheduling downtime for all services in a host? 
>   
> 
> Dear fellow Nagios users, 
> 
>         Is there a way for me to schedule downtime automatically for
> all services on a host?  For reference, I'm using version 2.0rc2. 
> 
>         When I look at the commands that I can run for a host 
> containing 2+ services, I see a link to schedule downtime for a 
> host, but not for all of the services associated with that host.  
> However, if I look at the commands for a hostgroup or a 
> servicegroup, I see that I can schedule downtime for all hosts or 
> services in a hostgroup/servicegroup.  However, I do not want to 
> schedule downtime for all hosts in a hostgroup, just one host.  And 
> I do not have any service groups. 
> 
>         I did some searching of previous posts, and I have not been 
> able to find anything helpful.  At this point it looks like the only
> way for me to declare downtime for all services by executing one 
> command would be to create one servicegroup for each host in my configuration.
> 
>         Does anyone have any more information on this?  Thanks in advance! 
> 
> -- A. Karl Kornel
> Mindspeed Technologies, Inc.
> karl.kornel at mindspeed.com
> (949) 579-3503


************************************************

sycor plastics - die neue Branchenloesung fuer die Kunststoffindustrie

www.sycor-plastics.de

************************************************




Diese E-Mail ist vertraulich und kann darueber hinaus persoenliche Informationen beinhalten. Wenn Sie nicht der bestimmungsgemaesse Empfaenger sind, loeschen Sie bitte die E-Mail und deren Anhaenge sofort und benachrichtigen Sie uns darueber. Die Firma sycor willigt in keine Vertraege oder vertragliche Verpflichtungen ein oder uebermittelt rechtsverbindliche Angebote, die in Form von E-Mail versandt werden, sofern dies nicht ausdruecklich in schriftlicher Form zwischen den Parteien vereinbart wurde.

This e-mail is confidential and may contain personal and/or privileged information. If you are not the intended recipient please delete this e-mail and all attachments immediately and inform us. The company sycor does not agree with contracts or contract obligations sent by e-mail, neither do we transmit legally binding offers by e-mail, unless this is not expressly agreed upon between the parties and documented in written form.



-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642
_______________________________________________
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