yes I have defined this command in /usr/local/nagios/etc/objects/
commands.cfg & command is as follows :
define command {
command_name process-service-perfdata
command_line /usr/bin/perl /usr/localpnp4nagioslibexec/process_perfdata.pl
}
I have verifed and process_perfdata.pl does exist on this path. Error that I get is I am unable to restart nagios service & it says "Running Configuration check...CONFIG ERROR! Restart aborted. Check your Nagios configuration".
so i checked what was the error using
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
and exact error is
Error: Could not add object property in file '/usr/local/nagios/etc/objects/command.cfg' on line 424
and line 424 in commands.cfg is command_name process-serivce-perfdata . if i comments out this then nagios services starts without any error but then how can I create graphs
