Dependencies and event handlers

Stanley Hopcroft Stanley.Hopcroft at IPAustralia.Gov.AU
Thu Nov 25 23:03:31 CET 2004


Dear Sir,

I am writing to thank you for your letter and say,

On Tue, Nov 23, 2004 at 08:31:40PM -0800, nagios-users-request at lists.sourceforge.net wrote:
> 
> Message: 5
> Date: Tue, 23 Nov 2004 22:55:23 +0100
> From: mark <mark at menem.mine.nu>
> To:  nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Dependencies and event handlers
> 
> Hi All,
> 

  .. snip ...

> 
> 1.) Are services that are associated with a host automagicly
> dependent on that host? So that if the host goes down, you only get
> notifications for that host? And not all the services on it?

> I could try ofcourse, but my users won't be happy ;-)
>

You should be aware that doing so in a controlled manner is an important 
way of developing your confidence about Nag and answering such questions 
(if you are not going to read the source).

./configure --your-options --prefix /private/path/to/test/nagios
make nagis	# no need to make CGIs
make install

(add some --enable-DEBUG options to configure if you want to see what 
Nag thinks its doing)

costs almost nothing and you have a private Nag that you can run with 
production config and _notifications_ disabled

(eg replace notification command by

# 'bit-bucket' command definition
define command{
        command_name    bit-bucket
        command_line    test 1 -eq 1
        }

and replace the email or whatever notification in the contacts/groups 
with bit-bucket eg

define contact{
        use                             generic-contact

        contact_name                    foo
        alias                           Mr Foo
        email                           bit-bucket
        service_notification_period     none
        }
)

and then run in the foreground. Or run it with a stripped down config 
with a much lower than usual intercheck delay so you can see it react 
quickly.

This doesn't disturb anyone but will help convince you that its set up 
and operates as you think it should. Wouldn't you want to be sure your 
event handlers are going to run when something bad happens ?

Besides, why should you believe what someone you have never heard of, 
whome you will probably never meet, says to you ?

Yours sincerely.


-- 

Stanley Hopcroft

Network specialist, IT Infrastructure
IP Australia
Ph: (02) 6283 3189  Fax: (02) 6281 1353
PO Box 200 Woden  ACT 2606
http://www.ipaustralia.gov.au
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: disclaimer.txt
URL: <https://www.monitoring-lists.org/archive/users/attachments/20041126/ee6aa638/attachment.txt>


More information about the Users mailing list