Re: Nagios and NCPA
Posted: Fri Jun 09, 2017 1:38 am
Hi lmiltchev,
that's the result...
/usr/local/nagios/libexec/check_ncpa.py -H 10.1.3.4 -P 5693 -t mytoken -M 'disk/logical/C:|/used_percent' -w 80 -c 90
The node (C:|) requested does not exist. You may be trying to access the '|' node.
/usr/local/nagios/libexec/check_ncpa.py -H 10.1.3.4 -P 5693 -t mytoken -M 'disk/logical/C:|/used_percent' -w 80 -c 90 -vvv
Connecting to: https://10.1.3.4:5693/api/disk/logical/ ... 90&check=1
File returned contained:
{
"returncode": 3,
"stdout": "The node (C:|) requested does not exist. You may be trying to access the '|' node."
}
The node (C:|) requested does not exist. You may be trying to access the '|' node.
That is what I see in the NCPA web console:
disk/logical/|sys/used_percent
Current 0.00 % Min 0.00 % Max 0.00 % Average 0.00 %
disk/logical/|proc/used_percent
Current 0.00 % Min 0.00 % Max 0.00 % Average 0.00 %
disk/logical/|boot/used_percent
Current 19.80 % Min 19.80 % Max 19.80 % Average 19.80 %
disk/logical/|dev|pts/used_percent
Current 0.00 % Min 0.00 % Max 0.00 % Average 0.00 %
disk/logical/|dev|shm/used_percent
Current 0.00 % Min 0.00 % Max 0.00 % Average 0.00 %
disk/logical/|/used_percent
Current 28.20 % Min 28.20 % Max 28.20 % Average 28.20 %
disk/logical/|proc|sys|fs|binfmt_misc/used_percent
that's the result...
/usr/local/nagios/libexec/check_ncpa.py -H 10.1.3.4 -P 5693 -t mytoken -M 'disk/logical/C:|/used_percent' -w 80 -c 90
The node (C:|) requested does not exist. You may be trying to access the '|' node.
/usr/local/nagios/libexec/check_ncpa.py -H 10.1.3.4 -P 5693 -t mytoken -M 'disk/logical/C:|/used_percent' -w 80 -c 90 -vvv
Connecting to: https://10.1.3.4:5693/api/disk/logical/ ... 90&check=1
File returned contained:
{
"returncode": 3,
"stdout": "The node (C:|) requested does not exist. You may be trying to access the '|' node."
}
The node (C:|) requested does not exist. You may be trying to access the '|' node.
That is what I see in the NCPA web console:
disk/logical/|sys/used_percent
Current 0.00 % Min 0.00 % Max 0.00 % Average 0.00 %
disk/logical/|proc/used_percent
Current 0.00 % Min 0.00 % Max 0.00 % Average 0.00 %
disk/logical/|boot/used_percent
Current 19.80 % Min 19.80 % Max 19.80 % Average 19.80 %
disk/logical/|dev|pts/used_percent
Current 0.00 % Min 0.00 % Max 0.00 % Average 0.00 %
disk/logical/|dev|shm/used_percent
Current 0.00 % Min 0.00 % Max 0.00 % Average 0.00 %
disk/logical/|/used_percent
Current 28.20 % Min 28.20 % Max 28.20 % Average 28.20 %
disk/logical/|proc|sys|fs|binfmt_misc/used_percent