Hi All,
I am migrating our Icinga 1.13.4 monitoring server that was sitting on Ubuntu 12.04 to a new server running on Ubuntu 18.04. I haven't worked with this type of monitoring before and I have come to a bit of a block.
I have had to install pnp4nagios from source as it's no longer supported in the later versions of Ubuntu - this is located /usr/local --> PNP4Nagios-0.6.26
ii icinga 1.13.4-2build1
ii icinga-cgi 1.13.4-2build1
ii icinga-cgi-bin 1.13.4-2build1
ii icinga-common 1.13.4-2build1
ii icinga-core 1.13.4-2build1
ii icinga-doc 1.13.4-2build1
ii monitoring-plugins 2.2-3ubuntu2
ii monitoring-plugins-basic 2.2-3ubuntu2
ii monitoring-plugins-commo 2.2-3ubuntu2
ii monitoring-plugins-standard 2.2-3ubuntu2
ii nagios-images 0.9.1ubuntu1
ii nagios-nrpe-server 3.2.1-1ubuntu1
ii nagios-plugins 2.2-3ubuntu2
ii nagios-plugins-basic 2.2-3ubuntu2
ii nagios-plugins-standard 2.2-3ubuntu2
Icinga is up and running but non of my stats for my hosts are coming through - on Icinga this comes up as a 'Return code of 255 is out of bounds' - this is the only feedback I get from the icinga.log.
However I am getting more verbose errors in the perfdata and npcd.log files as per below:
tail -30 /var/log/pnp4nagios/npcd.log
[03-26-2019 11:00:46] NPCD: File 'perfdata.1553597786-PID-9573' is an already in process PNP file. Leaving it untouched.
[03-26-2019 11:00:46] NPCD: ThreadCounter 0/5 File is perfdata.1553597801-PID-9795
[03-26-2019 11:00:46] NPCD: File 'perfdata.1553597801-PID-9795' is an already in process PNP file. Leaving it untouched.
[03-26-2019 11:00:46] NPCD: ThreadCounter 0/5 File is perfdata.1553597831-PID-10502
[03-26-2019 11:00:46] NPCD: File 'perfdata.1553597831-PID-10502' is an already in process PNP file. Leaving it untouched.
[03-26-2019 11:00:46] NPCD: ThreadCounter 0/5 File is perfdata.1553597862-PID-11124
[03-26-2019 11:00:46] NPCD: File 'perfdata.1553597862-PID-11124' is an already in process PNP file. Leaving it untouched.
[03-26-2019 11:00:46] NPCD: ThreadCounter 0/5 File is perfdata.1553597877-PID-11373
[03-26-2019 11:00:46] NPCD: File 'perfdata.1553597877-PID-11373' is an already in process PNP file. Leaving it untouched.
[03-26-2019 11:00:46] NPCD: ThreadCounter 0/5 File is perfdata.1553597907-PID-11633
[03-26-2019 11:00:46] NPCD: File 'perfdata.1553597907-PID-11633' is an already in process PNP file. Leaving it untouched.
[03-26-2019 11:00:46] NPCD: ThreadCounter 0/5 File is perfdata.1553597937-PID-12114
[03-26-2019 11:00:46] NPCD: File 'perfdata.1553597937-PID-12114' is an already in process PNP file. Leaving it untouched.
[03-26-2019 11:00:46] NPCD: ThreadCounter 0/5 File is perfdata.1553597952-PID-12399
[03-26-2019 11:00:46] NPCD: File 'perfdata.1553597952-PID-12399' is an already in process PNP file. Leaving it untouched.
[03-26-2019 11:00:46] NPCD: ThreadCounter 0/5 File is perfdata.1553597982-PID-12928
[03-26-2019 11:00:46] NPCD: File 'perfdata.1553597982-PID-12928' is an already in process PNP file. Leaving it untouched.
[03-26-2019 11:00:46] NPCD: ThreadCounter 0/5 File is perfdata.1553597997-PID-13158
[03-26-2019 11:00:46] NPCD: File 'perfdata.1553597997-PID-13158' is an already in process PNP file. Leaving it untouched.
[03-26-2019 11:00:46] NPCD: ThreadCounter 0/5 File is perfdata.1553598027-PID-13429
[03-26-2019 11:00:46] NPCD: File 'perfdata.1553598027-PID-13429' is an already in process PNP file. Leaving it untouched.
[03-26-2019 11:00:46] NPCD: ThreadCounter 0/5 File is perfdata.1553598042
[03-26-2019 11:00:46] NPCD: Regular File: perfdata.1553598042
[03-26-2019 11:00:46] NPCD: A thread was started on thread_counter = 0
[03-26-2019 11:00:46] NPCD: Have to wait: Filecounter = 2581 - thread_counter = 1
[03-26-2019 11:00:46] NPCD: Processing file perfdata.1553598042 with ID 140670059280128 - going to exec /usr/local/pnp4nagios/libexec/process_perfdata.pl -n -b /usr/local/pnp4nagios/var/spool/npcd/perfdata.1553598042
[03-26-2019 11:00:46] NPCD: Processing file 'perfdata.1553598042'
[03-26-2019 11:00:46] NPCD: ERROR: Executed command exits with return code '13'
[03-26-2019 11:00:46] NPCD: ERROR: Command line was '/usr/local/pnp4nagios/libexec/process_perfdata.pl -n -b /usr/local/pnp4nagios/var/spool/npcd/perfdata.1553598042'
[03-26-2019 11:00:48] NPCD: No more files to process... waiting for 15 seconds
tail -30 /var/log/pnp4nagios/perfdata.log
2019-03-26 10:59:03 [12114] [2] searching for /usr/local/pnp4nagios/var/spool/npcd/perfdata.1553597937
2019-03-26 10:59:03 [12114] [2] renaming /usr/local/pnp4nagios/var/spool/npcd/perfdata.1553597937 to /usr/local/pnp4nagios/var/spool/npcd/perfdata.1553597937-PID-12114 for bulk update
2019-03-26 10:59:03 [12114] [2] reading /usr/local/pnp4nagios/var/spool/npcd/perfdata.1553597937-PID-12114 for bulk update
2019-03-26 10:59:03 [12114] [2] Processing Line 1
2019-03-26 10:59:03 [12114] [2] Datatype set to 'HOSTPERFDATA'
2019-03-26 10:59:03 [12114] [1] Found Performance Data for queueCrawl / _HOST_ (rta=0.357000ms;5000.000000;5000.000000;0.000000 pl=0%;100;100;0)
2019-03-26 10:59:03 [12114] [2] data2rrd called
2019-03-26 10:59:20 [12399] [2] Using Config File /usr/local/pnp4nagios/etc/process_perfdata.cfg parameters
2019-03-26 10:59:20 [12399] [2] Default Timeout: 15 secs.
2019-03-26 10:59:20 [12399] [2] Config Timeout: 15 secs.
2019-03-26 10:59:20 [12399] [2] Actual Timeout: 15 secs.
2019-03-26 10:59:20 [12399] [1] process_perfdata.pl-0.6.26 starting in BULK Mode called by NPCD
2019-03-26 10:59:20 [12399] [2] searching for /usr/local/pnp4nagios/var/spool/npcd/perfdata.1553597952
2019-03-26 10:59:20 [12399] [2] renaming /usr/local/pnp4nagios/var/spool/npcd/perfdata.1553597952 to /usr/local/pnp4nagios/var/spool/npcd/perfdata.1553597952-PID-12399 for bulk update
2019-03-26 10:59:20 [12399] [2] reading /usr/local/pnp4nagios/var/spool/npcd/perfdata.1553597952-PID-12399 for bulk update
2019-03-26 10:59:20 [12399] [2] Processing Line 1
2019-03-26 10:59:20 [12399] [2] Datatype set to 'HOSTPERFDATA'
2019-03-26 10:59:20 [12399] [1] Found Performance Data for queueSqs / _HOST_ (rta=0.029000ms;5000.000000;5000.000000;0.000000 pl=0%;100;100;0)
2019-03-26 10:59:20 [12399] [2] data2rrd called
2019-03-26 10:59:37 [12652] [2] Using Config File /usr/local/pnp4nagios/etc/process_perfdata.cfg parameters
2019-03-26 10:59:37 [12652] [2] Default Timeout: 15 secs.
2019-03-26 10:59:37 [12652] [2] Config Timeout: 15 secs.
2019-03-26 10:59:37 [12652] [2] Actual Timeout: 15 secs.
2019-03-26 10:59:37 [12652] [1] process_perfdata.pl-0.6.26 starting in BULK Mode called by NPCD
2019-03-26 10:59:37 [12652] [2] searching for /usr/local/pnp4nagios/var/spool/npcd/perfdata.1553597967
2019-03-26 10:59:37 [12652] [2] renaming /usr/local/pnp4nagios/var/spool/npcd/perfdata.1553597967 to /usr/local/pnp4nagios/var/spool/npcd/perfdata.1553597967-PID-12652 for bulk update
2019-03-26 10:59:37 [12652] [2] reading /usr/local/pnp4nagios/var/spool/npcd/perfdata.1553597967-PID-12652 for bulk update
2019-03-26 10:59:37 [12652] [1] 0 lines processed
2019-03-26 10:59:37 [12652] [1] /usr/local/pnp4nagios/var/spool/npcd/perfdata.1553597967-PID-12652 deleted
2019-03-26 10:59:37 [12652] [2] data2rrd called
Has anyone seen this before or any clue how to fix this? I've been over the configuration multiple times between the old and new server and I can't honestly see what I am missing. Im happy to supply additional configs and logs if need be.
Any help would be appreciated so much, thanks for your time.
NPCD / Perfdata - Return code of 255 is out of bounds
-
- Posts: 3
- Joined: Tue Mar 26, 2019 6:02 am
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: NPCD / Perfdata - Return code of 255 is out of bounds
Sorry, this is a Nagios forum, we cannot help with problems with Icinga or any other non-Nagios software