Page 1 of 2

Graph Explorer issue

Posted: Thu Jun 25, 2015 4:18 am
by kulcatz
Hi,

I have all hosts inside the graph explorer. My issue is, for some hosts, there are some services that do not generate graps (e.g. memory usage). What could be the reason for it? Where can I check the configuration for Graph Explorer?

Thank you in advance.

Re: Graph Explorer issue

Posted: Thu Jun 25, 2015 10:26 am
by lmiltchev
Do you see the graphs when you go to: Service Detail-><your service>->Performance Graphs? What is the version of the Nagios XI that you are currently using?

Try to access the graph in the Graph Explorer, then run the following command and show us the output if code wraps:

Code: Select all

tail -50 /var/log/httpd/error_log

Re: Graph Explorer issue

Posted: Fri Jun 26, 2015 8:10 pm
by kulcatz
Unfortunately, I don't see it too when I go to: Service Detail-><your service>->Performance Graphs. Nagios XI version is 2014R1.3.
lmiltchev wrote:

Code: Select all

tail -50 /var/log/httpd/error_log
[root@NFVI-COMMON-NAGIOS-01 libexec]# tail -50 /var/log/httpd/error_log
[Sun Jun 21 03:16:01 2015] [notice] Digest: generating secret for digest authentication ...
[Sun Jun 21 03:16:01 2015] [notice] Digest: done
[Sun Jun 21 03:16:01 2015] [notice] Apache/2.2.15 (Unix) DAV/2 PHP/5.3.3 mod_ssl/2.2.15 OpenSSL/1.0.1e-fips configured -- resuming normal operations

Re: Graph Explorer issue

Posted: Mon Jun 29, 2015 9:47 am
by lmiltchev
If you don't see a graph under the "Service Status Detail" ("Performance Graphs" tab), you are not going to see it under the "Graph Explorer", either.

Can you click on the "Advanced" tab under the "Service Status Detail" page and show us a screenshot of this page?

Also, run:

Code: Select all

ll -d /usr/local/nagios/share/perfdata/<host name>
ll /usr/local/nagios/share/perfdata/<host name>
and show us the output. Please, substitute "<host name>" with the actual hostname of the host to which the "problem" service is added.

Re: Graph Explorer issue

Posted: Tue Jun 30, 2015 12:59 am
by kulcatz
lmiltchev wrote:Can you click on the "Advanced" tab under the "Service Status Detail" page and show us a screenshot of this page?
wcas01.PNG
Code: Select all
ll -d /usr/local/nagios/share/perfdata/<host name>
ll /usr/local/nagios/share/perfdata/<host name>
[iptribe@NFVI-COMMON-NAGIOS-01 ~]$ ll -d /usr/local/nagios/share/perfdata/RCS-PROD-WCAS-01
drwxrwxr-x. 2 nagios nagios 4096 Jun 30 13:53 /usr/local/nagios/share/perfdata/RCS-PROD-WCAS-01
[iptribe@NFVI-COMMON-NAGIOS-01 ~]$ ll /usr/local/nagios/share/perfdata/RCS-PROD-WCAS-01
total 9800
-rwxrwxr-x. 1 nagios nagios 1534768 Jun 30 13:52 CPU_Stats.rrd
-rw-rw-rw- 1 nagios nagios 4113 Jun 30 13:52 CPU_Stats.xml
-rwxrwxr-x. 1 nagios nagios 384952 Jun 30 13:53 _dev_sda1_Disk_Usage.rrd
-rw-rw-rw- 1 nagios nagios 2238 Jun 30 13:53 _dev_sda1_Disk_Usage.xml
-rwxrwxr-x. 1 nagios nagios 384952 Jun 30 13:50 _dev_sdb1_Disk_Usage.rrd
-rw-rw-rw- 1 nagios nagios 2261 Jun 30 13:50 _dev_sdb1_Disk_Usage.xml
-rwxrwxr-x. 1 nagios nagios 1534768 Jun 30 13:52 _HOST_.rrd
-rw-rw-rw- 1 nagios nagios 2112 Jun 30 13:52 _HOST_.xml
-rwxrwxr-x 1 nagios nagios 768224 Oct 12 2014 HTTP.rrd
-rwxrwxr-x 1 nagios nagios 2767 Oct 12 2014 HTTP.xml
-rwxrwxr-x. 1 nagios nagios 1151496 Sep 10 2014 Load.rrd
-rwxrwxr-x 1 nagios nagios 3503 Sep 10 2014 Load.xml
-rwxrwxr-x. 1 nagios nagios 2301312 Jun 25 07:35 Memory_Usage.rrd
-rwxrwxr-x 1 nagios nagios 2956 Jun 25 07:35 Memory_Usage.xml
-rwxrwxr-x. 1 nagios nagios 1534768 Oct 10 2014 Ping.rrd
-rwxrwxr-x 1 nagios nagios 4130 Oct 10 2014 Ping.xml
-rwxrwxr-x. 1 nagios nagios 384952 Oct 12 2014 Swap_Usage.rrd
-rwxrwxr-x 1 nagios nagios 2160 Oct 12 2014 Swap_Usage.xml

Re: Graph Explorer issue

Posted: Tue Jun 30, 2015 8:54 am
by lmiltchev
I believe the issue is in the multiple semicolons (";;;;"). The performance data should look like something like this:

Code: Select all

'TOTAL'=valueKB;'USED'=valueKB;'FREE'=valueKB;'CACHES'=valueKB;
https://nagios-plugins.org/doc/guidelines.html#AEN200

What is the plugin that you are using? Can you provide us with a download link to it? We can test it in-house.

Also, show us the actual check run from the command line, along with the output of it.

Re: Graph Explorer issue

Posted: Tue Jun 30, 2015 7:40 pm
by Box293
lmiltchev wrote:I believe the issue is in the multiple semicolons (";;;;").
If this is the case, it will show up in the logs.

Lets increase the logging verbosity and then take a deeper look into the logs. Follow the FAQ entry below to increase the log level of process_perfdata and npcd:

http://support.nagios.com/wiki/index.ph ... leshooting

Wait 15 - 20 minutes and then get a tail of the logs:

Code: Select all

tail -250 /usr/local/nagios/var/perfdata.log > /tmp/perfdata.txt
tail -250 /usr/local/nagios/var/npcd.log > /tmp/npcd.txt
Send us a copy of /tmp/perfdata.txt and /tmp/npcd.txt

Don't forget to turn down the log level as per the FAQ when you are done!

Re: Graph Explorer issue

Posted: Tue Jun 30, 2015 10:53 pm
by kulcatz
lmiltchev wrote:I believe the issue is in the multiple semicolons (";;;;"). The performance data should look like something like this:

Code: Select all

'TOTAL'=valueKB;'USED'=valueKB;'FREE'=valueKB;'CACHES'=valueKB;
https://nagios-plugins.org/doc/guidelines.html#AEN200

What is the plugin that you are using? Can you provide us with a download link to it? We can test it in-house.

Also, show us the actual check run from the command line, along with the output of it.
I got it from the link below:
http://sysadminsjourney.com/content/200 ... os-plugin/

root@RCS-PROD-WCAS-01:/usr/lib/nagios/plugins# ./check_mem.pl -f -C -w 5 -c 1
OK - 72.1% (11849624 kB) free.|TOTAL=16429872KB;;;; USED=4580248KB;15608378;16265573;; FREE=11849624KB;;;; CACHES=4744340KB;;;;

I modified the plugin but it still does not produce graphs.

root@RCS-PROD-WCAS-01:/usr/lib/nagios/plugins# ./check_mem.pl -f -C -w 5 -c 1
OK - 71.6% (11761692 kB) free.|TOTAL=16429872KB; USED=4668180KB;15608378;16265573; FREE=11761692KB; CACHES=5387536KB;


Box293 wrote:
lmiltchev wrote:I believe the issue is in the multiple semicolons (";;;;").
If this is the case, it will show up in the logs.

Lets increase the logging verbosity and then take a deeper look into the logs. Follow the FAQ entry below to increase the log level of process_perfdata and npcd:

http://support.nagios.com/wiki/index.ph ... leshooting

Wait 15 - 20 minutes and then get a tail of the logs:

Code: Select all

tail -250 /usr/local/nagios/var/perfdata.log > /tmp/perfdata.txt
tail -250 /usr/local/nagios/var/npcd.log > /tmp/npcd.txt
Send us a copy of /tmp/perfdata.txt and /tmp/npcd.txt

Don't forget to turn down the log level as per the FAQ when you are done!
perfdata.log
npcd.txt

Re: Graph Explorer issue

Posted: Tue Jun 30, 2015 11:08 pm
by Box293
Can you run these commands please:

Code: Select all

su nagios
/usr/local/nagios/libexec/process_perfdata.pl --version
And send us the output

Re: Graph Explorer issue

Posted: Tue Jun 30, 2015 11:17 pm
by kulcatz
Box293 wrote:Can you run these commands please:

Code: Select all

su nagios
/usr/local/nagios/libexec/process_perfdata.pl --version
And send us the output
[nagios@NFVI-COMMON-NAGIOS-01 root]$ /usr/local/nagios/libexec/process_perfdata.pl --version
Version: process_perfdata.pl 0.6.11
Copyright (c) 2005-2010 Joerg Linge <[email protected]>