NCPA Error

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

NCPA Error

Postby w14219 » Sat Sep 25, 2021 8:20 am

Summary:
I am running a new instance of Nagios on Ubuntu and am getting the following error when I "reschedule the next check of this service" for a Windows NCPA agent. However, if the Nagios server waits 5 minutes, all the errors are cleared. Then, between between the all cleared errors and 5 minutes, the error comes back, then the cycle starts over.

nagios.png


error:
(No output on stdout) stderr: /bin/sh: 1: Syntax error: Unterminated quoted string

Setup:
Nagios® Core™ 4.4.6
Ubuntu 20.04
NRDP: 2.0.4

Config Files:
ncpa.cfg (windows computer)
[passive]
handlers =nrdp
[nrdp]
parent =http://10.2.13.109/nrdp/
token =password

commands.cfg (nagios core)
define command {
command_name check_ncpa
command_line $USER1$/check_ncpa.py -H $HOSTADDRESS$ $ARG1$
}

ncpa.cfg (nagios core)
define host {
host_name w14219-desktop
address 10.2.1.110
check_command check_ncpa!-t 'password' -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 ncpa.png
statusmap_image ncpa.png
register 1
}

define service {
host_name w14219-desktop
service_description CPU Usage
check_command check_ncpa!-t 'password' -P 5693 -M cpu/percent -w 20 -c 40 -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
}

define service {
host_name w14219-desktop
service_description Memory Usage
check_command check_ncpa!-t 'password' -P 5693 -M memory/virtual -w 50 -c 80 -u G
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
notification_interval 60
notification_period 24x7
contacts nagiosadmin
register 1
}

define service {
host_name w14219-desktop
service_description Process Count
check_command check_ncpa!-t 'password' -P 5693 -M processes -w 150 -c 200
max_check_attempts 5
check_interval 5
retry_interval 1
check_period 24x7
notification_interval 60
notification_period 24x7
contacts nagiosadmin
register 1
}

/usr/local/nagios/libexec/check_ncpa.py
-rwxrwxr-x 1 nagios nagios 11937 Sep 20 00:55 check_ncpa.py

resource.cfg (nagios core)
$USER1$=/usr/local/nagios/libexec


Thanks in advance!
w14219
 
Posts: 33
Joined: Wed Feb 15, 2012 2:04 am

Return to Community Support

Who is online

Users browsing this forum: No registered users and 26 guests