I've been successfully using Nagios with Nagiosgrapher for some time and wanted to add some more graphs to my checks. I use debian 7 and nagios version from debian apt repository.
The problem I face is that not everything that I've put into nagiosgrapher definitions gets drawn on the graphs. I've narrowed the thing down to passing stuff from nagios to nagiosgrapher. I've enabled debug output from nagiosgrapher to the file /var/log/nagiosgrapher/ngraph.log.
Service definition for something that works and gets drawn:
Code: Select all
define service {
hostgroup_name gpmv-nrpe
use generic-service
service_description NRPE Load
notification_interval 0 ; set > 0 if you want to be renotified
check_command check_nrpe_1arg!check_load
}
Code: Select all
2014-06-30 11:36:42 PIPE: masterf NRPE Load OK - load average: 0.05, 0.03, 0.00 load1=0.050;15.000;30.000;0; load5=0.030;10.000;25.000;0; load15=0.000;5.000;20.000;0;
2014-06-30 11:36:42 VALUES: [masterf][NRPE Load]: load_average_1m=0.05
2014-06-30 11:36:42 RRD: rrdtool update /var/lib/nagiosgrapher/rrd/masterf/e65e1d4e20eddad6508ccbcb5d41136e.rrd --template=load_average_1m N:0.05
Code: Select all
define service {
hostgroup_name gpmv-nrpe-smart-sdab
use generic-service
service_description NRPE smart sda
notification_interval 0 ; set > 0 if you want to be renotified
check_command check_nrpe_1arg!check_smart_sda
}
Code: Select all
OK: device is functional and stable (temperature: 22)
part of nagios.cfg that I find relevant:
Code: Select all
# PROCESS PERFORMANCE DATA OPTION
# This determines whether or not Nagios will process performance
# data returned from service and host checks. If this option is
# enabled, host performance data will be processed using the
# host_perfdata_command (defined below) and service performance
# data will be processed using the service_perfdata_command (also
# defined below). Read the HTML docs for more information on
# performance data.
# Values: 1 = process performance data, 0 = do not process performance data
process_performance_data=1
host_perfdata_command=process-host-perfdata
service_perfdata_command=ngraph-process-service-perfdata-pipe
# HOST AND SERVICE PERFORMANCE DATA PROCESSING COMMANDS
# These commands are run after every host and service check is
# performed. These commands are executed only if the
# enable_performance_data option (above) is set to 1. The command
# argument is the short name of a command definition that you
# define in your host configuration file. Read the HTML docs for
# more information on performance data.
#host_perfdata_command=process-host-perfdata
#service_perfdata_command=process-service-perfdata
# HOST AND SERVICE PERFORMANCE DATA FILES
# These files are used to store host and service performance data.
# Performance data is only written to these files if the
# enable_performance_data option (above) is set to 1.
#host_perfdata_file=/tmp/host-perfdata
#service_perfdata_file=/tmp/service-perfdata
What should I look into?