It appears that the nagiostat script is not being run.
I do not get any rrd files created in the
nagiostat/archives directory not any output in the
debug.log files. I also get the following error when I
specify the debug level
!!ERROR: Unknown config-file directive on line 96:
'DEBUGLEVEL=3'
!!ERROR: Unknown config-file directive on line 96:
'$DEBUGLEVEL=3'
# serviceextinfo.cfg
define serviceextinfo{
host_name aitcorpnt01
service_description PING
notes_url
/nagiostat/nagiostat.cgi?graph_name=aitcorpnt01_ping
icon_image graph.gif
icon_image_alt View graphs
}
# cgi.cfg
xedtemplate_config_file=/home/apps/nagios/etc/serviceextinfo.cfg
# nagios.cfg
process_performance_data=1
service_perfdata_command=service-perf-data-handler
# checkcommands.cfg
define command{
command_name service-perf-data-handler
command_line /home/apps/nagios/nagiostat/nagiostat
-p
"$LASTCHECK$|!!|$HOSTNAME$|!!|$SERVICEDESC$|!!|$SERVICESTATE$|!!|$OUTPUT$|!!|$PERFDATA$"
}
# nagiostat.conf
RRDToolPath /home/apps/rrdtool
A couple of notes:
1. I am also running PerfParse
2. When I issue the checkcommands command manually at
the command prompt, I get the last command inserted
between the | symbols. i.e. ...|ls -l|...
Logged In: YES
user_id=476996
You set the $DEBUGLEVEL-variable in the script (nagiostat)
and not in the config-file, hence the error. That should not be
a real showstopper, though.
If you run the checkcommand from the command-prompt, you
must enclose the parameters using single-quotes (not double
as in the config-file) to avoid shell variable expansion. This is
probably why you find strange stuff happening (last command
inserted).
--Carl