notifications
alexus
alexus at gmail.com
Sun Sep 20 00:53:28 CEST 2009
why this won't work?
i dont get notifications
define service {
hostgroup_name nrpe-disk
service_description disk
use alarm,check
check_command check_nrpe1!check_disk
register 1
}
define command {
command_name check_nrpe1
command_line $USER1$/check_nrpe -H
$HOSTADDRESS$ -c $ARG1$
}
define service {
name alarm
notification_interval 0
notification_period 247
notification_options w,u,r,c,f,s
notifications_enabled 1
contact_groups staff
register 0
}
define service {
name check
max_check_attempts 3
check_interval 2
retry_interval 1
check_period 247
register 0
}
define contactgroup {
contactgroup_name staff
alias XXXXXXXXXX
members XXXXXXX XXXXXXXX
}
define contact {
contact_name dc
alias sprint
host_notifications_enabled 1
service_notifications_enabled 1
host_notification_period 247
service_notification_period 247
host_notification_options d,u,r,f,s
service_notification_options w,u,c,r,f,s
host_notification_commands notify-host-by-email,notify-host-by-pager
service_notification_commands notify-service-by-email,notify-service-by-pager
email XXXXXXXXXX at XXXXXX.org
pager XXXXXXXXXX at messaging.sprintpcs.com
}
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/bin/mail -s "**
$NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **"
$CONTACTEMAIL$
}
define command {
command_name notify-host-by-pager
command_line /usr/bin/printf "%b"
"Notification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState:
$HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$" |
/usr/bin/mail $CONTACTPAGER$
}
define command {
command_name notify-service-by-email
command_line /usr/bin/printf "%b" "*****
Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:
$SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
$SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional
Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$
Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **"
$CONTACTEMAIL$
}
define command {
command_name notify-service-by-pager
command_line /usr/bin/printf "%b"
"Notification Type: $NOTIFICATIONTYPE$\n\nService:
$SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
$SERVICESTATE$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /usr/bin/mail
$CONTACTPAGER$
}
d
--
http://alexus.org/
------------------------------------------------------------------------------
Come build with us! The BlackBerry® Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9-12, 2009. Register now!
http://p.sf.net/sfu/devconf
_______________________________________________
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