Performance Graphs Issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Performance Graphs Issue

Post by jkinning »

abrist wrote:Check the npcd and perfdata logs for new errors.
The json error is due to the existence of NaNs due to to the lack of perfdata in the rrds.
I see similiarities with what mkosmoski posted but I don't have any performance graphs.

Code: Select all

tail -50 /usr/local/nagios/var/npcd.log 
[02-06-2015 04:58:20] NPCD: ERROR: Executed command exits with return code '1'
[02-06-2015 04:58:20] NPCD: ERROR: Executed command exits with return code '1'
[02-06-2015 04:58:20] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1423216685.perfdata.host'
[02-06-2015 04:58:20] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1423216685.perfdata.service'
[02-06-2015 13:30:00] NPCD: ERROR: Executed command exits with return code '1'
[02-06-2015 13:30:00] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1423247375.perfdata.service'
[02-06-2015 13:30:00] NPCD: ERROR: Executed command exits with return code '1'
[02-06-2015 13:30:00] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1423247375.perfdata.host'
[02-06-2015 13:30:00] NPCD: ERROR: Executed command exits with return code '1'
[02-06-2015 13:30:00] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1423247390.perfdata.host'
[02-06-2015 13:30:00] NPCD: ERROR: Executed command exits with return code '1'
[02-06-2015 13:30:00] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1423247391.perfdata.service'
[02-08-2015 16:57:09] NPCD: ERROR: Executed command exits with return code '1'
[02-08-2015 16:57:09] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1423432610.perfdata.service'
[02-09-2015 16:02:46] NPCD: ERROR: Executed command exits with return code '1'
[02-09-2015 16:02:46] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1423515746.perfdata.service'
[02-09-2015 16:02:46] NPCD: ERROR: Executed command exits with return code '1'
[02-09-2015 16:02:46] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1423515746.perfdata.host'
[02-09-2015 21:53:10] NPCD: ERROR: Executed command exits with return code '1'
[02-09-2015 21:53:10] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1423536761.perfdata.host'
[02-09-2015 21:53:10] NPCD: ERROR: Executed command exits with return code '1'
[02-09-2015 21:53:10] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1423536761.perfdata.service'
[02-09-2015 21:53:10] NPCD: ERROR: Executed command exits with return code '1'
[02-09-2015 21:53:10] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1423536776.perfdata.host'
[02-09-2015 21:53:10] NPCD: ERROR: Executed command exits with return code '1'
[02-09-2015 21:53:10] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1423536776.perfdata.service'
[02-10-2015 07:32:17] NPCD: ERROR: Executed command exits with return code '1'
[02-10-2015 07:32:17] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1423571501.perfdata.service'
[02-10-2015 07:32:17] NPCD: ERROR: Executed command exits with return code '1'
[02-10-2015 07:32:17] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1423571501.perfdata.host'
[02-10-2015 07:32:17] NPCD: ERROR: Executed command exits with return code '1'
[02-10-2015 07:32:17] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1423571516.perfdata.host'
[02-10-2015 07:32:17] NPCD: ERROR: Executed command exits with return code '1'
[02-10-2015 07:32:17] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1423571516.perfdata.service'
[02-10-2015 08:44:15] NPCD: ERROR: Executed command exits with return code '1'
[02-10-2015 08:44:15] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1423575836.perfdata.service'
[02-10-2015 08:44:15] NPCD: ERROR: Executed command exits with return code '1'
[02-10-2015 08:44:15] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1423575836.perfdata.host'
[02-10-2015 11:41:41] NPCD: ERROR: Executed command exits with return code '1'
[02-10-2015 11:41:41] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1423586486.perfdata.host'
[02-10-2015 11:41:41] NPCD: ERROR: Executed command exits with return code '1'
[02-10-2015 11:41:41] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1423586471.perfdata.service'
[02-10-2015 14:03:14] NPCD: ERROR: Executed command exits with return code '1'
[02-10-2015 14:03:14] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1423594968.perfdata.service'
[02-10-2015 14:03:14] NPCD: ERROR: Executed command exits with return code '1'
[02-10-2015 14:03:14] NPCD: ERROR: Command line was '/usr/local/nagios/libexec/process_perfdata.pl -n -b /usr/local/nagios/var/spool/perfdata//1423594968.perfdata.host'
[02-11-2015 15:24:52] NPCD: Caught Termination Signal - Hasta la vista... baby
[02-11-2015 15:24:52] NPCD: npcd Daemon (0.4.14) started with PID=18912
[02-11-2015 15:24:52] NPCD: Please have a look at 'npcd -V' to get license information
[02-11-2015 15:24:52] NPCD: HINT: load_threshold is enabled - ('10.000000')

Code: Select all

tail -50 /usr/local/nagios/var/perfdata.log
2015-02-10 07:32:17 [46066] [0] *** TIMEOUT: Timeout after 5 Sec. ****
2015-02-10 07:32:17 [46064] [0] *** TIMEOUT: Timeout after 5 Sec. ****
2015-02-10 07:32:17 [46062] [0] *** TIMEOUT: Timeout after 5 Sec. ****
2015-02-10 07:32:17 [46066] [0] *** TIMEOUT: Deleting current file to avoid NPCD loops
2015-02-10 07:32:17 [46064] [0] *** TIMEOUT: Deleting current file to avoid NPCD loops
2015-02-10 07:32:17 [46066] [0] *** TIMEOUT: Please check your process_perfdata.cfg
2015-02-10 07:32:17 [46064] [0] *** TIMEOUT: Please check your process_perfdata.cfg
2015-02-10 07:32:17 [46062] [0] *** TIMEOUT: Deleting current file to avoid NPCD loops
2015-02-10 07:32:17 [46062] [0] *** TIMEOUT: Please check your process_perfdata.cfg
2015-02-10 07:32:17 [46063] [0] *** TIMEOUT: Timeout after 5 Sec. ****
2015-02-10 07:32:17 [46063] [0] *** TIMEOUT: Deleting current file to avoid NPCD loops
2015-02-10 07:32:17 [46063] [0] *** TIMEOUT: Please check your process_perfdata.cfg
2015-02-10 07:32:17 [46062] [0] *** TIMEOUT: /usr/local/nagios/var/spool/perfdata//1423571501.perfdata.host-PID-46062 deleted
2015-02-10 07:32:17 [46063] [0] *** TIMEOUT: /usr/local/nagios/var/spool/perfdata//1423571501.perfdata.service-PID-46063 deleted
2015-02-10 07:32:17 [46062] [0] *** process_perfdata.pl terminated on signal ALRM
2015-02-10 07:32:17 [46063] [0] *** process_perfdata.pl terminated on signal ALRM
2015-02-10 07:32:17 [46064] [0] *** TIMEOUT: /usr/local/nagios/var/spool/perfdata//1423571516.perfdata.host-PID-46064 deleted
2015-02-10 07:32:17 [46064] [0] *** process_perfdata.pl terminated on signal ALRM
2015-02-10 07:32:17 [46066] [0] *** TIMEOUT: /usr/local/nagios/var/spool/perfdata//1423571516.perfdata.service-PID-46066 deleted
2015-02-10 07:32:17 [46066] [0] *** process_perfdata.pl terminated on signal ALRM
2015-02-10 08:44:15 [13869] [0] *** TIMEOUT: Timeout after 5 Sec. ****
2015-02-10 08:44:15 [13868] [0] *** TIMEOUT: Timeout after 5 Sec. ****
2015-02-10 08:44:15 [13869] [0] *** TIMEOUT: Deleting current file to avoid NPCD loops
2015-02-10 08:44:15 [13868] [0] *** TIMEOUT: Deleting current file to avoid NPCD loops
2015-02-10 08:44:15 [13869] [0] *** TIMEOUT: Please check your process_perfdata.cfg
2015-02-10 08:44:15 [13868] [0] *** TIMEOUT: Please check your process_perfdata.cfg
2015-02-10 08:44:15 [13869] [0] *** TIMEOUT: /usr/local/nagios/var/spool/perfdata//1423575836.perfdata.service-PID-13869 deleted
2015-02-10 08:44:15 [13868] [0] *** TIMEOUT: /usr/local/nagios/var/spool/perfdata//1423575836.perfdata.host-PID-13868 deleted
2015-02-10 08:44:15 [13868] [0] *** process_perfdata.pl terminated on signal ALRM
2015-02-10 08:44:15 [13869] [0] *** process_perfdata.pl terminated on signal ALRM
2015-02-10 11:41:41 [29564] [0] *** TIMEOUT: Timeout after 5 Sec. ****
2015-02-10 11:41:41 [29564] [0] *** TIMEOUT: Deleting current file to avoid NPCD loops
2015-02-10 11:41:41 [29564] [0] *** TIMEOUT: Please check your process_perfdata.cfg
2015-02-10 11:41:41 [29562] [0] *** TIMEOUT: Timeout after 5 Sec. ****
2015-02-10 11:41:41 [29564] [0] *** TIMEOUT: /usr/local/nagios/var/spool/perfdata//1423586486.perfdata.host-PID-29564 deleted
2015-02-10 11:41:41 [29562] [0] *** TIMEOUT: Deleting current file to avoid NPCD loops
2015-02-10 11:41:41 [29564] [0] *** process_perfdata.pl terminated on signal ALRM
2015-02-10 11:41:41 [29562] [0] *** TIMEOUT: Please check your process_perfdata.cfg
2015-02-10 11:41:41 [29562] [0] *** TIMEOUT: /usr/local/nagios/var/spool/perfdata//1423586471.perfdata.service-PID-29562 deleted
2015-02-10 11:41:41 [29562] [0] *** process_perfdata.pl terminated on signal ALRM
2015-02-10 14:03:14 [31988] [0] *** TIMEOUT: Timeout after 5 Sec. ****
2015-02-10 14:03:14 [31989] [0] *** TIMEOUT: Timeout after 5 Sec. ****
2015-02-10 14:03:14 [31988] [0] *** TIMEOUT: Deleting current file to avoid NPCD loops
2015-02-10 14:03:14 [31989] [0] *** TIMEOUT: Deleting current file to avoid NPCD loops
2015-02-10 14:03:14 [31988] [0] *** TIMEOUT: Please check your process_perfdata.cfg
2015-02-10 14:03:14 [31989] [0] *** TIMEOUT: Please check your process_perfdata.cfg
2015-02-10 14:03:14 [31988] [0] *** TIMEOUT: /usr/local/nagios/var/spool/perfdata//1423594968.perfdata.host-PID-31988 deleted
2015-02-10 14:03:14 [31989] [0] *** TIMEOUT: /usr/local/nagios/var/spool/perfdata//1423594968.perfdata.service-PID-31989 deleted
2015-02-10 14:03:14 [31988] [0] *** process_perfdata.pl terminated on signal ALRM
2015-02-10 14:03:14 [31989] [0] *** process_perfdata.pl terminated on signal ALRM
ll -d /usr/local/nagios/share/perfdata/
drwxrwxr-x 81 nagios nagios 4096 Feb 9 13:38 /usr/local/nagios/share/perfdata/

Code: Select all

ll /usr/local/nagios/share/perfdata/ecmapp01q
total 8708
-rwxrwxr-x 1 nagios nagios  384952 Jan 19 15:14 CPU_Usage.rrd
-rwxrwxr-x 1 nagios nagios    1762 Jan 21 14:04 CPU_Usage.xml
-rwxrwxr-x 1 nagios nagios  384952 Jan 19 15:15 Drive_C__Disk_Usage.rrd
-rwxrwxr-x 1 nagios nagios    1912 Jan 21 14:02 Drive_C__Disk_Usage.xml
-rwxrwxr-x 1 nagios nagios  384952 Jan 19 15:15 Drive_D__Disk_Usage.rrd
-rwxrwxr-x 1 nagios nagios    1907 Jan 21 14:02 Drive_D__Disk_Usage.xml
-rwxrwxr-x 1 nagios nagios 1534768 Jan 19 15:14 _HOST_.rrd
-rw-rw-r-- 1 nagios nagios    2104 Feb 12 09:14 _HOST_.xml
-rwxrwxr-x 1 nagios nagios  384952 Jan 19 15:15 Memory_Usage.rrd
-rwxrwxr-x 1 nagios nagios    1888 Jan 21 14:03 Memory_Usage.xml
-rwxrwxr-x 1 nagios nagios  384952 Jan 19 15:16 Page_File_Usage.rrd
-rwxrwxr-x 1 nagios nagios    2013 Jan 21 14:04 Page_File_Usage.xml
-rwxrwxr-x 1 nagios nagios 1534768 Jan 19 15:17 Ping.rrd
-rwxrwxr-x 1 nagios nagios    3162 Jan 21 14:06 Ping.xml
-rwxrwxr-x 1 nagios nagios  384952 Jan 19 15:17 Server_Work_Queues.rrd
-rwxrwxr-x 1 nagios nagios    2225 Jan 21 14:05 Server_Work_Queues.xml
-rwxrwxr-x 1 nagios nagios  384952 Jan 19 15:17 Uptime.rrd
-rwxrwxr-x 1 nagios nagios    1692 Jan 21 14:04 Uptime.xml
-rwxrwxr-x 1 nagios nagios  384952 Jan 21 15:51 Windows_NonProd_C__Drive.rrd
-rw-rw-r-- 1 nagios nagios    1942 Feb 12 09:13 Windows_NonProd_C__Drive.xml
-rwxrwxr-x 1 nagios nagios  384952 Jan 21 15:52 Windows_NonProd_CPU.rrd
-rwxrwxr-x 1 nagios nagios    1817 Feb 10 12:55 Windows_NonProd_CPU.xml
-rwxrwxr-x 1 nagios nagios  384952 Jan 21 15:52 Windows_NonProd_D__Drive.rrd
-rw-rw-r-- 1 nagios nagios    1937 Feb 12 09:12 Windows_NonProd_D__Drive.xml
-rwxrwxr-x 1 nagios nagios  384952 Jan 21 15:53 Windows_NonProd_Memory_Usage.rrd
-rw-rw-r-- 1 nagios nagios    1964 Feb 12 09:11 Windows_NonProd_Memory_Usage.xml
-rwxrwxr-x 1 nagios nagios  384952 Jan 21 15:54 Windows_NonProd_Page_File_Usage.rrd
-rw-rw-r-- 1 nagios nagios    2089 Feb 12 09:11 Windows_NonProd_Page_File_Usage.xml
-rwxrwxr-x 1 nagios nagios  384952 Jan 21 15:54 Windows_NonProd_RDP.rrd
-rw-rw-r-- 1 nagios nagios    1720 Feb 12 09:11 Windows_NonProd_RDP.xml
-rwxrwxr-x 1 nagios nagios  384952 Jan 21 15:55 Windows_NonProd_Server_Work_Queue.rrd
-rw-rw-r-- 1 nagios nagios    2295 Feb 12 09:12 Windows_NonProd_Server_Work_Queue.xml
-rwxrwxr-x 1 nagios nagios  384952 Jan 21 15:51 Windows_NonProd_Uptime.rrd
-rwxrwxr-x 1 nagios nagios    1772 Feb  9 14:16 Windows_NonProd_Uptime.xml
ll /usr/local/nagios/var/spool/xidpe | wc -l
3

ll /usr/local/nagios/var/spool/perfdata | wc -l
5
Last edited by lmiltchev on Mon Feb 16, 2015 5:58 pm, edited 3 times in total.
Reason: Split topic from: http://support.nagios.com/forum/viewtopic.php?t=31420#126708 As the issues may not be related and it is easier totroubleshoot one environment per thread.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Performance Grpahs Issue

Post by abrist »

You rrds have not been updated since January 19th. Do you remember implementing any changes that day?
Is npcd running?

Code: Select all

service npcd status
Check for multiple parents:

Code: Select all

ps -aef | grep npcd
Also, lets make sure the perfdata files are not too large:

Code: Select all

ls -la /usr/local/nagios/var/
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Performance Grpahs Issue

Post by jkinning »

Not sure of date but only thing I can think of is the updates for Nagios when new releases come out.

NCPD is running
service npcd status
NPCD running (pid 18912).

Only see one instance
ps -aef | grep npcd
nagios 18912 1 0 Feb11 ? 00:00:07 /usr/local/nagios/bin/npcd -d -f /usr/local/nagios/etc/pnp/npcd.cfg
root 46673 63538 0 14:02 pts/0 00:00:00 grep npcd

ls -la /usr/local/nagios/var/
total 2424
drwxrwxr-x 6 nagios nagios 4096 Feb 12 14:03 .
drwxr-xr-x 9 root root 4096 May 12 2014 ..
drwxrwxr-x 2 nagios nagios 12288 Feb 11 23:59 archives
-rw-r--r-- 1 nagios users 0 Feb 12 14:03 host-perfdata
-rw-r--r-- 1 nagios nagios 655 Feb 12 13:48 nagios.configtest
-rw-r--r-- 1 nagios nagios 6 Feb 12 13:48 nagios.lock
-rw-r--r-- 1 nagios nagios 129564 Feb 12 13:57 nagios.log
-rw-r--r-- 1 nagios nagios 5 Jan 30 09:26 ndo2db.lock
-rw-r--r-- 1 nagios nagios 0 Feb 12 13:48 ndomod.tmp
srwxr-xr-x 1 nagios nagios 0 Jan 30 09:26 ndo.sock
-rw-r--r-- 1 nagios nagios 31314 Feb 11 15:24 npcd.log
-rw-r--r-- 1 nagios nagios 598703 Feb 12 10:30 objects.cache
-rw-r--r-- 1 nagios nagios 655143 Feb 12 13:48 objects.precache
-rw-rw-rw- 1 nagios nagios 50226 Feb 10 14:03 perfdata.log
-rw------- 1 nagios nagios 949007 Feb 12 13:48 retention.dat
drwxrwsr-x 2 nagios nagcmd 4096 Feb 12 13:48 rw
-rw-r--r-- 1 nagios users 1056 Feb 12 14:03 service-perfdata
drwxr-xr-x 5 nagios nagios 4096 May 12 2014 spool
drwxr-xr-x 2 nagios nagios 4096 Dec 22 15:36 stats

I am using a ramdisk but didn't know if that would make an impact or not. I read this document - http://assets.nagios.com/downloads/nagi ... giosXI.pdf and it sounded like some components were optional to place on the ramdisk or is that not true. Considering I made my ramdisk 512MB I didn't want to put the performance data there.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Performance Grpahs Issue

Post by abrist »

Can you post your nagios.cfg?
Also, could you also post a listing of your ramdisk:

Code: Select all

ls -la /path/to/ramdisk
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Performance Grpahs Issue

Post by jkinning »

ls -la /ramdisk/
total 1584
drwxrwxrwt 3 root root 100 Feb 12 15:32 .
dr-xr-xr-x. 25 root root 4096 Jan 30 09:25 ..
-rw-r--r-- 1 nagios nagios 655143 Feb 12 13:48 objects.cache
drwxr-xr-x 3 nagios nagios 60 Feb 12 12:24 spool
-rw-r--r-- 1 nagios users 962388 Feb 12 15:32 status.dat
[root@nagiosl1t etc]# ls -la /ramdisk/spool/
total 0
drwxr-xr-x 3 nagios nagios 60 Feb 12 12:24 .
drwxrwxrwt 3 root root 100 Feb 12 15:32 ..
drwxr-xr-x 2 nagios nagios 40 Feb 12 12:24 checkresults
[root@nagiosl1t etc]# ls -la /ramdisk/spool/checkresults/
total 0
drwxr-xr-x 2 nagios nagios 40 Feb 12 12:24 .
drwxr-xr-x 3 nagios nagios 60 Feb 12 12:24 ..
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Performance Grpahs Issue

Post by lmiltchev »

Can you also post the "/usr/local/nagios/etc/pnp/process_perfdata.cfg" and "/usr/local/nagios/etc/pnp/npcd.cfg" file?

Did you intend to move the checkresults to the ramdisk? You have created "/ramdisk/spool/checkresults/" directory but in your nagios.cfg config you have:

Code: Select all

check_result_path=/usr/local/nagios/var/spool/checkresults
Run the following commands and show us the output:

Code: Select all

grep ramdisk /etc/init.d/nagios
grep ramdisk /etc/init.d/npcd
grep ramdisk /usr/local/nagiosxi/html/config.inc.php
grep ramdisk /usr/local/nrdp/server/config.inc.php
I've seen many issues with users who only partially implemented RAM disk. I would recommend following ALL of the steps, outlined in this document:

http://assets.nagios.com/downloads/nagi ... giosXI.pdf
Be sure to check out our Knowledgebase for helpful articles and solutions!
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Performance Grpahs Issue

Post by jkinning »

Good to know. Since I didn't want to have everything in ramdisk I have decided to change everything back to original and remove the ramdisk.

I still don't have any performance graphs so with the ramdisk eliminated what would you need to see to assist in troubleshooting this issue now.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Performance Grpahs Issue

Post by abrist »

Can you run the commands and post the files requested in Ludmil's last post?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Performance Grpahs Issue

Post by jkinning »

grep ramdisk /etc/init.d/nagios
ramdisk=`mount |grep "${RAMDISK_DIR} type tmpfs"`
if [ "$ramdisk"X == "X" ]; then

grep ramdisk /etc/init.d/npcd
grep ramdisk /usr/local/nagiosxi/html/config.inc.php

grep ramdisk /usr/local/nrdp/server/config.inc.php
// $cfg["check_results_dir"]="/ramdisk/spool/checkresults";
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Performance Graphs Issue

Post by scottwilkerson »

Did you change these commands in the CCM back to their original value?

process-host-perfdata-file-bulk
process-service-perfdata-file-bulk

In addition to this:
Can you also post the "/usr/local/nagios/etc/pnp/process_perfdata.cfg" and "/usr/local/nagios/etc/pnp/npcd.cfg" file?
We haven't seen these two configs. If you haven't increased verbosity, please do so - set:

Code: Select all

LOG_LEVEL = 2 
in "/usr/local/nagios/etc/pnp/process_perfdata.cfg"

and

Code: Select all

log_level = -1
in "/usr/local/nagios/etc/pnp/npcd.cfg", and restart npcd:

Code: Select all

service npcd restart
Next, run the following commands and show us the output in code wraps:

Code: Select all

ls /usr/local/nagios/var/spool/xidpe | wc -l
ls /usr/local/nagios/var/spool/perfdata | wc -l
ls /usr/local/nagios/var/spool/checkresults | wc -l
ps -ef | grep perfdataproc
service npcd status
tail -50 /usr/local/nagios/var/npcd.log
tail -50 /usr/local/nagios/var/perfdata.log
lmiltchev
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked