[Nagios-devel] Re: [netsaint] Dumb Question: How does one schedule downtime for _all_ services on a host ?
Posted: Fri Oct 25, 2002 3:53 pm
Dear Ladies and Gentlemen,
I am writing to thank those who responded with advice about this
matter.
In this case, UTSL shows that is should a host be in a period of
scheduled downtime, _no_ notifications are sent for any service on that
host.
This now appears quite consistent with standard behaviour of suppressing
service notifications should a host be down (in this case, Netsaint is
informed that the host may be down during some interval. Since it could
really be down, it makes no sense to send any notifications in that
interval).
The relevant part of notifications.c seems to be in
check_service_notification_viability().
/* if this host is currently in a scheduled downtime period,
don't send the notification */
if(temp_host->scheduled_downtime_depth>0){
#ifdef DEBUG4
printf("\tThe host this service is associated with is currently in a
scheduled downtime, so we won't send notifications!\n");
#endif
return ERROR;
}
So, once again, Netsaint does the right thing (TM).
Yours sincerely.
--
------------------------------------------------------------------------
Stanley Hopcroft
------------------------------------------------------------------------
'...No man is an island, entire of itself; every man is a piece of the
continent, a part of the main. If a clod be washed away by the sea,
Europe is the less, as well as if a promontory were, as well as if a
manor of thy friend's or of thine own were. Any man's death diminishes
me, because I am involved in mankind; and therefore never send to know
for whom the bell tolls; it tolls for thee...'
from Meditation 17, J Donne.
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
I am writing to thank those who responded with advice about this
matter.
In this case, UTSL shows that is should a host be in a period of
scheduled downtime, _no_ notifications are sent for any service on that
host.
This now appears quite consistent with standard behaviour of suppressing
service notifications should a host be down (in this case, Netsaint is
informed that the host may be down during some interval. Since it could
really be down, it makes no sense to send any notifications in that
interval).
The relevant part of notifications.c seems to be in
check_service_notification_viability().
/* if this host is currently in a scheduled downtime period,
don't send the notification */
if(temp_host->scheduled_downtime_depth>0){
#ifdef DEBUG4
printf("\tThe host this service is associated with is currently in a
scheduled downtime, so we won't send notifications!\n");
#endif
return ERROR;
}
So, once again, Netsaint does the right thing (TM).
Yours sincerely.
--
------------------------------------------------------------------------
Stanley Hopcroft
------------------------------------------------------------------------
'...No man is an island, entire of itself; every man is a piece of the
continent, a part of the main. If a clod be washed away by the sea,
Europe is the less, as well as if a promontory were, as well as if a
manor of thy friend's or of thine own were. Any man's death diminishes
me, because I am involved in mankind; and therefore never send to know
for whom the bell tolls; it tolls for thee...'
from Meditation 17, J Donne.
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]