version 1.5, 2010/02/17 16:54:14 |
version 1.6, 2010/02/18 19:17:42 |
|
|
#!/bin/sh |
#!/bin/sh |
# $AFresh1: alert,v 1.4 2010/02/16 17:58:35 andrew Exp $ |
# $AFresh1: alert,v 1.5 2010/02/17 16:54:14 andrew Exp $ |
local _type=$1 |
local _type=$1 |
local _method=$2 |
local _method=$2 |
local _contact=$3 |
local _contact=$3 |
|
|
local _long_host="Date/Time: $NAGIOS_LONGDATETIME |
local _long_host="Date/Time: $NAGIOS_LONGDATETIME |
$_notification |
$_notification |
|
|
Host: $NAGIOS_HOSTALIAS [$NAGIOS_HOSTADDRESS] |
Host: $NAGIOS_HOSTNAME [$NAGIOS_HOSTADDRESS] $NAGIOS_HOSTALIAS |
State: $NAGIOS_HOSTSTATE (for $NAGIOS_HOSTDURATION) |
State: $NAGIOS_HOSTSTATE (for $NAGIOS_HOSTDURATION) |
$NAGIOS_HOSTOUTPUT |
$NAGIOS_HOSTOUTPUT |
|
|
|
|
local _long_svc="Date/Time: $NAGIOS_LONGDATETIME |
local _long_svc="Date/Time: $NAGIOS_LONGDATETIME |
$_notification |
$_notification |
|
|
|
Host: $NAGIOS_HOSTNAME [$NAGIOS_HOSTADDRESS] $NAGIOS_HOSTALIAS |
|
State: $NAGIOS_SERVICESTATE (for $NAGIOS_SERVICEDURATION) |
Service: $NAGIOS_SERVICEDESC |
Service: $NAGIOS_SERVICEDESC |
Host: $NAGIOS_HOSTALIAS ($NAGIOS_HOSTADDRESS) |
|
State: $NAGIOS_SERVICESTATE (for $NAGIOS_SERVICEDURATION) |
|
$NAGIOS_SERVICEOUTPUT |
$NAGIOS_SERVICEOUTPUT |
|
|
https://stats.redrivernet.com/cgi-bin/nagios/extinfo.cgi?type=2&host=$NAGIOS_HOSTNAME&service=`echo $NAGIOS_SERVICEDESC | sed -e 's/ /+/g'` |
https://stats.redrivernet.com/cgi-bin/nagios/extinfo.cgi?type=2&host=$NAGIOS_HOSTNAME&service=`echo $NAGIOS_SERVICEDESC | sed -e 's/ /+/g'` |