Scheduling downtime for all services in a host?
Lori Adams
ladams at cloudmark.com
Wed Feb 8 03:46:00 CET 2006
I wrote a perl script that gets all the services for a host, and then
uses the EXTERNAL_COMMAND corresponding to scheduling downtime to put
hosts into a downtime. It outputs the entire command to the nagios.cmd
file.
-Lori
________________________________
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: Tuesday, February 07, 2006 6:30 PM
To: nagios-users at lists.sourceforge.net
Subject: 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20060207/dea62e2f/attachment.html>
More information about the Users
mailing list