Page 1 of 1

Performance data is not being collected.

Posted: Wed Jan 25, 2017 3:26 pm
by bongbi
As subject stated, I do not see performance graph is being generated. When I checked spool folder for performance data, it is empty.

Code: Select all

[root@nagiosxi /]# cd /usr/local/nagios/var/spool/
[root@nagiosxi spool]# ls -alR
.:
total 20
drwxr-xr-x 5 nagios nagios 4096 Feb 19  2016 .
drwxrwxr-x 6 nagios nagios 4096 Jan 25 15:16 ..
drwxrwsr-x 2 nagios nagcmd 4096 Jan 25 14:25 checkresults
drwxr-xr-x 2 nagios nagios 4096 Nov  7 23:01 perfdata
drwxr-xr-x 2 nagios nagios 4096 Nov  7 23:00 xidpe

./checkresults:
total 8
drwxrwsr-x 2 nagios nagcmd 4096 Jan 25 14:25 .
drwxr-xr-x 5 nagios nagios 4096 Feb 19  2016 ..

./perfdata:
total 8
drwxr-xr-x 2 nagios nagios 4096 Nov  7 23:01 .
drwxr-xr-x 5 nagios nagios 4096 Feb 19  2016 ..

./xidpe:
total 8
drwxr-xr-x 2 nagios nagios 4096 Nov  7 23:00 .
drwxr-xr-x 5 nagios nagios 4096 Feb 19  2016 ..
I did follow recommendation such as change log level on npcd.cfg and process_perfdata.cfg to 2 but still I don't see performance data in spool directory.

Any suggestion?

Re: Performance data is not being collected.

Posted: Wed Jan 25, 2017 3:54 pm
by dwhitfield
Was CCM->Services-><your service>->Modify->Check Settings tab->Process perf data = on ? (rather than off at the end). Related question: what version of XI are you running?

Is there anything in /usr/local/nagios/share/perfdata/ ?

Can you run the following and post the output here?

Code: Select all

    tail -100 /usr/local/nagios/var/perfdata.log
    tail -100 /usr/local/nagios/var/npcd.log
    ps -ef|grep [n]pcd

Re: Performance data is not being collected.

Posted: Wed Jan 25, 2017 4:13 pm
by bongbi
It is set to skip on CCM. This setting have to be set to on?
NagiosXI version 5.4.0

Code: Select all

[root@nagiosxi ~]# ps -ef|grep [n]pcd
nagios     2325      1  0 11:22 ?        00:00:00 /usr/local/nagios/bin/npcd -d -f /usr/local/nagios/etc/pnp/npcd.cfg
There are files on perfdata folder but modify time is May 3

Code: Select all

[root@nagiosxi ~]# ls -alR /usr/local/nagios/share/perfdata/ | wc -l
4906

/usr/local/nagios/share/perfdata/www.sirtcentre.com:
total 3044
drwxrwxr-x   2 nagios nagios    4096 May  3  2016 .
drwxrwxr-x 280 nagios nagios   20480 Apr 28  2016 ..
-rwxrwxr-x   1 nagios nagios  768224 May  3  2016 _HOST_.rrd
-rwxrwxr-x   1 nagios nagios    2667 May  3  2016 _HOST_.xml
-rwxrwxr-x   1 nagios nagios  768224 May  3  2016 HTTP.rrd
-rwxrwxr-x   1 nagios nagios    2900 May  3  2016 HTTP.xml
-rwxrwxr-x   1 nagios nagios 1534768 May  3  2016 Ping.rrd
-rwxrwxr-x   1 nagios nagios    4153 May  3  2016 Ping.xml


Re: Performance data is not being collected.

Posted: Wed Jan 25, 2017 5:03 pm
by ssax
Please PM one of us a copy of your profile, you can download it by going to Admin > System Config > System Profile and click the Download Profile button in the top right corner.

Also, please follow this KB article to see if you're able to determine the issue:

https://support.nagios.com/kb/article.php?id=9

Thank you

Re: Performance data is not being collected.

Posted: Thu Jan 26, 2017 10:03 am
by bongbi
PM sent. And that was the first KB article I tried :)

Thanks!

Re: Performance data is not being collected.

Posted: Thu Jan 26, 2017 4:22 pm
by dwhitfield
Who'd you send the PM to? neither @ssax nor I got anything. I'm also going to PM you my email address in case you are having problems with PMing.

UPDATE: Profile received and shared with techs

Re: Performance data is not being collected.

Posted: Thu Jan 26, 2017 4:50 pm
by bongbi
Thanks for follow up. I sent profile to your email address. :D

Re: Performance data is not being collected.

Posted: Fri Jan 27, 2017 12:56 pm
by dwhitfield
Please run through https://support.nagios.com/kb/article.php?id=149

If the yum command does not work, try the two following commands in place of it:

Code: Select all

cpan YAML
cpan RRD::Simple

Re: Performance data is not being collected.

Posted: Mon Jan 30, 2017 10:40 am
by bongbi
Hi.

I have followed KB article in the link but still problem remains.
Any other suggestion?

Thanks!

Re: Performance data is not being collected.

Posted: Mon Jan 30, 2017 12:02 pm
by dwhitfield
What error did you run into? What are the outputs of the following?

Code: Select all

cpan YAML
cpan RRD::Simple