Problem with NCPA Agent 3.1.1.0 configuration with older Windows 2008 operating systems
Posted: Fri Jan 17, 2025 2:16 pm
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.
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.