Hello,
the ncpa uptime check fails with the following message in Icinga2 version: 2.13.2-1:
<Timeout exceeded.><Terminated by signal 9 (Killed).>
Icinga2.log
[2022-04-04 14:05:17 +0200] warning/Process: Terminating process 8187 ('sudo' '/usr/lib64/nagios/plugins/check_ncpa.py' '-H' 'hub.local' '-M' 'system/uptime' '-T' '120' '-c' '36000:' '-t' 'api_key' '-w' '36000:') after timeout of 60 seconds
[2022-04-04 14:05:17 +0200] warning/Process: Terminating process 8199 ('sudo' '/usr/lib64/nagios/plugins/check_ncpa.py' '-H' '$host.vars.iloAddress$' '-M' 'system/uptime' '-T' '120' '-c' '36000:' '-t' 'api_key' '-w' '36000:') after timeout of 60 seconds
[2022-04-04 14:05:17 +0200] warning/Process: Terminating process 8202 ('sudo' '/usr/lib64/nagios/plugins/check_ncpa.py' '-H' '10.116.248.15' '-M' 'system/uptime' '-T' '120' '-c' '36000:' '-t' 'api_key' '-w' '36000:') after timeout of 60 seconds
[2022-04-04 14:05:17 +0200] warning/Process: Terminating process 8207 ('sudo' '/usr/lib64/nagios/plugins/check_ncpa.py' '-H' 'otn-cloud-nw08.local' '-M' 'system/uptime' '-T' '120' '-c' '36000:' '-t' 'api_key' '-w' '36000:') after timeout of 60 seconds
[2022-04-04 14:05:17 +0200] warning/Process: Terminating process 8214 ('sudo' '/usr/lib64/nagios/plugins/check_ncpa.py' '-H' '$host.vars.iloAddress$' '-M' 'system/uptime' '-T' '120' '-c' '36000:' '-t' 'api_key' '-w' '36000:') after timeout of 60 seconds
[2022-04-04 14:05:17 +0200] warning/Process: Terminating process 8211 ('sudo' '/usr/lib64/nagios/plugins/check_ncpa.py' '-H' '10.116.219.75' '-M' 'system/uptime' '-T' '120' '-c' '36000:' '-t' 'api_key' '-w' '36000:') after timeout of 60 seconds
[2022-04-04 14:05:17 +0200] warning/Process: Killing process group 7948 ('sudo' '/usr/lib64/nagios/plugins/check_ncpa.py' '-H' '$host.vars.iloAddress$' '-M' 'system/uptime' '-T' '120' '-c' '36000:' '-t' 'api_key' '-w' '36000:') after timeout of 66 seconds
[2022-04-04 14:05:17 +0200] warning/Process: PID 7948 was terminated by signal 9 (Killed)
object CheckCommand "check_ncpa_uptime" {
import "plugin-check-command"
command = [ "sudo", PluginDir + "/check_ncpa.py" ]
arguments += {
"-H" = "$address$",
"-t" = api_token,
"-t" = "api_key",
"-M" = "$remote_ncpa_metric$",
"-w" = "36000:",
"-c" = "36000:",
"-T" = "120"
}
}
service check:
apply Service "ncpa_uptime" {
import "generic-service"
check_command = "check_ncpa_uptime"
vars.remote_ncpa_metric = "system/uptime"
}
All the other NCPA checks are successful.
I have read that sometimes a lack of RAM might cause this, but in my case only ~20% of RAM is in use.
Can anyone help?