Page 1 of 1
Weird SNMPv3 error under the service
Posted: Tue Feb 04, 2025 1:34 pm
by WillWork
Hello All,
So I'm configuring SNMPv3 for all the cisco switches on my site, and I'm having an error in Nagios that I don't understand.
If you check the attachments on this post, you can clearly see that Nagios can see these SNMP traps coming from the switch, and even identify that I want to monitor just the fans in this configuration.
For some reason, once the host is created and I've finished with the configuration wizard, it throws me this weird error.
I know this isn't an issue the switch is having as I've labbed this with the 2960S's, and I'm now just pasting this config onto a 2960X. This should work.
Any and all help would be gladly appreciated.
Re: Weird SNMPv3 error under the service
Posted: Tue Feb 04, 2025 4:03 pm
by jmichaelson
Can you confirm which plugin is being used for this check, and possibly the arguments being passed to it in the service configuration? This looks like it might be a syntax error in the plugin.
Re: Weird SNMPv3 error under the service
Posted: Tue Feb 04, 2025 4:37 pm
by lgute
Hi
@WillWork,
Thanks for reaching out.
To make sure we are on the same page, are you using the Network Switch / Router Wizard?
Usually the easiest way to debug checks, is to run the plugin on the command line.
Re: Weird SNMPv3 error under the service
Posted: Wed Feb 05, 2025 8:36 am
by WillWork
Hey Laura,
This is being done through the SNMP Walk configuration wizard, using SNMPv3.
Re: Weird SNMPv3 error under the service
Posted: Wed Feb 05, 2025 8:42 am
by WillWork
jmichaelson wrote: ↑Tue Feb 04, 2025 4:03 pm
Can you confirm which plugin is being used for this check, and possibly the arguments being passed to it in the service configuration? This looks like it might be a syntax error in the plugin.
This config was done through the SNMP Walk configuration wizard.
The actual plugin technically being used is the 'check_xi_service_snmp'.
Here are the arguments being passed:
ARG1: -p 161 -o 'ciscoEnvMonFanState.1007' -P 3 --seclevel=authPriv --secname='USERNAME' --authproto=SHA --authpasswd='AuthenticationPassword
ARG2: ' --privpasswd='EncryptionPassword' -x des -l 'number' -u 'Integer' -m CISCO-ENVMON-MIB -w 2 -c 3
Note: I have changed the passwords in the ARG's to keep my company's SNMP passwords private, everything else is the same.
Re: Weird SNMPv3 error under the service
Posted: Wed Feb 12, 2025 4:26 pm
by lgute
Hi
@WillWork,
I setup an SNMP v3 service check using the SNMP Walk wizard, so I could compare it with your results. I think you need everything in $ARG1$.
If you navigate to the
Core Config Manager (CCM) |
Monitoring |
Services and find your service check, then click on the "Config Name" for one of your checks, you will get the
Service Management page for that service check.
It should look something like this...
ServiceManagement.png
You can see it is using the check_xi_service_snmp check command and all the arguments are in $ARG1$
At the bottom of the page is a
Run Check Command button. If you click the button, it will popup a modal where you can click the
Run Check Command button. This will display the full command, which you can copy and paste into a terminal window, to test on your XI machine. It also outputs the data from running the command. This can be useful for testing and verifying your service checks.
RunCheck.png