Passive host results & soft states?

Mike Hamrick mikeh at muppetlabs.com
Tue Apr 24 13:50:47 CEST 2007


Howdy,

Host A is a server which sends passive host/service results to host B
via NSCA. When a single host check fails on host C (a machine
monitored by host A) host A considers host C to be a SOFT state, where
host B (the one that actually sends notifications) considers host C to
be in a HARD state.  This causes me a lot of problems because often
just one host check will fail, yet I still get a notification.

Here are some log entries that illustrate this:

Log entry from host A:

Wed Mar 21 02:29:02 2007 HOST ALERT:
prod-mysql-1a;DOWN;SOFT;1;CRITICAL - Host Unreachable (prod-mysql-1a)

Log entry from host B:

Wed Mar 21 02:29:04 2007 EXTERNAL COMMAND:
PROCESS_HOST_CHECK_RESULT;prod-mysql-1a;1;CRITICAL - Host Unreachable (prod-mysql-1a)
Wed Mar 21 02:29:04 2007 HOST ALERT:
prod-mysql-1a;DOWN;HARD;1;CRITICAL - Host Unreachable (prod-mysql-1a)

Host A defines its hosts using this template:

define host {
        name                            server
        check_command                   check-host-alive
        failure_prediction_enabled      1
        max_check_attempts              4
        notification_period             24x7
        freshness_threshold             250s
        contact_groups                  admins
        notification_period             24x7
        notification_interval           0
        notification_options            d,u,r
        check_interval                  4
        register                        0
}

Host B defines its hosts using this template:

define host {
        name                            remote-host-template
        active_checks_enabled           0
        check_period                    24x7
        max_check_attempts              4
        notification_period             24x7
        notification_interval           5
        notification_options            d,r
        failure_prediction_enabled      1
        check_command                   service_is_stale
        register                        0
}

Thanks for any help!

Mike

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
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