Page 2 of 2

Re: NagiosXI R2.2 graphs broken

Posted: Thu Mar 08, 2012 6:27 am
by SDohmen
And its back to not being solved again.

I am running on the nagiosxi V2.1, Centos 6 64bit version.

The strange thing is that it worked fine the whole morning and when i changed 4 hosts parents it went dead. For some reason the apply configuration part keeps on trying to check the configuration. Also the graphs templates are all gone. The same goes for the network status map.

According to some post on the forum i should check https://central/nagios/pnp/index.php?host=dc001&view=3 to see if this gave any graphs and they work fine. The error logs only show:

Code: Select all

[Thu Mar 08 12:25:10 2012] [error] [client *] PHP Deprecated:  Function eregi() is deprecated in /usr/local/nagios/share/pnp/include/function.inc.php on line 1553, referer: https://*/nagios/pnp/index.php?host=*-dc001&view=3
[Thu Mar 08 12:25:10 2012] [error] [client *] PHP Deprecated:  Function eregi() is deprecated in /usr/local/nagios/share/pnp/include/function.inc.php on line 1553, referer: https://*/nagios/pnp/index.php?host=*-dc001&view=3
[Thu Mar 08 12:25:10 2012] [error] [client *] PHP Deprecated:  Function eregi() is deprecated in /usr/local/nagios/share/pnp/include/function.inc.php on line 1553, referer: https://*/nagios/pnp/index.php?host=*-dc001&view=3
[Thu Mar 08 12:25:10 2012] [error] [client *] PHP Deprecated:  Function eregi() is deprecated in /usr/local/nagios/share/pnp/include/function.inc.php on line 1553, referer: https://*/nagios/pnp/index.php?host=*-dc001&view=3
[Thu Mar 08 12:25:10 2012] [error] [client *] PHP Deprecated:  Function eregi() is deprecated in /usr/local/nagios/share/pnp/include/function.inc.php on line 1553, referer: https://*/nagios/pnp/index.php?host=*-dc001&view=3
[Thu Mar 08 12:25:10 2012] [error] [client *] PHP Deprecated:  Function eregi() is deprecated in /usr/local/nagios/share/pnp/include/function.inc.php on line 1553, referer: https://*/nagios/pnp/index.php?host=*-dc001&view=3
[Thu Mar 08 12:25:10 2012] [error] [client *] PHP Deprecated:  Function eregi() is deprecated in /usr/local/nagios/share/pnp/include/function.inc.php on line 1553, referer: https://*/nagios/pnp/index.php?host=*-dc001&view=3
[Thu Mar 08 12:25:10 2012] [error] [client *] PHP Deprecated:  Function eregi() is deprecated in /usr/local/nagios/share/pnp/include/function.inc.php on line 1553, referer: https://*/nagios/pnp/index.php?host=*-dc001&view=3
[Thu Mar 08 12:25:10 2012] [error] [client *] PHP Deprecated:  Function eregi() is deprecated in /usr/local/nagios/share/pnp/include/function.inc.php on line 1553, referer: https://*/nagios/pnp/index.php?host=*-dc001&view=3
[Thu Mar 08 12:25:10 2012] [error] [client *] PHP Deprecated:  Function eregi() is deprecated in /usr/local/nagios/share/pnp/include/function.inc.php on line 1553, referer: https://*/nagios/pnp/index.php?host=*-dc001&view=3
[Thu Mar 08 12:25:10 2012] [error] [client *] PHP Deprecated:  Function eregi() is deprecated in /usr/local/nagios/share/pnp/include/function.inc.php on line 1553, referer: https://*/nagios/pnp/index.php?host=*-dc001&view=3
[Thu Mar 08 12:25:10 2012] [error] [client *] PHP Deprecated:  Function eregi() is deprecated in /usr/local/nagios/share/pnp/include/function.inc.php on line 1553, referer: https://*/nagios/pnp/index.php?host=*-dc001&view=3
[Thu Mar 08 12:25:10 2012] [error] [client *] PHP Deprecated:  Function eregi() is deprecated in /usr/local/nagios/share/pnp/include/function.inc.php on line 1553, referer: https://*/nagios/pnp/index.php?host=*-dc001&view=3
[Thu Mar 08 12:25:10 2012] [error] [client *] PHP Deprecated:  Function eregi() is deprecated in /usr/local/nagios/share/pnp/include/function.inc.php on line 1553, referer: https://*/nagios/pnp/index.php?host=*-dc001&view=3
[Thu Mar 08 12:25:10 2012] [error] [client *] PHP Deprecated:  Function eregi() is deprecated in /usr/local/nagios/share/pnp/include/function.inc.php on line 1553, referer: https://*/nagios/pnp/index.php?host=*-dc001&view=3
[Thu Mar 08 12:25:10 2012] [error] [client *] PHP Deprecated:  Function eregi() is deprecated in /usr/local/nagios/share/pnp/include/function.inc.php on line 1553, referer: https://*/nagios/pnp/index.php?host=*-dc001&view=3
[Thu Mar 08 12:25:10 2012] [error] [client *] PHP Deprecated:  Function eregi() is deprecated in /usr/local/nagios/share/pnp/include/function.inc.php on line 1553, referer: https://*/nagios/pnp/index.php?host=*-dc001&view=3
I got some more info. It seems when i look at the map in /nagios/ it works just fine. Kinda the same idea as the pnp link thats posted above. Anyone have a good guess how i can get them back (prefered without upgrading). Remote support would be nice to have with this one.

Re: NagiosXI R2.2 graphs broken

Posted: Thu Mar 08, 2012 12:47 pm
by mguthrie
At this point with all of the reverting to version, we're sort of back to square one in troubleshooting this. Do you by chance have your nagiosxi error logging being dumped to something other than /var/log/httpd/error_log? If so, then I need to see whatever log the /nagiosxi tree is being dumped to. The error that you're getting when accessing:
http://<yourserver>/nagiosxi/includes/components/perfdata/graphApi.php?host=localhost

I think from here if we're going to figure this out, I recommend upgrading to 2.2, keeping it there, and we'll look at isolating the issue from there. Without some form of control group there's no way to isolate what is working and what is not.

We can certainly look into a remote session once we've narrowed things down a little bit more.

Re: NagiosXI R2.2 graphs broken

Posted: Fri Mar 09, 2012 3:02 pm
by SDohmen
The strange thing is that before i reverted back i didn't see any errors at all in the error log. I will consult with my co-workers first before i will do the upgrade again to make sure they agree with it.

I will get back with the rest of the info from there.

Re: NagiosXI R2.2 graphs broken

Posted: Tue Mar 13, 2012 4:13 am
by SDohmen
We have found the problem.

It seems one of our components had a empty line in a function. For some reason the graphs page loaded all those functions which confused the whole central in all the things that didn't work. After our programmer removed this empty line the whole central worked fine again (still without the upgrade).

Our programmer was wondering though why the graph component loaded all the function includes that are made for other components as well.

Re: NagiosXI R2.2 graphs broken

Posted: Tue Mar 13, 2012 9:52 am
by mguthrie
Our programmer was wondering though why the graph component loaded all the function includes that are made for other components as well.
When you register a new component in XI, you add functions on it's include page into the XI function library so that you can access it throughout the program. To my understanding, any function on the <component_name>.inc.php file that registers a component will be brought into the function library as part of the component registration. Now if the component registration script only points to a separate standalone script that has functions defined, they shouldn't be pulled into XI. That's why we recommend naming functions in the include script according to the convention:

mycomponentname_functionname

Example:

massacknowledge_checkversion()