Performance data is not being collected.

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bongbi
Posts: 27
Joined: Wed Oct 07, 2015 2:05 pm

Performance data is not being collected.

Post 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?
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Performance data is not being collected.

Post 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
bongbi
Posts: 27
Joined: Wed Oct 07, 2015 2:05 pm

Re: Performance data is not being collected.

Post 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

You do not have the required permissions to view the files attached to this post.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Performance data is not being collected.

Post 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
bongbi
Posts: 27
Joined: Wed Oct 07, 2015 2:05 pm

Re: Performance data is not being collected.

Post by bongbi »

PM sent. And that was the first KB article I tried :)

Thanks!
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Performance data is not being collected.

Post 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
bongbi
Posts: 27
Joined: Wed Oct 07, 2015 2:05 pm

Re: Performance data is not being collected.

Post by bongbi »

Thanks for follow up. I sent profile to your email address. :D
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Performance data is not being collected.

Post 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
bongbi
Posts: 27
Joined: Wed Oct 07, 2015 2:05 pm

Re: Performance data is not being collected.

Post by bongbi »

Hi.

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

Thanks!
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Performance data is not being collected.

Post by dwhitfield »

What error did you run into? What are the outputs of the following?

Code: Select all

cpan YAML
cpan RRD::Simple
Locked