Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
I am using check_snmp plugin to monitor cisco device. I managed to install MIB files and obtain proper OIDs for my monitoring. However when I call check_snmp to use mib file, its showing the proper string("online" in my case") value through cli. However on nagios frontend its parsing only the Integer value.
However once configuring host and service, it parsing only the integer value (1) but not "online". Looks like its not using the MIB file. Any idea what I am missing?
Are you executing over the CLI as the root user? It may be permissions. What happens if you run check_snmp as the nagios user? What is the output of ls -la /usr/share/snmp/mibs/CISCO-UNIFIED-COMPUTING-STORAGE-MIB.my?
If that's not it, please post the service definition + related command definition for us to compare your configurations.
I am seeing below from nagios. The reason its showing critical is, my command is configured to se OK state when it find "online" . But its returning the integer value "1" which by MIB is for "online"
When you poll an OID that returns an integer, that is what it will return, an integer.
If the OID is a string, then it will return a string.
Since what you are polling is an integer, you cannot compare it to a string.
Try changing the -R "online" to -R "1" and see if that works for you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
I figured out the issue. I was expecting "online" as per mib and got it installed on master server. However the workers which does the check have no mib installed. So installed one over there which fixed the issue. Thanks for your time helping me in this.