ncpa - active check no working..
Posted: Tue Jan 09, 2018 2:50 pm
Hi I just starting to learn nagios core and now want to start to monitor windows machines..
I have set up ncpa (active and passive) and I getting the following message which I am not sure how to troubleshoot.
from the logfile on the nagios server
"HOST NOTIFICATION: nagiosadmin;galagon.charpham.local;DOWN;notify-host-by-email;The node (agent_version$) requested does not exist. You may be trying to access the 'agent_version' node"
I am monitoring a wndows 10 machine. the active checks for CPU, Memory, disk usage checks are successful..
If I do the following from the Nagios Server, I get a successful response for "agent_version"
./check_ncpa.py -H 10.10.0.36 -t 'mytoken' -P 5693 -M system/agent_version
OK: Agent_version was ['2.1.1']
here is my ncpa.cfg file on the nagios server
#[passive]
#handlers = nrdp
#[nrdp]
#parent = http:/10.10.0.36/nrdp/
#token = mytoken
#hostname = host1
define host {
host_name host1
address 10.10.0.36
check_command check_ncpa!-t 'mytoken' -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 host1
service_description CPU Usage
check_command check_ncpa!-t 'mytoken' -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
}
......
Here is my config file on the Windows side
#
# AUTO GENERATED NRDP CONFIG FROM WINDOWS INSTALLER
#
[passive checks]
# Host check - This is to stop "pending check" status in Nagios
%HOSTNAME%|__HOST__ = system/agent_version
# Service checks
%HOSTNAME%|CPU Usage = cpu/percent --warning 80 --critical 90 --aggregate avg
%HOSTNAME%|Disk Usage = disk/logical/C:|/used_percent --warning 80 --critical 90 --units Gi
%HOSTNAME%|Swap Usage = memory/swap --warning 60 --critical 80 --units Gi
%HOSTNAME%|Memory Usage = memory/virtual --warning 80 --critical 90 --units Gi
%HOSTNAME%|Process Count = processes --warning 300 --critical 400
I have set up ncpa (active and passive) and I getting the following message which I am not sure how to troubleshoot.
from the logfile on the nagios server
"HOST NOTIFICATION: nagiosadmin;galagon.charpham.local;DOWN;notify-host-by-email;The node (agent_version$) requested does not exist. You may be trying to access the 'agent_version' node"
I am monitoring a wndows 10 machine. the active checks for CPU, Memory, disk usage checks are successful..
If I do the following from the Nagios Server, I get a successful response for "agent_version"
./check_ncpa.py -H 10.10.0.36 -t 'mytoken' -P 5693 -M system/agent_version
OK: Agent_version was ['2.1.1']
here is my ncpa.cfg file on the nagios server
#[passive]
#handlers = nrdp
#[nrdp]
#parent = http:/10.10.0.36/nrdp/
#token = mytoken
#hostname = host1
define host {
host_name host1
address 10.10.0.36
check_command check_ncpa!-t 'mytoken' -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 host1
service_description CPU Usage
check_command check_ncpa!-t 'mytoken' -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
}
......
Here is my config file on the Windows side
#
# AUTO GENERATED NRDP CONFIG FROM WINDOWS INSTALLER
#
[passive checks]
# Host check - This is to stop "pending check" status in Nagios
%HOSTNAME%|__HOST__ = system/agent_version
# Service checks
%HOSTNAME%|CPU Usage = cpu/percent --warning 80 --critical 90 --aggregate avg
%HOSTNAME%|Disk Usage = disk/logical/C:|/used_percent --warning 80 --critical 90 --units Gi
%HOSTNAME%|Swap Usage = memory/swap --warning 60 --critical 80 --units Gi
%HOSTNAME%|Memory Usage = memory/virtual --warning 80 --critical 90 --units Gi
%HOSTNAME%|Process Count = processes --warning 300 --critical 400