Passive checks

3 views
Skip to first unread message

Manuel Gutiérrez Molina

unread,
Sep 10, 2025, 12:13:44 PMSep 10
to Thruk

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";


/////////////////////////////////////////////////////////////
//
// command_file
//
// Full path to Nagios external command file
$cfg["command_file"] = "/var/lib/naemon/naemon.cmd";

/////////////////////////////////////////////////////////////
//
// check_results_dir
//
// Full path to check results spool directory
// check_result_dir path should be same as check_result_path setting in Nagios's nagios.cfg
$cfg["check_results_dir"] = "/var/cache/naemon/checkresults";

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?

Sven Nierlein

unread,
Sep 11, 2025, 12:29:55 PMSep 11
to th...@googlegroups.com, Manuel Gutiérrez Molina
Hi,

this is probably not the right place. This is the Thruk mailing list. I mean, we do monitoring here but this seems to be an issue with
either nrdp or naemon.
Also i see you already opened an issue for naemon.

Have a nice day,
Sven

On 9/10/25 6:13 PM, Manuel Gutiérrez Molina wrote:
> 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";
>
>
> /////////////////////////////////////////////////////////////
> //
> // command_file
> //
> // Full path to Nagios external command file
> $cfg["command_file"] = "/var/lib/naemon/naemon.cmd";
>
> /////////////////////////////////////////////////////////////
> //
> // check_results_dir
> //
> // Full path to check results spool directory
> // check_result_dir path should be same as check_result_path setting in Nagios's nagios.cfg
> $cfg["check_results_dir"] = "/var/cache/naemon/checkresults";
>
> 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?
>
> --
> You received this message because you are subscribed to the Google Groups "Thruk" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to thruk+un...@googlegroups.com
> <mailto:thruk+un...@googlegroups.com>.
> To view this discussion visit https://groups.google.com/d/msgid/thruk/bccd6918-8478-4960-b643-ca5271faa482n%40googlegroups.com <https://
> groups.google.com/d/msgid/thruk/bccd6918-8478-4960-b643-ca5271faa482n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Reply all
Reply to author
Forward
0 new messages