Page 1 of 4

Highcharts work, mrtg graphs don't

Posted: Tue Apr 28, 2015 12:25 pm
by jwicks
Hello,

I have a fresh install of NagiosXI 2014R2.6 on CentOS6.6.

We have lots of passive service checks that need to use the MRTG style graphs. I can see RRD data moving through, but for some reason the old style MRTG graphs don't work while the Highchart style graphs do.

Based on other posts with similar issues, I have culled the following information in the hopes it may help to discover the issue.

[root@nagios-48c ~]# ls /usr/local/nagios/var/spool/perfdata | wc -l
3
[root@nagios-48c ~]# ls /usr/local/nagios/var/spool/checkresults | wc -l
1890
[root@nagios-48c ~]# ls /usr/local/nagios/var/spool/checkresults | wc -l
466
[root@nagios-48c ~]# ps -ef | grep [p]erfdataproc
nagios 38724 38710 0 10:04 ? 00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php > /usr/local/nagiosxi/var/perfdataproc.log 2>&1
nagios 38728 38724 0 10:04 ? 00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php
[root@nagios-48c ~]# service npcd status
NPCD running (pid 33091).

[root@nagios-48c ~]# tail -f /usr/local/nagiosxi/var/perfdataproc.log
Outbound data DISABLED Tue, 28 Apr 2015 10:10:01 -0700
mv: cannot stat `/usr/local/nagios/var/spool/xidpe/*': No such file or directory

[root@nagios-48c ~]# tail -10 /usr/local/nagios/var/npcd.log
[04-28-2015 10:11:37] NPCD: File '1429917558.perfdata.service-PID-28488' is an already in process PNP file. Leaving it untouched.
[04-28-2015 10:11:37] NPCD: Processing file '1430241083.perfdata.host'
[04-28-2015 10:11:37] NPCD: Processing file '1430241083.perfdata.service'
[04-28-2015 10:11:38] NPCD: No more files to process... waiting for 15 seconds
[04-28-2015 10:11:53] NPCD: File '1429733668.perfdata.service-PID-10551' is an already in process PNP file. Leaving it untouched.
[04-28-2015 10:11:53] NPCD: File '1429917468.perfdata.service-PID-27712' is an already in process PNP file. Leaving it untouched.
[04-28-2015 10:11:53] NPCD: File '1429917558.perfdata.service-PID-28488' is an already in process PNP file. Leaving it untouched.
[04-28-2015 10:11:53] NPCD: Processing file '1430241098.perfdata.host'
[04-28-2015 10:11:53] NPCD: Processing file '1430241098.perfdata.service'
[04-28-2015 10:11:53] NPCD: No more files to process... waiting for 15 seconds

When graphing is set to use Highcharts:
[root@nagios-48c ~]# tail -f /var/log/httpd/error_log
[Tue Apr 28 10:01:35 2015] [error] [client 75.147.136.62] PHP Notice: Undefined variable: debug in /usr/local/nagiosxi/html/includes/configwizards/passiveobject/passiveobject.inc.php on line 296, referer: http://nagios.audiblemagic.com/nagiosxi ... wizard.php
[Tue Apr 28 10:01:35 2015] [error] [client 75.147.136.62] PHP Notice: Undefined variable: debug in /usr/local/nagiosxi/html/includes/configwizards/passiveobject/passiveobject.inc.php on line 376, referer: http://nagios.audiblemagic.com/nagiosxi ... wizard.php
[Tue Apr 28 10:01:35 2015] [error] [client ::1] PHP Warning: The first parameter of bindtextdomain must not be empty in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 763
[Tue Apr 28 10:01:36 2015] [error] [client ::1] PHP Notice: Undefined index: language in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 710
[Tue Apr 28 10:01:36 2015] [error] [client ::1] PHP Warning: The first parameter of bindtextdomain must not be empty in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 763
[Tue Apr 28 10:01:36 2015] [error] [client ::1] PHP Notice: Undefined index: language in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 710
[Tue Apr 28 10:01:36 2015] [error] [client ::1] PHP Warning: The first parameter of bindtextdomain must not be empty in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 763
[Tue Apr 28 10:01:36 2015] [error] [client ::1] PHP Warning: The first parameter of bindtextdomain must not be empty in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 763
[Tue Apr 28 10:01:37 2015] [error] [client ::1] PHP Notice: Undefined index: language in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 710
[Tue Apr 28 10:01:37 2015] [error] [client ::1] PHP Warning: The first parameter of bindtextdomain must not be empty in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 763


When graphing is set to use the old style:
[root@nagios-48c ~]# tail -f /var/log/httpd/error_log
[Tue Apr 28 10:01:37 2015] [error] [client ::1] PHP Warning: The first parameter of bindtextdomain must not be empty in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 763
[Tue Apr 28 10:14:59 2015] [error] [client ::1] PHP Notice: Undefined index: ccm_language in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 710
[Tue Apr 28 10:14:59 2015] [error] [client ::1] PHP Notice: Undefined index: language in /usr/local/nagiosxi/html/includes/components/ccm/includes/common_functions.inc.php on line 710
ERROR: the RRD does not contain an RRA matching the chosen CF
ERROR: the RRD does not contain an RRA matching the chosen CF
ERROR: the RRD does not contain an RRA matching the chosen CF
ERROR: the RRD does not contain an RRA matching the chosen CF
ERROR: the RRD does not contain an RRA matching the chosen CF
ERROR: the RRD does not contain an RRA matching the chosen CF
ERROR: the RRD does not contain an RRA matching the chosen CF

I'm stumped at this point as I have no reference of what is actually broken. I did take the perfdata from an existing install and copy into the new install's perfdata directory, as well as import template, hosts, hostgroups, service, and servicgroup config files.

The purpose of this quasi migration is to upgrade the server hardware and to fix an issue where the Unconfigured Objects wizard added duplicate service checks. Everything seems to be working fine with the exception of the old style graphing.

Any help is greatly appreciated.

-Jason

Re: Highcharts work, mrtg graphs don't

Posted: Tue Apr 28, 2015 2:10 pm
by abrist
Was pnp4nagios ever updated on the old server?
Was there an architecture change between the 2 servers?

Re: Highcharts work, mrtg graphs don't

Posted: Tue Apr 28, 2015 2:42 pm
by jwicks
The previous version was NagiosXI 2014R2.4, default install. How can I check the pnp version?

There was no architecture, just an increase in CPU cores and RAM, and disk.

Thanks for the reply!

-Jason

Re: Highcharts work, mrtg graphs don't

Posted: Tue Apr 28, 2015 3:30 pm
by Box293

Code: Select all

cat /usr/local/nagios/etc/pnp/pnp4nagios_release

Re: Highcharts work, mrtg graphs don't

Posted: Tue Apr 28, 2015 3:37 pm
by jwicks
Both installs at at the same rev:

PKG_REL_DATE="05-02-2009"
PKG_VERSION="0.4.14"
PKG_NAME="pnp"

-Jason

Re: Highcharts work, mrtg graphs don't

Posted: Tue Apr 28, 2015 3:43 pm
by Box293
Does it work this way:

http://xiserver/nagios/pnp/index.php?host=localhost

Change host=localhost to the name of the host you are checking.

Re: Highcharts work, mrtg graphs don't

Posted: Tue Apr 28, 2015 3:54 pm
by jwicks
Hi Box.

That link returns a blank page....

Re: Highcharts work, mrtg graphs don't

Posted: Tue Apr 28, 2015 3:56 pm
by Box293
Try this:

Code: Select all

tail -f /var/log/httpd/error_log
When you access that page that returns blank, does anything appear on the tail of error_log?

Re: Highcharts work, mrtg graphs don't

Posted: Tue Apr 28, 2015 4:18 pm
by jwicks
[Tue Apr 28 14:15:20 2015] [error] [client 75.147.136.62] PHP Deprecated: Assigning the return value of new by reference is deprecated in /usr/local/nagios/share/pnp/include/function.inc.php on line 1044
[Tue Apr 28 14:15:20 2015] [error] [client 75.147.136.62] PHP Deprecated: Function eregi() is deprecated in /usr/local/nagios/share/pnp/include/function.inc.php on line 1553
<sniped about 50 duplicated lines>
[Tue Apr 28 14:15:20 2015] [error] [client 75.147.136.62] PHP Deprecated: Call-time pass-by-reference has been deprecated in /usr/local/nagios/share/pnp/templates.dist/default.php on line 98
[Tue Apr 28 14:15:20 2015] [error] [client 75.147.136.62] PHP Deprecated: Call-time pass-by-reference has been deprecated in /usr/local/nagios/share/pnp/templates.dist/default.php on line 98
[Tue Apr 28 14:15:20 2015] [error] [client 75.147.136.62] PHP Deprecated: Function eregi() is deprecated in /usr/local/nagios/share/pnp/include/function.inc.php on line 1553
<sniped about 50 more duplcated lines>
[Tue Apr 28 14:15:20 2015] [error] [client 75.147.136.62] PHP Deprecated: Call-time pass-by-reference has been deprecated in /usr/local/nagios/share/pnp/templates.dist/default.php on line 98
[Tue Apr 28 14:15:20 2015] [error] [client 75.147.136.62] PHP Deprecated: Call-time pass-by-reference has been deprecated in /usr/local/nagios/share/pnp/templates.dist/default.php on line 98
[Tue Apr 28 14:15:20 2015] [error] [client 75.147.136.62] PHP Fatal error: Cannot redeclare format_host_ping_times_graph() (previously declared in /usr/local/nagios/share/pnp/include/am_utils.php:14) in /usr/local/nagios/share/pnp/include/am_utils.php on line 56

Any clues here? have you seen these before?

Thanks,

-Jason

Re: Highcharts work, mrtg graphs don't

Posted: Tue Apr 28, 2015 4:22 pm
by Box293
I'm not entirely sure to be honest.

Can you run this fix_ds_quantity.sh script mentioned here:

http://support.nagios.com/wiki/index.ph ... 14_Upgrade

It has fixed other problems not mentioned in the page.