Re: Dumb Question: How does one schedule downtime for _all_ services on a host ?

Stanley Hopcroft <[email protected]>
Newsgroups gmane.network.netsaint.user
Message-ID <[email protected]>
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 sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.