I’m not sure if this is the right place, but we are doing some tests with passive checks and we are having problems getting Naemon to interpret the information correctly.
The passive HOST check works correctly, but the service checks do not. This is the configuration in ncpa.cfg:
[passive checks]
%HOSTNAME%|__HOST__ = system/agent_version
%HOSTNAME%|CPU Usage = cpu/percent --warning 60 --critical 80 --aggregate avg
The HOST in Naemon returns OK (OK: Agent_version was 3.2.0).
The services do not: (Service check timed out after 0.00 seconds).
[1757520382] PASSIVE HOST CHECK: naemonDocker;0;OK: Agent_version was 3.2.0
[1757520382] PASSIVE SERVICE CHECK: naemonDocker;CPU Usage;2;(Service check timed out after 0.00 seconds)
[1757520382] PASSIVE SERVICE CHECK: naemonDocker;Dummy Test;2;(Service check timed out after 0.00 seconds)
[1757520442] PASSIVE HOST CHECK: naemonDocker;0;OK: Agent_version was 3.2.0
[1757520442] PASSIVE SERVICE CHECK: naemonDocker;CPU Usage;2;(Service check timed out after 0.00 seconds)
[1757520442] PASSIVE SERVICE CHECK: naemonDocker;Dummy Test;2;(Service check timed out after 0.00 seconds)
[1757520502] PASSIVE HOST CHECK: naemonDocker;0;OK: Agent_version was 3.2.0
[1757520502] PASSIVE SERVICE CHECK: naemonDocker;CPU Usage;2;(Service check timed out after 0.00 seconds)
[1757520502] PASSIVE SERVICE CHECK: naemonDocker;Dummy Test;2;(Service check timed out after 0.00 seconds)
NRDP debug.log – it seems the information is reaching NRDP, although we see the error:
nagios_command_group=naemon does not exist, not chgrp()ing
[Wed, 10 Sep 2025 16:09:26 +0000] gathered the following data:
type: service
hostname: naemonDocker
servicename: CPU Usage
state:
output: OK: Percent was 2.00 % | 'percent'=2.00%;60;80;
allow_old_results:
time: 0
[Wed, 10 Sep 2025 16:09:26 +0000] nrdp_write_check_output_to_cmd(hostname=naemonDocker, servicename=CPU Usage, state=, type=service, output=OK: Percent was 2.00 % | 'percent'=2.00%;60;80;
[Wed, 10 Sep 2025 16:09:26 +0000] nagios_command_group=naemon does not exist, not chgrp()ing
NRDP config file contains:
$cfg["nagios_command_group"] = "naemon";
I think the problem might be caused by some misconfiguration in NRDP, because everything seems oriented toward Nagios rather than Naemon.
Could that be the case?