Page 1 of 1

Unable to access nagios graphs

Posted: Wed Apr 12, 2017 6:01 am
by PWSTECHSUPPORT
Hello team,

we are licensed subscribers but we are unable to post into that support

kindly let us know about the following error

[Wed Apr 12 16:04:19.797151 2017] [:error] [pid 32716] [client 192.168.11.241:45495] PHP Notice: Array to string conversion in /usr/local/nagiosxi/html/includes/components/graphexplorer/templates/perfdata.inc.php on line 578, referer: http://192.168.11.190/nagiosxi/includes ... w=services

We are unable to see the peformance graphs in nagios xi.

FYI

Nagios Graph Explorer
Nagios Graph Explorer is an interactive graphing tool for your Nagios data. Requires Nagios XI 2011R1.3 or later. For most reliable graphs and dashlets, use Mozilla Firefox or Google Chrome.
2.2.0 Nagios Enterprises, LLC

This is the version we are using. Everytime when i try to access the graphs we are getting no data to display.

Here is our nagios.cfg


# PNP settings - bulk mode with NCPD
process_performance_data=1
# service performance data
service_perfdata_file=/usr/local/nagios/var/service-perfdata
service_perfdata_file_template=DATATYPE::SERVICEPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tSERVICEDESC::$SERVICEDESC$\tSERVICEPERFDATA::$SERVICEPERFDATA$\tSERVICECHECKCOMMAND::$SERVICECHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tSERVICESTATE::$SERVICESTATE$\tSERVICESTATETYPE::$SERVICESTATETYPE$\tSERVICEOUTPUT::$SERVICEOUTPUT$\tLONGSERVICEOUTPUT::$LONGSERVICEOUTPUT$
service_perfdata_file_mode=a
service_perfdata_file_processing_interval=15
service_perfdata_file_processing_command=process-service-perfdata-file-bulk
# host performance data
host_perfdata_file=/usr/local/nagios/var/host-perfdata
host_perfdata_file_template=DATATYPE::HOSTPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tHOSTPERFDATA::$HOSTPERFDATA$\tHOSTCHECKCOMMAND::$HOSTCHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tHOSTOUTPUT::$HOSTOUTPUT$\tLONGHOSTOUTPUT::$LONGHOSTOUTPUT$
host_perfdata_file_mode=a
host_perfdata_file_processing_interval=15
host_perfdata_file_processing_command=process-host-perfdata-file-bulk

Re: Unable to access nagios graphs

Posted: Wed Apr 12, 2017 11:22 am
by mcapra
PWSTECHSUPPORT wrote: we are licensed subscribers but we are unable to post into that support
You will need to contact our sales department and have them whitelist your forum's username to get that resolved.

Can you tell me which version of Nagios XI you are using? Could you also upload a copy of that file from your machine:

Code: Select all

/usr/local/nagiosxi/html/includes/components/graphexplorer/templates/perfdata.inc.php