Greetings,
Strange issue where some valid services and mounts show up as UNKNOWN in the 4.4.6 core web UI but direct queries provide valid return data. api shows valid data as well.
Direct query of a mount point:
/usr/local/nagios/libexec/./check_ncpa.py -H host -t 'token' -P 5693 -M 'disk/logical/|var|cb|data/used_percent' --warning 90 --critical 95 -v
Connecting to: https://host:5693/api/disk/logical/%7Cv ... 95&check=1
File returned contained:
{
"returncode": 0,
"stdout": "OK: Used_percent was 38.90 % | 'used_percent'=38.90%;90;95;"
}
OK: Used_percent was 38.90 % | 'used_percent'=38.90%;90;95;
Web UI status: UNKNOWN: The node (/var/cb/data) requested does not exist. You may be trying to access the '/' node.
Anybody know how to troubleshoot these?
Thanks Ron
RHEL6 services UNKNOWN in web UI but are valid
-
ronafisher2
- Posts: 11
- Joined: Mon Feb 08, 2021 4:46 pm
-
ronafisher2
- Posts: 11
- Joined: Mon Feb 08, 2021 4:46 pm
Re: RHEL6 services UNKNOWN in web UI but are valid
I still haven't figured this one out. Doesn't it seem very odd that these UNKNOWN entities can be queried just fine via the host NCPA API and via cli from the nagios host but show up as unknown in the Web UI?
This is from the nagios log.. note checking / works fine but the other two mount points don't.
[1615964400] CURRENT SERVICE STATE: host;Disk Space Used /;OK;HARD;1;OK: Used_percent was 58.80 %
[1615964400] CURRENT SERVICE STATE: host;Disk Space Used /var/cb/data;UNKNOWN;HARD;5;UNKNOWN: The node (/var/cb/data) requested does not exist. You may be trying to access the '/' node.
[1615964400] CURRENT SERVICE STATE: host;Disk Space Used /var/log/cb;UNKNOWN;HARD;5;UNKNOWN: The node (/var/log/cb) requested does not exist. You may be trying to access the '/' node.
from the host NCPA API.. mount valid
{
"root": {
"services": [],
"processes": [],
"disk": {
"mount": {},
"logical": {
"|var|log|cb": {
"used_percent": [
21.6,
"%"
valid mounts
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 70G 12G 55G 18% /
tmpfs 16G 52K 16G 1% /dev/shm
/dev/mapper/vg_host-CbData
1.1T 532G 519G 51% /var/cb/data
/dev/sda3 17G 3.5G 13G 22% /var/log/cb
[root@host ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 100G 0 disk
├─sda1 8:1 0 12G 0 part [SWAP]
├─sda2 8:2 0 71G 0 part /
└─sda3 8:3 0 17G 0 part /var/log/cb
sdb 8:16 0 1.1T 0 disk
└─sdb1 8:17 0 1.1T 0 part
└─vg_host-CbData (dm-0) 253:0 0 1.1T 0 lvm /var/cb/data
sr0 11:0 1 1024M 0 rom
This is from the nagios log.. note checking / works fine but the other two mount points don't.
[1615964400] CURRENT SERVICE STATE: host;Disk Space Used /;OK;HARD;1;OK: Used_percent was 58.80 %
[1615964400] CURRENT SERVICE STATE: host;Disk Space Used /var/cb/data;UNKNOWN;HARD;5;UNKNOWN: The node (/var/cb/data) requested does not exist. You may be trying to access the '/' node.
[1615964400] CURRENT SERVICE STATE: host;Disk Space Used /var/log/cb;UNKNOWN;HARD;5;UNKNOWN: The node (/var/log/cb) requested does not exist. You may be trying to access the '/' node.
from the host NCPA API.. mount valid
{
"root": {
"services": [],
"processes": [],
"disk": {
"mount": {},
"logical": {
"|var|log|cb": {
"used_percent": [
21.6,
"%"
valid mounts
df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sda2 70G 12G 55G 18% /
tmpfs 16G 52K 16G 1% /dev/shm
/dev/mapper/vg_host-CbData
1.1T 532G 519G 51% /var/cb/data
/dev/sda3 17G 3.5G 13G 22% /var/log/cb
[root@host ~]# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 100G 0 disk
├─sda1 8:1 0 12G 0 part [SWAP]
├─sda2 8:2 0 71G 0 part /
└─sda3 8:3 0 17G 0 part /var/log/cb
sdb 8:16 0 1.1T 0 disk
└─sdb1 8:17 0 1.1T 0 part
└─vg_host-CbData (dm-0) 253:0 0 1.1T 0 lvm /var/cb/data
sr0 11:0 1 1024M 0 rom