Page 1 of 2

No graphs

Posted: Thu Apr 07, 2011 9:19 am
by hhlodge
Hi,

Trying to get graphs going for a switch and everything seems set up correctly in that I have performance data for bandwidth showing (Performance Data: in=.001626Mb/s;20;50 out=.000104Mb/s;20;50), an RRD file exists and is current, yet I don't see a graph, just a widget to add the graph to a dashboard. Command used, as set up by the wizard is "$USER1$/check_rrdtraf -f /var/lib/mrtg/$ARG1$ -w $ARG2$ -c $ARG3$ -l $ARG4$ ". Where should I be looking? I saw some mention of a pnp package, but I see no such package installed (CentOS 5.5). Could this be an issue? Thanks.
ServiceDetail.png

Re: No graphs

Posted: Thu Apr 07, 2011 9:52 am
by tonyyarusso
Two things:
  1. Do any of these suggestions help? http://support.nagios.com/wiki/index.ph ... h_Problems
  2. Does your XI server know that "psm-itmon.us-bottomline.root.bottomline.com" means it? To check, use the 'host' command on that system. You should get a response like this:

    Code: Select all

    [root@demo ~]# host nagios.com
    nagios.com has address 173.45.234.224
    nagios.com mail is handled by 1 mx.fusemail.net.
    
    If instead you get something like this:

    Code: Select all

    [root@demo ~]# host psm-itmon.us-bottomline.root.bottomline.com
    Host psm-itmon.us-bottomline.root.bottomline.com not found: 3(NXDOMAIN)
    
    then you need to add an entry in /etc/hosts, with the IP address on the left, then a space (or tab), then that full domain name. The reasons for this is that XI notices what you are using in the browser to access it, and uses that in a few places to reference itself, so if you have a DNS record defined for your workstation that the XI server does not also have it will get confused.

Re: No graphs

Posted: Thu Apr 07, 2011 10:40 am
by hhlodge
1. I tried those prior to posting with no luck.
2. The XI server can indeed resolve that name and the IP is of the XI host, but the OS hostname is NOT psm-itmon. Would that cause the issue?

Re: No graphs

Posted: Thu Apr 07, 2011 10:54 am
by hhlodge
I made a local host entry on my workstation and repointed my browser to the correct hostname, but that did not resolve it.

Re: No graphs

Posted: Thu Apr 07, 2011 11:06 am
by tonyyarusso
Can you view the graphs okay if you visit the raw interface directly? eg. http://192.168.5.61/nagios/pnp/ , replacing your server address.

Re: No graphs

Posted: Thu Apr 07, 2011 11:16 am
by hhlodge
Sure can.
NagiosPNP.png

Re: No graphs

Posted: Thu Apr 07, 2011 11:45 am
by mguthrie
The graphs are pulled from that PNP interface through an internal proxy. It builds the URL with a php function that asks apache:
- What is my server name? If a server name isn't specified, it builds the URL from the server's IP address.

Are you using a port other than port 80?
Is there anything on your system you can think of that might alter a process like the one descibed above?

Re: No graphs

Posted: Thu Apr 07, 2011 12:09 pm
by hhlodge
Hmm. Apache was configured as psm-itmon (via the Admin->Manage System Config->Program URL), different from the hostname. I've set all I can find all to psm-nagiosxi and restarted all services to no avail. And I am default port 80.

Re: No graphs

Posted: Thu Apr 07, 2011 1:27 pm
by rdedon
This most likely is what is causing it:

Code: Select all

http://psm-itmon.us-bottomline.root.bottomline.com/nagiosxi
http://psm-nagiosxi.us-bottomline.root.bottomline.com/nagios/pnp/index.php?host=foundry-test
the itmon and nagiosxi difference as you mentioned having a different name.

Re: No graphs

Posted: Thu Apr 07, 2011 2:39 pm
by hhlodge
I've got the names in sync in every configuration and file I can find, after a find -exec grep walk. Could remnants be buried somewhere else, a database perhaps?