Page 1 of 1

Graph on Nagios not showing

Posted: Mon May 23, 2016 1:37 am
by RajaAmpat
Dear All,

My Nagios not showing the graph sine January 2016 (attached the screenshot).

I try run ./verify_pnp_config and the output as below :

[root@omcr ~]# ./verify_pnp_config --mode bulk --config=/etc/nagios/nagios.cfg --pnpcfg=/usr/local/pnp4nagios/etc/
[INFO] ========== Starting Environment Checks ============
[INFO] My version is: verify_pnp_config-0.6.17-R.33
[INFO] Reading /etc/nagios/nagios.cfg
[OK ] Running product is 'nagios'
[OK ] object_cache_file is defined
[OK ] object_cache_file=/var/nagios/objects.cache
[INFO] Reading /var/nagios/objects.cache
[OK ] resource_file is defined
[OK ] resource_file=/etc/nagios/resource.cfg
[INFO] Reading /etc/nagios/resource.cfg
[INFO] Reading /usr/local/pnp4nagios/etc//process_perfdata.cfg
[INFO] Reading /usr/local/pnp4nagios/etc//pnp4nagios_release
[OK ] Found PNP4Nagios version "0.6.17"
[OK ] ./configure Options '--with-nagios-group=nagcmd'
[OK ] Effective User is 'nagios'
[OK ] User nagios exists with ID '501'
[OK ] Effective group is 'nagios'
[OK ] Group nagios exists with ID '501'
[INFO] ========== Checking Bulk Mode Config ============
[OK ] process_performance_data is 1 compared with '/1/'
[OK ] service_perfdata_file is defined
[OK ] service_perfdata_file=/usr/local/pnp4nagios/var/service-perfdata
[OK ] service_perfdata_file_template is defined
[OK ] service_perfdata_file_template=DATATYPE::SERVICEPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tSERVICEDESC::$SERVICEDESC$\tSERVICEPERFDATA::$SERVICEPERFDATA$\tSERVICECHECKCOMMAND::$SERVICECHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tSERVICESTATE::$SERVICESTATE$\tSERVICESTATETYPE::$SERVICESTATETYPE$
[OK ] PERFDATA template looks good
[OK ] service_perfdata_file_mode is defined
[OK ] service_perfdata_file_mode=a
[OK ] service_perfdata_file_processing_interval is defined
[OK ] service_perfdata_file_processing_interval=15
[OK ] service_perfdata_file_processing_command is defined
[OK ] service_perfdata_file_processing_command=process-service-perfdata-file
[OK ] host_perfdata_file is defined
[OK ] host_perfdata_file=/usr/local/pnp4nagios/var/host-perfdata
[OK ] host_perfdata_file_template is defined
[OK ] host_perfdata_file_template=DATATYPE::HOSTPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tHOSTPERFDATA::$HOSTPERFDATA$\tHOSTCHECKCOMMAND::$HOSTCHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$
[OK ] PERFDATA template looks good
[OK ] host_perfdata_file_mode is defined
[OK ] host_perfdata_file_mode=a
[OK ] host_perfdata_file_processing_interval is defined
[OK ] host_perfdata_file_processing_interval=15
[OK ] host_perfdata_file_processing_command is defined
[OK ] host_perfdata_file_processing_command=process-host-perfdata-file
[INFO] Nagios config looks good so far
[INFO] ========== Checking config values ============
[OK ] Command process-service-perfdata-file is defined
[OK ] '/bin/mv /usr/local/pnp4nagios/var/service-perfdata /usr/local/pnp4nagios/var/spool/service-perfdata.$TIMET$'
[CRIT] Command looks suspect (/bin/mv /usr/local/pnp4nagios/var/service-perfdata /usr/local/pnp4nagios/var/spool/service-perfdata.$TIMET$)
[root@omcr ~]#

seem the issue is on line below :
[CRIT] Command looks suspect (/bin/mv /usr/local/pnp4nagios/var/service-perfdata /usr/local/pnp4nagios/var/spool/service-perfdata.$TIMET$)

anyone know how to solve it ?

Re: Graph on Nagios not showing

Posted: Mon May 23, 2016 9:50 am
by rkennedy
You posted this in the Nagios Log Server forum, could you please clarify what product you're actually using so we can move this thread? What version of Nagios are you running?

Re: Graph on Nagios not showing

Posted: Tue May 24, 2016 9:23 pm
by RajaAmpat
Hi,

the version of Nagios is Nagios Core 3.2.3

Re: Graph on Nagios not showing

Posted: Wed May 25, 2016 2:16 pm
by tgriep
You can take a look in the nagios.log or the perfdata.log file to see if there are any errors that could help out in the issue.

For the CRIT message, you may want to check these folders for the correct permissions, owner, etc at the time the graph stopped working.
/usr/local/pnp4nagios/var/
/usr/local/pnp4nagios/var/spool/

You may also want to look at the pnp4nagios site for any help on this issue.
https://docs.pnp4nagios.org/