TO IDENTIFY ERROS WITH GRAPH, verify if:
service-perfdata file exist in Nagios “var” directory ( /var/local/nagios/
# ll /usr/local/nagios/var/service-perfdata
To find out where is inside centreon: Configuration>Nagios>Centreon>Central>”Perfdata file”
service-perfdata is growing (if Nagios insert data il file) (if not try deleting and creating again the file)
service-perfdata is purging by centstorage (presence of service-perfdata_read file)
# tail -f /usr/local/nagios/var/service-perfdata
censtorage processus is running (/etc/init.d/centstorage status)
# ps -ef |grep centstor
no errors in centstorage.log file in Centreon “log” directory
# tail -f /usr/local/centreon/log/centstorage.log
“centstorage” database is growing (look into mysql)
First, you must activate the “Performance Data Processing Option” in your nagios.cfg and select “process-service-perfdata” command in the “Service Performance Data Processing Command” field.
Secondly, edit the process-service-perfdata script in your nagios’s libexec directory. And note PERFFILE variable value. This is the file where nagios will store the performance datas.
Thirdly, in Centreon configuration ( >> Administration > Options > CentStorage > Options), verify that the “storage folder” exists and have correct rights. Then, lowest in the page, in the “Input treatment options” part, the “perdata” field must have the same path as that indicated by the variable PERFFILE in the previous process “service-perfdata” script.
After, you can verify that the service-perfdata file is created and filled by Nagios. Sometimes deleting this files
and recreating it solves the problem.
Be carreful, Centreon read this file to proccess with the perfdata and remove it every minute (it seems to me)
Only if you have something after the pipe symbol, plugin return perfdata. But the perfdata must have the correct syntax
The process-service-perfdata script should be something like:
# Set perfdata file
# some parameters passed on command line
# Write data in perfdata file
/usr/bin/printf “%b” “$TIMETt$HOSTNAMEt$SERVICEDESCt$HARDSTATEt$SERVICESTATEt$PERFDATAn” >> $PERFFILE
If you modify nagios & Centreon configuration, export your files to nagios and restart it.