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
Highcharts work, mrtg graphs don't
Re: Highcharts work, mrtg graphs don't
Was pnp4nagios ever updated on the old server?
Was there an architecture change between the 2 servers?
Was there an architecture change between the 2 servers?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: Highcharts work, mrtg graphs don't
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
There was no architecture, just an increase in CPU cores and RAM, and disk.
Thanks for the reply!
-Jason
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Highcharts work, mrtg graphs don't
Code: Select all
cat /usr/local/nagios/etc/pnp/pnp4nagios_releaseAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Highcharts work, mrtg graphs don't
Both installs at at the same rev:
PKG_REL_DATE="05-02-2009"
PKG_VERSION="0.4.14"
PKG_NAME="pnp"
-Jason
PKG_REL_DATE="05-02-2009"
PKG_VERSION="0.4.14"
PKG_NAME="pnp"
-Jason
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Highcharts work, mrtg graphs don't
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.
http://xiserver/nagios/pnp/index.php?host=localhost
Change host=localhost to the name of the host you are checking.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Highcharts work, mrtg graphs don't
Hi Box.
That link returns a blank page....
That link returns a blank page....
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Highcharts work, mrtg graphs don't
Try this:
When you access that page that returns blank, does anything appear on the tail of error_log?
Code: Select all
tail -f /var/log/httpd/error_logAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Highcharts work, mrtg graphs don't
[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
[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
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Highcharts work, mrtg graphs don't
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.
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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.