questions about redundant monitoring

Jacob Walcik jwalcik at mail.utexas.edu
Mon Jun 14 18:17:11 CEST 2004


i'm trying to setup a second host to do redundant monitoring as per the 
documentation here:

http://nagios.sourceforge.net/docs/1_0/redundancy.html#scenario_1

one change i've made to the setup outlined in the documentation is that 
i want the second host to take over notifications based on the state of 
the nagios process, not the state of the primary host.  i *thought* i 
had everything setup properly, however when i shut nagios off on the 
primary host, the script to enable notifications (copied link above) on 
the secondary host never seems to be executed after the secondary host 
determines that the service is down.

i've verified that the script works when executed by either root or by 
the nagios user with the proper parameters.  when i run it as either 
user, i see the event in the log, and notifications become active.  i 
can use the same script to shut the notifications off again.

any ideas as to what may be the source of the problem?

i'm using nagios 1.2 on gentoo linux on the secondary host.  the 
primary is still nagios 1.0 on a redhat 7.3 machine (for whatever 
that's worth).

here are the relevant configuration snippets, if there's anything else 
that might be helpful, please let me know...

# Service definition check_remote_nagios
define service{
         use                             generic-service
         host_name                       dastardly
         service_description             CHECKNAGIOS
         is_volatile                     0
         check_period                    24x7
         max_check_attempts              3
         normal_check_interval           3
         retry_check_interval            1
         contact_groups                  laits
         notification_interval           120
         notification_period             24x7
         notification_options            w,u,c,r
         check_command                   check_remote_nagios
         event_handler                   handle-master-host-event
         }


# 'handle-master-host-event' command definition
define command{
         command_name    handle-master-host-event
         command_line    
/usr/nagios/libexec/eventhandlers/handle-master-host-event $HOSTSTATE$ 
$STATETYPE$
         }




--
jacob walcik
jwalcik at mail.utexas.edu



-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
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