Jakkedup, I want to thank you for your help. I see you providing a large amount of support to a ton of people. It’s appreciated.
OK, I stopped the nagios service and verified that I only have one running.
For the sake of trouble shooting I have reduced my nagios config files down to one host/service.
I have checked the permissions on my /nagiostat/archives folder, they are as follows:
-owner=nagios
-group=nagios
-permissions=764
nagiostat.conf
Pointer to where the rrd-tool binary is located
RRDToolPath /usr/local/rrdtool-1.2.13/bin/rrdtool
Pointer to where HTML-templates are stored
HTMLTemplatePath /usr/local/nagios/nagiostat/html-templates
Pointer to HTML-template for the index-page (relative to HTMLTemplatePath)
GraphIndexTemplate graphindex.html
Pointer to directory where the RRD-archive-files are stored
RRDArchivePath /usr/local/nagios/nagiostat/archives
How many graphs per HTML-page and which time-periods they should represent
TemplateName Definitions (format=::)
GraphTimeTemplate std_1year -2hour:-2min:“Hourly graph” -30hours:-2min:“Daily graph” -9days:-2min:“Weekly graph” -1month:-2min:“Monthly graph” -1year:-2min:“Yearly graph”
RRDCreateTemplate ping_5min --step 300 DS:rta:GAUGE:600:0:5000 DS:Pktloss:GAUGE:600:0:100 RRA:AVERAGE:0.5:1:396 RRA:AVERAGE:0.5:6:336 RRA:AVERAGE:0.5:24:480 RRA:AVERAGE:0.5:234:480
RRDCreateTemplate ping_1min --step 60 DS:rta:GAUGE:120:0:5000 DS:Pktloss:GAUGE:120:0:100 RRA:AVERAGE:0.5:1:1800 RRA:AVERAGE:0.5:7:1850 RRA:AVERAGE:0.5:24:1860 RRA:AVERAGE:0.5:290:1820
RRDCreateTemplate stdvalue1_5min --step 300 DS:rta:GAUGE:600:0:5000 DS:value:GAUGE:600:0:100 RRA:AVERAGE:0.5:1:396 RRA:AVERAGE:0.5:6:336 RRA:AVERAGE:0.5:24:480 RRA:AVERAGE:0.5:234:480
RRDCreateTemplate ifrate_1min --step 60 DS:in:GAUGE:120:0:100000 DS:out:GAUGE:120:0:100000 RRA:AVERAGE:0.5:1:1800 RRA:AVERAGE:0.5:7:1850 RRA:AVERAGE:0.5:24:1860 RRA:AVERAGE:0.5:290:1820
Template-Name PLOT-PARAMETERS
PlotTemplate ping_rta --start $s --end $e DEF:rta=$f:rta:AVERAGE LINE1:rta#00A000:“Roundtrip average (ms)” HRULE:100#D0D000:“Warning level” HRULE:400#E00000:“Critical level” GPRINT:rta:MAX:“Roundtrip MAX\: %.4lgms” GPRINT:rta:MIN:“Roundtrip MIN\: %.4lgms” GPRINT:rta:AVERAGE:"Roundtrip average\: %.4lgms"
PlotTemplate ping_pktloss --start $s --end $e DEF:Pktloss=$f:Pktloss:AVERAGE LINE1:Pktloss#00A000:“Packetloss (%)” HRULE:20#D0D000:“Warning level” HRULE:50#E00000:“Critical level” GPRINT:Pktloss:MAX:“Pktloss MAX\: %.4lg%%” GPRINT:Pktloss:MIN:“Pktloss MIN\: %.4lg%%” GPRINT:Pktloss:AVERAGE:"Pktloss average\: %.4lg%%"
PlotTemplate ts_sessions --start $s --end $e DEF:value=$f:value:AVERAGE LINE1:value#A00000:“TS Sessions (#)”
PlotTemplate ifrate --start $s --end $e -X 1 DEF:in=$f:in:AVERAGE DEF:out=$f:out:AVERAGE AREA:in#00D000:“Inbound traffic (kbit/s)” LINE1:out#0000A0:“Outbound traffic (kbit/s)”
ValueRegexTemplate ping_rta_pktloss “output:rta:/RTA = ([0-9.]+) ms/” "output:Pktloss:/loss = (\d+)%/"
ValueRegexTemplate generic_int "output:value:/(\d+)/"
ValueRegexTemplate ifrate_in_out “output:in:/\[IN\]=(\d+) kbit/” “output:out:/\[OUT\]=(\d+) kbit/”
RRDArchiveFile RRDCreateTemplate HostRegex ServiceRegex ValueRegexTemplate
InsertValue HOU-NAS-01_ping.rrd ping_1min /HOU-NAS-01/ /PING/ ping_rta_pktloss
GRAPHNAME RRDFILENAME GraphTimeTemplate PlotTemplate HTML-Template Title
Graph HOU-NAS-01_ping HOU-NAS-01_ping.rrd std_1year ping_rta default.html “Ping HOU-NAS-01 RTA”
httpd.conf
Alias /nagiostat/ /usr/local/nagios/nagiostat/
<Directory /usr/local/nagios/nagiostat> AllowOverride AuthConfig
Options +ExecCGI
AddHandler cgi-script cgi pl
Order allow,deny
Allow from all
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$”
}
hosts.cfg
################## HOU-NAS-01 ######################
define host{
use generic-host
host_name HOU-NAS-01
alias HOU-NAS-01
address 10.1.1.16
check_command check-host-alive
max_check_attempts 10
notification_interval 120
notification_period 24x7
notification_options d,u,r
contact_groups nt-admins
}
‘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
notification_interval 120
notification_period 24x7
notification_options c,r
check_command check_ping!100.0,20%!500.0,60%
}
hostsextinfo.cfg
‘HOU-NAS-01’ Host Extended Information
define hostextinfo{
host_name HOU-NAS-01
notes_url ## http://
icon_image linux40.gif
icon_image_alt HOU-NAS-01
vrml_image linux40.gif
statusmap_image linux40.png
2d_coords 350,350
3d_coords #100.0,50.0,75.0
}
What else should I post to figure this out.