Page 1 of 1

Nagios XI no performance graph data.

Posted: Thu Jun 25, 2015 6:32 am
by tzidore
Hi

I have been implementing Nagios XI over the last month, and I just realized that I dont have any performance graph data collection anyware.

On other threads I saw people were asked to post this:

Code: Select all

tail -25 /usr/local/nagios/var/npcd.log
[05-05-2015 08:26:05] NPCD: HINT: load_threshold is enabled - ('10.000000')
[05-05-2015 15:15:24] NPCD: Caught Termination Signal - Hasta la vista... baby
[05-05-2015 15:15:41] NPCD: npcd Daemon (0.4.14) started with PID=1475
[05-05-2015 15:15:41] NPCD: Please have a look at 'npcd -V' to get license information
[05-05-2015 15:15:41] NPCD: HINT: load_threshold is enabled - ('10.000000')
[05-05-2015 15:11:52] NPCD: Caught Termination Signal - Hasta la vista... baby
[05-05-2015 15:14:00] NPCD: npcd Daemon (0.4.14) started with PID=2049
[05-05-2015 15:14:00] NPCD: Please have a look at 'npcd -V' to get license information
[05-05-2015 15:14:00] NPCD: HINT: load_threshold is enabled - ('10.000000')
[05-07-2015 14:57:05] NPCD: Caught Termination Signal - Hasta la vista... baby
[05-07-2015 15:02:20] NPCD: npcd Daemon (0.4.14) started with PID=1467
[05-07-2015 15:02:20] NPCD: Please have a look at 'npcd -V' to get license information
[05-07-2015 15:02:20] NPCD: HINT: load_threshold is enabled - ('10.000000')
[05-19-2015 11:52:04] NPCD: Caught Termination Signal - Hasta la vista... baby
[05-19-2015 11:52:21] NPCD: npcd Daemon (0.4.14) started with PID=1468
[05-19-2015 11:52:21] NPCD: Please have a look at 'npcd -V' to get license information
[05-19-2015 11:52:21] NPCD: HINT: load_threshold is enabled - ('10.000000')
[05-27-2015 15:32:04] NPCD: npcd Daemon (0.4.14) started with PID=1509
[05-27-2015 15:32:04] NPCD: Please have a look at 'npcd -V' to get license information
[05-27-2015 15:32:04] NPCD: HINT: load_threshold is enabled - ('10.000000')
[06-08-2015 10:12:04] NPCD: Caught Termination Signal - Hasta la vista... baby
[06-08-2015 10:13:21] NPCD: npcd Daemon (0.4.14) started with PID=1442
[06-08-2015 10:13:21] NPCD: Please have a look at 'npcd -V' to get license information
[06-08-2015 10:13:21] NPCD: HINT: load_threshold is enabled - ('10.000000')
[06-08-2015 16:39:17] NPCD: Caught Termination Signal - Hasta la vista... baby
and this

Code: Select all

tail -25 /usr/local/nagios/var/perfdata.log
tail: cannot open `/usr/local/nagios/var/perfdata.log' for reading: No such file or directory
When I look at:

Code: Select all

/usr/local/nagios/bin/npcd -V
I get:
npcd 0.4.14 - $Revision: 647 $

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
I have a Nagios XI standard license and it is installed and working, except for this. What am I during wrong?

Re: Nagios XI no performance graph data.

Posted: Thu Jun 25, 2015 10:44 am
by lmiltchev
Run the following commands and show us the output:

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
Also, open the "/usr/local/nagios/etc/pnp/npcd.cfg" file in a text editor and set:

Code: Select all

log_level = 2
Save and exit.

Open the "/usr/local/nagios/etc/pnp/process_perfdata.cfg" in a text editor, set:

Code: Select all

LOG_LEVEL = 2
Save exit and restart npcd:

Code: Select all

service npcd restart
Run the following commands and show us the output in code wraps:

Code: Select all

uptime
tail -100 /usr/local/nagios/var/npcd.log
tail -100 /usr/local/nagios/var/perfdata.log

Re: Nagios XI no performance graph data.

Posted: Fri Jun 26, 2015 3:34 am
by tzidore
Hi

Here are the results:

Code: Select all

ls /usr/local/nagios/var/spool/xidpe | wc -l
2

Code: Select all

ls /usr/local/nagios/var/spool/perfdata | wc -l
2

Code: Select all

ls /usr/local/nagios/var/spool/checkresults | wc -l
0
The changes to these 2 files are made and npcd is restarted.

Code: Select all

/usr/local/nagios/etc/pnp/process_perfdata.cfg
/usr/local/nagios/etc/pnp/npcd.cfg

Code: Select all

uptime
10:31:18 up 10 days, 2 min, 1 user, load average: 0.06, 0.08, 0.08

Code: Select all

tail -100 /usr/local/nagios/var/npcd.log

Code: Select all

[04-23-2015 11:48:12] NPCD: npcd Daemon (0.4.14) started with PID=22320
[04-23-2015 11:48:12] NPCD: Please have a look at 'npcd -V' to get license information
[04-23-2015 11:48:12] NPCD: HINT: load_threshold is enabled - ('10.000000')
[04-23-2015 11:48:18] NPCD: Caught Termination Signal - Hasta la vista... baby
[05-05-2015 08:24:09] NPCD: npcd Daemon (0.4.14) started with PID=1464
[05-05-2015 08:24:09] NPCD: Please have a look at 'npcd -V' to get license information
[05-05-2015 08:24:09] NPCD: HINT: load_threshold is enabled - ('10.000000')
[05-05-2015 08:23:55] NPCD: Caught Termination Signal - Hasta la vista... baby
[05-05-2015 08:26:05] NPCD: npcd Daemon (0.4.14) started with PID=1464
[05-05-2015 08:26:05] NPCD: Please have a look at 'npcd -V' to get license information
[05-05-2015 08:26:05] NPCD: HINT: load_threshold is enabled - ('10.000000')
[05-05-2015 15:15:24] NPCD: Caught Termination Signal - Hasta la vista... baby
[05-05-2015 15:15:41] NPCD: npcd Daemon (0.4.14) started with PID=1475
[05-05-2015 15:15:41] NPCD: Please have a look at 'npcd -V' to get license information
[05-05-2015 15:15:41] NPCD: HINT: load_threshold is enabled - ('10.000000')
[05-05-2015 15:11:52] NPCD: Caught Termination Signal - Hasta la vista... baby
[05-05-2015 15:14:00] NPCD: npcd Daemon (0.4.14) started with PID=2049
[05-05-2015 15:14:00] NPCD: Please have a look at 'npcd -V' to get license information
[05-05-2015 15:14:00] NPCD: HINT: load_threshold is enabled - ('10.000000')
[05-07-2015 14:57:05] NPCD: Caught Termination Signal - Hasta la vista... baby
[05-07-2015 15:02:20] NPCD: npcd Daemon (0.4.14) started with PID=1467
[05-07-2015 15:02:20] NPCD: Please have a look at 'npcd -V' to get license information
[05-07-2015 15:02:20] NPCD: HINT: load_threshold is enabled - ('10.000000')
[05-19-2015 11:52:04] NPCD: Caught Termination Signal - Hasta la vista... baby
[05-19-2015 11:52:21] NPCD: npcd Daemon (0.4.14) started with PID=1468
[05-19-2015 11:52:21] NPCD: Please have a look at 'npcd -V' to get license information
[05-19-2015 11:52:21] NPCD: HINT: load_threshold is enabled - ('10.000000')
[05-27-2015 15:32:04] NPCD: npcd Daemon (0.4.14) started with PID=1509
[05-27-2015 15:32:04] NPCD: Please have a look at 'npcd -V' to get license information
[05-27-2015 15:32:04] NPCD: HINT: load_threshold is enabled - ('10.000000')
[06-08-2015 10:12:04] NPCD: Caught Termination Signal - Hasta la vista... baby
[06-08-2015 10:13:21] NPCD: npcd Daemon (0.4.14) started with PID=1442
[06-08-2015 10:13:21] NPCD: Please have a look at 'npcd -V' to get license information
[06-08-2015 10:13:21] NPCD: HINT: load_threshold is enabled - ('10.000000')
[06-08-2015 16:39:17] NPCD: Caught Termination Signal - Hasta la vista... baby
[06-25-2015 13:47:27] NPCD: npcd Daemon (0.4.14) started with PID=17212
[06-25-2015 13:47:27] NPCD: Please have a look at 'npcd -V' to get license information
[06-25-2015 13:47:27] NPCD: HINT: load_threshold is enabled - ('10.000000')
[06-26-2015 10:31:10] NPCD: Caught Termination Signal - Hasta la vista... baby
[06-26-2015 10:31:10] NPCD: npcd Daemon (0.4.14) started with PID=13862
[06-26-2015 10:31:10] NPCD: Please have a look at 'npcd -V' to get license information
[06-26-2015 10:31:10] NPCD: HINT: load_threshold is enabled - ('10.000000')

Code: Select all

tail -100 /usr/local/nagios/var/perfdata.log

Code: Select all

2015-06-26 10:33:11 [17914] [2] RRDs::update /usr/local/nagios/share/perfdata/.pnp-internal/runtime_errors.rrd 1435307576:1
2015-06-26 10:33:11 [17914] [2] /usr/local/nagios/share/perfdata/.pnp-internal/runtime_errors.rrd updated
2015-06-26 10:33:11 [17914] [2] RRDs::update /usr/local/nagios/share/perfdata/.pnp-internal/runtime_invalid.rrd 1435307576:0
2015-06-26 10:33:11 [17914] [2] /usr/local/nagios/share/perfdata/.pnp-internal/runtime_invalid.rrd updated
2015-06-26 10:33:11 [17914] [2] RRDs::update /usr/local/nagios/share/perfdata/.pnp-internal/runtime_skipped.rrd 1435307576:6
2015-06-26 10:33:11 [17914] [2] /usr/local/nagios/share/perfdata/.pnp-internal/runtime_skipped.rrd updated
2015-06-26 10:33:11 [17914] [2] RRDs::update /usr/local/nagios/share/perfdata/.pnp-internal/runtime_update.rrd 1435307576:88
2015-06-26 10:33:11 [17914] [2] /usr/local/nagios/share/perfdata/.pnp-internal/runtime_update.rrd updated
2015-06-26 10:33:11 [17914] [2] RRDs::update /usr/local/nagios/share/perfdata/.pnp-internal/runtime_create.rrd 1435307576:0
2015-06-26 10:33:11 [17914] [2] /usr/local/nagios/share/perfdata/.pnp-internal/runtime_create.rrd updated
2015-06-26 10:33:11 [17914] [1] PNP exiting (runtime 0.009123s) ...
2015-06-26 10:33:11 [17913] [2] Processing Line 13
2015-06-26 10:33:11 [17913] [2] Datatype set to 'SERVICEPERFDATA' 
2015-06-26 10:33:11 [17913] [1] Found Performance Data for hp5400.network.skofabirkken.dk / C4_Bandwidth (in=0Mb/s;9;10 out=0Mb/s;9;10) 
2015-06-26 10:33:11 [17913] [2] No Custom Template found for check_xi_service_mrtgtraf (/usr/local/nagios/etc/pnp/check_commands/check_xi_service_mrtgtraf.cfg) 
2015-06-26 10:33:11 [17913] [2] Template is check_xi_service_mrtgtraf.php
2015-06-26 10:33:11 [17913] [2] No Custom Template found for check_xi_service_mrtgtraf (/usr/local/nagios/etc/pnp/check_commands/check_xi_service_mrtgtraf.cfg) 
2015-06-26 10:33:11 [17913] [2] Template is check_xi_service_mrtgtraf.php
2015-06-26 10:33:11 [17913] [2] data2rrd called
2015-06-26 10:33:11 [17913] [2] RRDs::update /usr/local/nagios/share/perfdata/hp5400.network.skofabirkken.dk/C4_Bandwidth.rrd 1435307575:0:0
2015-06-26 10:33:11 [17913] [2] /usr/local/nagios/share/perfdata/hp5400.network.skofabirkken.dk/C4_Bandwidth.rrd updated
2015-06-26 10:33:11 [17913] [2] Processing Line 14
2015-06-26 10:33:11 [17913] [2] Datatype set to 'SERVICEPERFDATA' 
2015-06-26 10:33:11 [17913] [1] Found Performance Data for hp5400.network.skofabirkken.dk / J15_Bandwidth (in=0Mb/s;9;10 out=0Mb/s;9;10) 
2015-06-26 10:33:11 [17913] [2] No Custom Template found for check_xi_service_mrtgtraf (/usr/local/nagios/etc/pnp/check_commands/check_xi_service_mrtgtraf.cfg) 
2015-06-26 10:33:11 [17913] [2] Template is check_xi_service_mrtgtraf.php
2015-06-26 10:33:11 [17913] [2] No Custom Template found for check_xi_service_mrtgtraf (/usr/local/nagios/etc/pnp/check_commands/check_xi_service_mrtgtraf.cfg) 
2015-06-26 10:33:11 [17913] [2] Template is check_xi_service_mrtgtraf.php
2015-06-26 10:33:11 [17913] [2] data2rrd called
2015-06-26 10:33:11 [17913] [2] RRDs::update /usr/local/nagios/share/perfdata/hp5400.network.skofabirkken.dk/J15_Bandwidth.rrd 1435307575:0:0
2015-06-26 10:33:11 [17913] [2] /usr/local/nagios/share/perfdata/hp5400.network.skofabirkken.dk/J15_Bandwidth.rrd updated
2015-06-26 10:33:11 [17913] [2] Processing Line 15
2015-06-26 10:33:11 [17913] [2] Datatype set to 'SERVICEPERFDATA' 
2015-06-26 10:33:11 [17913] [1] Found Performance Data for hp5400.network.skofabirkken.dk / L9_Bandwidth (in=0Gb/s;1;1 out=0Gb/s;1;1) 
2015-06-26 10:33:11 [17913] [2] No Custom Template found for check_xi_service_mrtgtraf (/usr/local/nagios/etc/pnp/check_commands/check_xi_service_mrtgtraf.cfg) 
2015-06-26 10:33:11 [17913] [2] Template is check_xi_service_mrtgtraf.php
2015-06-26 10:33:11 [17913] [2] No Custom Template found for check_xi_service_mrtgtraf (/usr/local/nagios/etc/pnp/check_commands/check_xi_service_mrtgtraf.cfg) 
2015-06-26 10:33:11 [17913] [2] Template is check_xi_service_mrtgtraf.php
2015-06-26 10:33:11 [17913] [2] data2rrd called
2015-06-26 10:33:11 [17913] [2] RRDs::update /usr/local/nagios/share/perfdata/hp5400.network.skofabirkken.dk/L9_Bandwidth.rrd 1435307576:0:0
2015-06-26 10:33:11 [17913] [2] /usr/local/nagios/share/perfdata/hp5400.network.skofabirkken.dk/L9_Bandwidth.rrd updated
2015-06-26 10:33:11 [17913] [2] Processing Line 16
2015-06-26 10:33:11 [17913] [2] Datatype set to 'SERVICEPERFDATA' 
2015-06-26 10:33:11 [17913] [1] Found Performance Data for hp5400.network.skofabirkken.dk / D6_Bandwidth (in=.000147Gb/s;1;1 out=.005432Gb/s;1;1) 
2015-06-26 10:33:11 [17913] [2] No Custom Template found for check_xi_service_mrtgtraf (/usr/local/nagios/etc/pnp/check_commands/check_xi_service_mrtgtraf.cfg) 
2015-06-26 10:33:11 [17913] [2] Template is check_xi_service_mrtgtraf.php
2015-06-26 10:33:11 [17913] [2] No Custom Template found for check_xi_service_mrtgtraf (/usr/local/nagios/etc/pnp/check_commands/check_xi_service_mrtgtraf.cfg) 
2015-06-26 10:33:11 [17913] [2] Template is check_xi_service_mrtgtraf.php
2015-06-26 10:33:11 [17913] [2] data2rrd called
2015-06-26 10:33:11 [17913] [2] RRDs::update /usr/local/nagios/share/perfdata/hp5400.network.skofabirkken.dk/D6_Bandwidth.rrd 1435307577:.000147:.005432
2015-06-26 10:33:11 [17913] [2] /usr/local/nagios/share/perfdata/hp5400.network.skofabirkken.dk/D6_Bandwidth.rrd updated
2015-06-26 10:33:11 [17913] [2] Processing Line 17
2015-06-26 10:33:11 [17913] [2] Datatype set to 'SERVICEPERFDATA' 
2015-06-26 10:33:11 [17913] [1] Found Performance Data for hp5400.network.skofabirkken.dk / D21_Bandwidth (in=.000201Gb/s;1;1 out=.000492Gb/s;1;1) 
2015-06-26 10:33:11 [17913] [2] No Custom Template found for check_xi_service_mrtgtraf (/usr/local/nagios/etc/pnp/check_commands/check_xi_service_mrtgtraf.cfg) 
2015-06-26 10:33:11 [17913] [2] Template is check_xi_service_mrtgtraf.php
2015-06-26 10:33:11 [17913] [2] No Custom Template found for check_xi_service_mrtgtraf (/usr/local/nagios/etc/pnp/check_commands/check_xi_service_mrtgtraf.cfg) 
2015-06-26 10:33:11 [17913] [2] Template is check_xi_service_mrtgtraf.php
2015-06-26 10:33:11 [17913] [2] data2rrd called
2015-06-26 10:33:11 [17913] [2] RRDs::update /usr/local/nagios/share/perfdata/hp5400.network.skofabirkken.dk/D21_Bandwidth.rrd 1435307577:.000201:.000492
2015-06-26 10:33:11 [17913] [2] /usr/local/nagios/share/perfdata/hp5400.network.skofabirkken.dk/D21_Bandwidth.rrd updated
2015-06-26 10:33:11 [17913] [2] Processing Line 18
2015-06-26 10:33:11 [17913] [2] Datatype set to 'SERVICEPERFDATA' 
2015-06-26 10:33:11 [17913] [1] Found Performance Data for securitymodem.skofabrikken.dk / TCP_Port_81 (time=0.007835s;;;0.000000;10.000000) 
2015-06-26 10:33:11 [17913] [2] No Custom Template found for check_xi_service_tcp (/usr/local/nagios/etc/pnp/check_commands/check_xi_service_tcp.cfg) 
2015-06-26 10:33:11 [17913] [2] Template is check_xi_service_tcp.php
2015-06-26 10:33:11 [17913] [2] data2rrd called
2015-06-26 10:33:11 [17913] [2] RRDs::update /usr/local/nagios/share/perfdata/securitymodem.skofabrikken.dk/TCP_Port_81.rrd 1435307578:0.007835
2015-06-26 10:33:11 [17913] [2] /usr/local/nagios/share/perfdata/securitymodem.skofabrikken.dk/TCP_Port_81.rrd updated
2015-06-26 10:33:11 [17913] [2] Processing Line 19
2015-06-26 10:33:11 [17913] [2] Datatype set to 'SERVICEPERFDATA' 
2015-06-26 10:33:11 [17913] [1] Found Performance Data for hp5400.network.skofabirkken.dk / D16_Bandwidth (in=.000008Gb/s;1;1 out=.000027Gb/s;1;1) 
2015-06-26 10:33:11 [17913] [2] No Custom Template found for check_xi_service_mrtgtraf (/usr/local/nagios/etc/pnp/check_commands/check_xi_service_mrtgtraf.cfg) 
2015-06-26 10:33:11 [17913] [2] Template is check_xi_service_mrtgtraf.php
2015-06-26 10:33:11 [17913] [2] No Custom Template found for check_xi_service_mrtgtraf (/usr/local/nagios/etc/pnp/check_commands/check_xi_service_mrtgtraf.cfg) 
2015-06-26 10:33:11 [17913] [2] Template is check_xi_service_mrtgtraf.php
2015-06-26 10:33:11 [17913] [2] data2rrd called
2015-06-26 10:33:11 [17913] [2] RRDs::update /usr/local/nagios/share/perfdata/hp5400.network.skofabirkken.dk/D16_Bandwidth.rrd 1435307579:.000008:.000027
2015-06-26 10:33:11 [17913] [2] /usr/local/nagios/share/perfdata/hp5400.network.skofabirkken.dk/D16_Bandwidth.rrd updated
2015-06-26 10:33:11 [17913] [2] Processing Line 20
2015-06-26 10:33:11 [17913] [2] Datatype set to 'SERVICEPERFDATA' 
2015-06-26 10:33:11 [17913] [1] Found Performance Data for render04.skofabrikken.dk / TCP_Port_2869_-_icslap (time=0.663828s;;;0.000000;10.000000) 
2015-06-26 10:33:11 [17913] [2] No Custom Template found for check_xi_service_tcp (/usr/local/nagios/etc/pnp/check_commands/check_xi_service_tcp.cfg) 
2015-06-26 10:33:11 [17913] [2] Template is check_xi_service_tcp.php
2015-06-26 10:33:11 [17913] [2] data2rrd called
2015-06-26 10:33:11 [17913] [2] RRDs::update /usr/local/nagios/share/perfdata/render04.skofabrikken.dk/TCP_Port_2869_-_icslap.rrd 1435307579:0.663828
2015-06-26 10:33:11 [17913] [2] /usr/local/nagios/share/perfdata/render04.skofabrikken.dk/TCP_Port_2869_-_icslap.rrd updated
2015-06-26 10:33:11 [17913] [2] Processing Line 21
2015-06-26 10:33:11 [17913] [2] Datatype set to 'SERVICEPERFDATA' 
2015-06-26 10:33:11 [17913] [1] Found Performance Data for hp5400.network.skofabirkken.dk / B12_Bandwidth (in=0Mb/s;9;10 out=0Mb/s;9;10) 
2015-06-26 10:33:11 [17913] [2] No Custom Template found for check_xi_service_mrtgtraf (/usr/local/nagios/etc/pnp/check_commands/check_xi_service_mrtgtraf.cfg) 
2015-06-26 10:33:11 [17913] [2] Template is check_xi_service_mrtgtraf.php
2015-06-26 10:33:11 [17913] [2] No Custom Template found for check_xi_service_mrtgtraf (/usr/local/nagios/etc/pnp/check_commands/check_xi_service_mrtgtraf.cfg) 
2015-06-26 10:33:11 [17913] [2] Template is check_xi_service_mrtgtraf.php
2015-06-26 10:33:11 [17913] [2] data2rrd called
2015-06-26 10:33:11 [17913] [2] RRDs::update /usr/local/nagios/share/perfdata/hp5400.network.skofabirkken.dk/B12_Bandwidth.rrd 1435307580:0:0
2015-06-26 10:33:11 [17913] [2] /usr/local/nagios/share/perfdata/hp5400.network.skofabirkken.dk/B12_Bandwidth.rrd updated
2015-06-26 10:33:11 [17913] [1] 21 lines processed
2015-06-26 10:33:11 [17913] [1] /usr/local/nagios/var/spool/perfdata//service-perfdata.1435307580-PID-17913 deleted
2015-06-26 10:33:11 [17913] [1] PNP exiting (runtime 0.029674s) ...

Re: Nagios XI no performance graph data.

Posted: Fri Jun 26, 2015 4:04 am
by tzidore
I forgot to thank you and tell that it is working now;-)

Re: Nagios XI no performance graph data.

Posted: Fri Jun 26, 2015 9:12 am
by tmcdonald
Thanks for letting us know!

I'll be closing this thread now, but feel free to open another if you need anything in the future!