Page 2 of 2

Re: Performance Graph Issues on New Install

Posted: Tue Dec 02, 2014 3:15 am
by Juddnick
Thanks lmiltchev.

Code: Select all

[root@ms00556 ~]# ls /usr/local/nagios/var/spool/xidpe | wc -l
204196

Code: Select all

[root@ms00556 ~]# ls /usr/local/nagios/var/spool/perfdata | wc -l
0

Code: Select all

[root@ms00556 ~]# ls /usr/local/nagios/var/spool/checkresults | wc -l
0

Code: Select all

[root@ms00556 ~]# service crond status
crond (pid  54490) is running...

Code: Select all

[root@ms00556 ~]# service npcd status
NPCD running (pid 28793).

Code: Select all

[root@ms00556 ~]# ps -ef | grep perf
nagios   15506 15497  0 08:14 ?        00:00:00 /bin/sh -c /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php > /usr/local/nagiosxi/var/perfdataproc.log 2>&1
nagios   15514 15506  0 08:14 ?        00:00:00 /usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php
root     15696  2851  0 08:14 pts/0    00:00:00 grep perf

Re: Performance Graph Issues on New Install

Posted: Tue Dec 02, 2014 3:35 pm
by sreinhardt
Ah despite that it appears to be running, it seems that perfdataproc is not moving the files from xidpe to perfdata like it should. Let's run that manually and see what is returned.

Code: Select all

su nagios -s /bin/bash
/usr/bin/php -q /usr/local/nagiosxi/cron/perfdataproc.php > /usr/local/nagiosxi/var/perfdataproc.log
exit

Re: Performance Graph Issues on New Install

Posted: Thu Dec 04, 2014 8:36 am
by Juddnick
Thanks

Ran that and this is the output:

Code: Select all

Outbound data DISABLED Thu, 04 Dec 2014 13:35:02 +0000

DONE. Processed 0 files.
 too long
sh: /bin/mv: Argument list too long
sh: /bin/mv: Argument list too long
^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@^@
DONE. Processed 0 files.
~
~

Re: Performance Graph Issues on New Install

Posted: Thu Dec 04, 2014 11:18 am
by slansing
Yep, looks like there are too many files in xidpe clogging it up, lets run:

Code: Select all

cd /usr/local/nagios/var/spool/xidpe/
find . -type f -delete
service npcd restart
Continue monitoring that directory every 5 minutes or so and let us know if it is filling faster than it is being processed, if it is processing correctly, you should start to see graphs within 20 minutes or so (with default 5 minute check intervals).

Re: Performance Graph Issues on New Install

Posted: Fri Dec 05, 2014 5:57 am
by Juddnick
Fantastic! That has worked - it is now collecting and graphing perf data.

Thank you all for your help!

Re: Performance Graph Issues on New Install

Posted: Fri Dec 05, 2014 10:11 am
by cmerchant
Glad that worked for you. We'll go ahead and close this thread. Thanks.