$HOSTSTATE$ remains as Down?
Wil Schultz
wschultz at bsdboy.com
Tue May 22 19:02:34 CEST 2007
Looks like I may have misstated my problem, apparently I was simply
not receiving the HOST UP email thanks to my fat fingers mucking up
the hosts.cfg
What is happening is that I am seeing a DOWN notification every
minute, this is why I thought I was getting the wrong alert. I've got
a v2.7 box up and running quite nicely and I've compared the configs
and do not see any differences. Obviously I am missing something
here, any suggestions why DOWN notifications are being sent every
minute?
Host config looks like:
define host{
name host
check_period 24x7
checks_enabled 1
check_interval 3
retry_interval 1
max_check_attempts 3
check_command check-host-alive
process_perf_data 0
retain_status_information 1
retain_nonstatus_information 1
flap_detection_enabled 1
event_handler_enabled 1
notifications_enabled 1
notification_period 24x7
notification_interval 120
notification_options d,r
contact_groups email
register 0
}
On May 20, 2007, at 5:45 PM, Wil Schultz wrote:
> I've just installed 3.0a4 and am testing the alerting.
>
> I plonk a host, and I get the HOST DOWN email correctly, but when I
> bring the host back up instead of getting the HOST UP email, I get
> another HOST DOWN email.
>
> Anyone else seeing this? Or have a suggestion?
>
> FreeBSD 6.2, Nagios 3.0a4
>
> email command looks like:
>
> ######################################################################
> ##
> # 'notify-host-by-email' command definition
> define command{
> command_name notify-host-by-email
> command_line /usr/bin/printf "%b" "***** Nagios *****\n
> \nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState:
> $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time:
> $LONGDATETIME$\n" | /usr/b
> in/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE
> $ **" $CONTACTEMAIL$
> }
> ######################################################################
> ##
>
>
> ----------------------------------------------------------------------
> ---
> 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
>
-------------------------------------------------------------------------
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