Problem with NCPA Agent 3.1.1.0 configuration with older Windows 2008 operating systems

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Post Reply
rafamicro
Posts: 7
Joined: Sat Nov 09, 2019 4:18 am

Problem with NCPA Agent 3.1.1.0 configuration with older Windows 2008 operating systems

Post by rafamicro »

Hi, I have an environment set up with Ubuntu 24.04 Server with Nagios Version 4.5.8 installed.

I have configured notifications with the NCPA agent for my servers and it works perfectly, the problem is that I have tried to configure it on several Windows Server 2008 Servers and even on a Windows 7 but the same configuration that I have for Windows Server 2016 Servers onwards, does not work on these older systems.

This is the configuration of the file in nagios:

define host {
host_name Server
address 10.0.0.92
check_command check_ncpa!-t '778877F9' -P 5693 -M system/agent_version
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
contacts nagiosadmin
notification_interval 60
notification_period 24x7
notifications_enabled 1
icon_image windowsserver.jpg
statusmap_image windowsserver.jpg
register 1
}

define service {
host_name Server
service_description CPU Usage
check_command check_ncpa!-t '778877F9' -P 5693 -M cpu/percent -w 80 -c 90 -q 'aggregate=avg'
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
notification_interval 60
notification_period 24x7
contacts nagiosadmin
register 1
}

And this is what I get in my Nagios console:

CPU Usage
UNKNOWN 01-17-2025 19:59:05 10d 23h 10m 17s 5/5 UNKNOWN: An error occured connecting to API. (Connection error: '[Errno 111] Connection refused')
Memory Usage
UNKNOWN 01-17-2025 19:58:32 10d 23h 7m 47s 5/5 UNKNOWN: An error occured connecting to API. (Connection error: '[Errno 111] Connection refused')

Could someone tell me why the NCPA agent does not work correctly on these W2008 and Windows 7 systems?

Thanks in advance to anyone who can help me.
gwesterman
Posts: 268
Joined: Wed Aug 23, 2023 11:29 am

Re: Problem with NCPA Agent 3.1.1.0 configuration with older Windows 2008 operating systems

Post by gwesterman »

Hi @rafamicro,

You are going to need to use an older version of NCPA (namely NCPA 2) for the 2008/2007 servers (see previous versions here) as Python 3 won't run on those versions.

Let us know that works for you or not.

Thank you!
Post Reply