OK, here’s what I have now.
hosts & services.cfg
################## HOU-NAS-01 ######################
define host{
use generic-host
host_name HOU-NAS-01
alias HOU-NAS-01
address 10.1.1.16
parents Houston-Linux
check_command check-host-alive
max_check_attempts 10
notification_interval 120
notification_period 24x7
notification_options d,u,r
contact_groups nt-admins,tmg
}
‘check_ping’ Service Definition
define service{
use generic-service
host_name HOU-NAS-01
service_description PING
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups nt-admins,tmg
notification_interval 120
notification_period 24x7
notification_options c,r
check_command check_ping!100.0,20%!500.0,60%
}
‘ping’ Service Definition
define service{
use generic-service
host_name HOU-NAS-01
service_description Ping
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups nt-admins,tmg
notification_interval 120
notification_period 24x7
notification_options c,r
check_command check_ping!100.0,20%!500.0,60%
}
serviceextinfo.cfg
‘HOU-NAS-01’ Service Extended Information
define serviceextinfo{
host_name HOU-NAS-01
service_description Ping
notes_url /nagiostat/nagiostat.cgi?graph_name=HOU-NAS-01_ping
icon_image …/graph.gif
icon_image_alt HOU-NAS-01
}
checkcommands.cfg
PERF-DATA-HANDLER
define command {
command_name service-perf-data-handler
command_line /usr/local/nagios/nagiostat/nagiostat -p “$LASTSERVICECHECK$|!!|$HOSTNAME$|!!|$SERVICEDESC$|!!|$SERVICESTATE$|!!|$SERVICEOUTPUT$|!!|$SERVICEPERFDATA$”
}
nagiostat.conf
InsertValue HOU-NAS-01_ping.rrd ping_1min /HOU-NAS-01/ /Ping / ping_rta_pktloss
Graph HOU-NAS-01_ping HOU-NAS-01_ping.rrd std_1year ping_rta default.html “Ping HOU-NAS-01 RTA”
debug.log (sample)
Mon May 15 14:21:46 2006
**INCOMING PERFDATA:
LASTCHECK=1147720896
HOSTNAME=HOU-NAS-01
SERVICEDESCR="Ping"
SERVICESTATE=“OK"
OUTPUT=“PING OK - Packet loss = 0%, RTA = 0.34 ms"
PERFDATA=””
+VALUE: 0.34
+VALUE: 0
=INSERT into ‘HOU-NAS-01_ping.rrd’: 0.34,0 DSA-names=rta,pktloss
!RRDCMDLINE: /usr/local/rrdtool-1.2.13/bin/rrdtool update /usr/local/nagios/nagiostat/archives/HOU-NAS-01_ping.rrd --template rta:Pktloss 1147720896:0.34:0
Mon May 15 14:26:46 2006
**INCOMING PERFDATA:
LASTCHECK=1147721196
HOSTNAME=HOU-NAS-01
SERVICEDESCR="Ping"
SERVICESTATE=“OK"
OUTPUT=“PING OK - Packet loss = 0%, RTA = 0.47 ms"
PERFDATA=””
+VALUE: 0.47
+VALUE: 0
=INSERT into ‘HOU-NAS-01_ping.rrd’: 0.47,0 DSA-names=rta,pktloss
!RRDCMDLINE: /usr/local/rrdtool-1.2.13/bin/rrdtool update /usr/local/nagios/nagiostat/archives/HOU-NAS-01_ping.rrd --template rta:Pktloss 1147721196:0.47:0
Mon May 15 14:31:46 2006
**INCOMING PERFDATA:
LASTCHECK=1147721496
HOSTNAME=HOU-NAS-01
SERVICEDESCR="Ping"
SERVICESTATE=“OK"
OUTPUT=“PING OK - Packet loss = 0%, RTA = 0.34 ms"
PERFDATA=””
+VALUE: 0.34
+VALUE: 0
=INSERT into ‘HOU-NAS-01_ping.rrd’: 0.34,0 DSA-names=rta,pktloss
!RRDCMDLINE: /usr/local/rrdtool-1.2.13/bin/rrdtool update /usr/local/nagios/nagiostat/archives/HOU-NAS-01_ping.rrd --template rta:Pktloss 1147721496:0.34:0
Still empty graphs.