Performance Graph Issues on New Install

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Juddnick
Posts: 11
Joined: Fri Nov 14, 2014 1:20 pm

Re: Performance Graph Issues on New Install

Post 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
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Performance Graph Issues on New Install

Post 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
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Juddnick
Posts: 11
Joined: Fri Nov 14, 2014 1:20 pm

Re: Performance Graph Issues on New Install

Post 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.
~
~
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Performance Graph Issues on New Install

Post 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).
Juddnick
Posts: 11
Joined: Fri Nov 14, 2014 1:20 pm

Re: Performance Graph Issues on New Install

Post by Juddnick »

Fantastic! That has worked - it is now collecting and graphing perf data.

Thank you all for your help!
cmerchant
Posts: 546
Joined: Wed Sep 24, 2014 11:19 am

Re: Performance Graph Issues on New Install

Post by cmerchant »

Glad that worked for you. We'll go ahead and close this thread. Thanks.
Locked