Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
kemecs
bykemecs, March 6, 2021
why "OK" the "Current Status:" on the nagios webgui?
>>>>
Current Status: OK (for 0d 3h 58m 35s)
Status Information: WARNING - Online: 1 - Offline: 1
Performance Data: AP=2 Online=1 Offline=1;0;1;;
the query is correct:
/usr/bin/php ./check_unifi.php -H 192.168.25.15 -u admin -p ********- -P 8443 -s -m ap -w 0 -c 1
WARNING - Online: 1 - Offline: 1 | AP=2 Online=1 Offline=1;0;1;;
>>>>
Current Status: OK (for 0d 3h 58m 35s)
Status Information: WARNING - Online: 1 - Offline: 1
Performance Data: AP=2 Online=1 Offline=1;0;1;;
the query is correct:
/usr/bin/php ./check_unifi.php -H 192.168.25.15 -u admin -p ********- -P 8443 -s -m ap -w 0 -c 1
WARNING - Online: 1 - Offline: 1 | AP=2 Online=1 Offline=1;0;1;;
Owner's reply
The error has been corrected in the current version 1.20210308.
bykemecs, February 8, 2021
ESXi 6.7 test error:
nagios#snmpwalk -m ALL -c detpub -v 2c 192.168.14.100 .1.3.6.1.2.1.25.2.3.1.3
Bad operator (INTEGER): At line 73 in /usr/share/snmp/mibs/ietf/SNMPv2-PDU
SUPPORTS (is a reserved word): At line 59 in /usr/share/snmp/mibs/VMWARE-NSX-AGENTCAP-MIB.mib
INCLUDES (is a reserved word): At line 60 in /usr/share/snmp/mibs/VMWARE-NSX-AGENTCAP-MIB.mib
Bad operator (,): At line 61 in /usr/share/snmp/mibs/VMWARE-NSX-AGENTCAP-MIB.mib
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: /vmfs/volumes/ed338779-ce63a34b-4a9a-6333788de99b
HOST-RESOURCES-MIB::hrStorageDescr.2 = STRING: /vmfs/volumes/fb77b97d-a6419beb-1a5d-9644f1d66a61
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: /vmfs/volumes/5b537a0f-504a0b9e-f354-509a4c8c2a70
HOST-RESOURCES-MIB::hrStorageDescr.4 = STRING: /vmfs/volumes/5b537a15-e9a92760-48cb-509a4c8c2a70
HOST-RESOURCES-MIB::hrStorageDescr.5 = STRING: /vmfs/volumes/5944f1c1-90b76f4e-ff8c-2c27d7149f5f
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: /vmfs/volumes/5b537a15-c0d7e082-4c81-509a4c8c2a70
HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: /vmfs/volumes/5b537d1a-98df1272-d46d-509a4c8c2a70
HOST-RESOURCES-MIB::hrStorageDescr.8 = STRING: /vmfs/volumes/6277b27d-a6bf6dfd-0000-000000000000
HOST-RESOURCES-MIB::hrStorageDescr.9 = STRING: Real Memory
nagios#./check_esx_mem_snmp 192.168.14.100 detpub 90 95
(standard_in) 1: syntax error
(standard_in) 1: syntax error
(standard_in) 1: syntax error
(standard_in) 1: syntax error
./check_esx_mem_snmp: line 116: [: -ge: unary operator expected
(standard_in) 1: syntax error
./check_esx_mem_snmp: line 134: [: -ge: unary operator expected
(standard_in) 1: syntax error
(standard_in) 1: syntax error
(standard_in) 1: syntax error
./check_esx_mem_snmp: line 164: [: 95: unary operator expected
./check_esx_mem_snmp: line 167: [: 90: unary operator expected
OK Mem: scale=0 ; "Real Memory" MB / scale=0 ; "Real Memory" MB (%)|used=B size=B
nagios#snmpwalk -m ALL -c detpub -v 2c 192.168.14.100 .1.3.6.1.2.1.25.2.3.1.3
Bad operator (INTEGER): At line 73 in /usr/share/snmp/mibs/ietf/SNMPv2-PDU
SUPPORTS (is a reserved word): At line 59 in /usr/share/snmp/mibs/VMWARE-NSX-AGENTCAP-MIB.mib
INCLUDES (is a reserved word): At line 60 in /usr/share/snmp/mibs/VMWARE-NSX-AGENTCAP-MIB.mib
Bad operator (,): At line 61 in /usr/share/snmp/mibs/VMWARE-NSX-AGENTCAP-MIB.mib
HOST-RESOURCES-MIB::hrStorageDescr.1 = STRING: /vmfs/volumes/ed338779-ce63a34b-4a9a-6333788de99b
HOST-RESOURCES-MIB::hrStorageDescr.2 = STRING: /vmfs/volumes/fb77b97d-a6419beb-1a5d-9644f1d66a61
HOST-RESOURCES-MIB::hrStorageDescr.3 = STRING: /vmfs/volumes/5b537a0f-504a0b9e-f354-509a4c8c2a70
HOST-RESOURCES-MIB::hrStorageDescr.4 = STRING: /vmfs/volumes/5b537a15-e9a92760-48cb-509a4c8c2a70
HOST-RESOURCES-MIB::hrStorageDescr.5 = STRING: /vmfs/volumes/5944f1c1-90b76f4e-ff8c-2c27d7149f5f
HOST-RESOURCES-MIB::hrStorageDescr.6 = STRING: /vmfs/volumes/5b537a15-c0d7e082-4c81-509a4c8c2a70
HOST-RESOURCES-MIB::hrStorageDescr.7 = STRING: /vmfs/volumes/5b537d1a-98df1272-d46d-509a4c8c2a70
HOST-RESOURCES-MIB::hrStorageDescr.8 = STRING: /vmfs/volumes/6277b27d-a6bf6dfd-0000-000000000000
HOST-RESOURCES-MIB::hrStorageDescr.9 = STRING: Real Memory
nagios#./check_esx_mem_snmp 192.168.14.100 detpub 90 95
(standard_in) 1: syntax error
(standard_in) 1: syntax error
(standard_in) 1: syntax error
(standard_in) 1: syntax error
./check_esx_mem_snmp: line 116: [: -ge: unary operator expected
(standard_in) 1: syntax error
./check_esx_mem_snmp: line 134: [: -ge: unary operator expected
(standard_in) 1: syntax error
(standard_in) 1: syntax error
(standard_in) 1: syntax error
./check_esx_mem_snmp: line 164: [: 95: unary operator expected
./check_esx_mem_snmp: line 167: [: 90: unary operator expected
OK Mem: scale=0 ; "Real Memory" MB / scale=0 ; "Real Memory" MB (%)|used=B size=B
Owner's reply
I see snmpwalk is not working well. You need to have it working fine first, before test the script