nagios xi graph

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
souhela
Posts: 2
Joined: Thu Sep 19, 2013 8:44 am

nagios xi graph

Post by souhela »

Hi
I have installed nagios xi and added few clients to monitor. everything looks fine but the graphs are empty with no data on it. I can see status informatoin for services that I monitor on "service Status" page for each host. but when I click on graphs there are no data on graphs. it shows empty graph. please let me know how to troubleshoot this.

Here is some information regarding my setup

Nagios XI Installation Profile
Download Profile
System:
Nagios XI Version : 2012R2.3
nagios-xi.XXXXXXXX 2.6.32-358.14.1.el6.x86_64 x86_64
CentOS release 6.4 (Final)
Gnome Installed
Apache Information
PHP Version: 5.3.3
Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:13.0) Gecko/20100101 Firefox/13.0.1
Server Name: 172.XXXXXXXXX
Server Address: 172.xxxxxxxxxx
Server Port: 80
Date/Time
PHP Timezone: Etc/GMT
PHP Time: Tue, 15 Oct 2013 16:04:57 +0000
System Time: Tue, 15 Oct 2013 16:04:57 +0000
Nagios XI Data
nagios (pid 14430) is running...
NPCD running (pid 2322).
ndo2db (pid 23025) is running...
CPU Load 15: 0.00
Total Hosts: 5
Total Services: 37
Function 'get_base_uri' returns: http://172.xxxxxxx/nagiosxi/
Function 'get_base_url' returns: http://172.xxxxxxxx/nagiosxi/
Function 'get_backend_url(internal_call=false)' returns: http://172.xxxxxxxx/nagiosxi/includes/c ... rofile.php
Function 'get_backend_url(internal_call=true)' returns: http://localhost/nagiosxi/backend/
Ping Test localhost
Running:

/bin/ping -c 3 localhost 2>&1

PING localhost (127.0.0.1) 56(84) bytes of data.
64 bytes from localhost (127.0.0.1): icmp_seq=1 ttl=64 time=0.015 ms
64 bytes from localhost (127.0.0.1): icmp_seq=2 ttl=64 time=0.027 ms
64 bytes from localhost (127.0.0.1): icmp_seq=3 ttl=64 time=0.028 ms

--- localhost ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 1999ms
rtt min/avg/max/mdev = 0.015/0.023/0.028/0.007 ms
Test wget To locahost
WGET From URL: http://localhost/nagiosql/index.php
Running:

/usr/bin/wget http://localhost/nagiosql/index.php

--2013-10-15 16:04:59-- http://localhost/nagiosql/index.php
Resolving localhost... ::1, 127.0.0.1
Connecting to localhost|::1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 5259 (5.1K) [text/html]
Saving to: `/tmp/nagiosql_index.tmp'

0K ..... 100% 437M=0s

2013-10-15 16:04:59 (437 MB/s) - `/tmp/nagiosql_index.tmp' saved [5259/5259]
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: nagios xi graph

Post by abrist »

First of all, do those checks missing graphs report performance data?
To find out, go to --> Home --> Service Details --> click on one of the broken services --> Advanced Tab --> Advanced Status Details --> Performance Data. You should see some performance data text in that field, if not, then the problem is with the plugin itself and not the graphing engine.

If perfdata is being reported, then we need to check some logs:

Code: Select all

tail -25 /usr/local/nagios/var/perfdata.log
tail -25 /usr/local/nagios/var/npcd.log
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.
souhela
Posts: 2
Joined: Thu Sep 19, 2013 8:44 am

Re: nagios xi graph

Post by souhela »

Hi

thanks for the respond. data is being collected. Here is the output from logs and advanced status

Service State: Ok
Duration: 13d 2h 3m 23s
State Type: Hard
Current Check: 1 of 5
Last Check: 2013-10-15 18:51:08
Next Check: 2013-10-15 18:56:08
Last State Change: 2013-10-02 16:51:07
Last Notification: Never
Check Type: Active
Check Latency: 0.237 seconds
Execution Time: 0.02025 seconds
State Change: 0%
Performance Data: /=11317MB;129479;145664;0;161849


xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx

[root@nagios-xi]~# tail -25 /usr/local/nagios/var/perfadata.log
tail: cannot open `/usr/local/nagios/var/perfadata.log' for reading: No such file or directory
[root@nagios-xi]~# tail -25 /usr/local/nagios/var/npcd.log
[09-27-2013 18:58:59] NPCD: npcd Daemon (0.4.14) started with PID=21301
[09-27-2013 18:58:59] NPCD: Please have a look at 'npcd -V' to get license information
[09-27-2013 18:58:59] NPCD: HINT: load_threshold is enabled - ('10.000000')
[10-01-2013 16:35:58] NPCD: npcd Daemon (0.4.14) started with PID=2648
[10-01-2013 16:35:58] NPCD: Please have a look at 'npcd -V' to get license information
[10-01-2013 16:35:58] NPCD: HINT: load_threshold is enabled - ('10.000000')
[10-01-2013 18:28:55] NPCD: Caught Termination Signal - Hasta la vista... baby
[10-01-2013 18:32:27] NPCD: npcd Daemon (0.4.14) started with PID=2322
[10-01-2013 18:32:27] NPCD: Please have a look at 'npcd -V' to get license information
[10-01-2013 18:32:27] NPCD: HINT: load_threshold is enabled - ('10.000000')
[10-01-2013 19:48:58] NPCD: Caught Termination Signal - Hasta la vista... baby
[root@nagios-xi]~#
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: nagios xi graph

Post by abrist »

apologies - I had fat fingers on those commands. Could you try:

Code: Select all

 tail -25 /usr/local/nagios/var/perfdata.log
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.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: nagios xi graph

Post by slansing »

Does the graphs display any errors, perhaps mentioning a template? Could you send us a screenshot of the graph associated with the service noted above? Also, what is the output of the following:

Code: Select all

tail -30 /usr/local/nagios/var/perfdata.log
Locked