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.
Weird SNMPv3 error under the service
Weird SNMPv3 error under the service
You do not have the required permissions to view the files attached to this post.
- jmichaelson
- Posts: 289
- Joined: Wed Aug 23, 2023 1:02 pm
Re: Weird SNMPv3 error under the service
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.
Please let us know if you have any other questions or concerns.
-Jason
-Jason
Re: Weird SNMPv3 error under the service
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.
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.
Please let us know if you have any other questions or concerns.
-Laura
-Laura
Re: Weird SNMPv3 error under the service
Hey Laura,
This is being done through the SNMP Walk configuration wizard, using SNMPv3.
This is being done through the SNMP Walk configuration wizard, using SNMPv3.
Re: Weird SNMPv3 error under the service
This config was done through the SNMP Walk configuration wizard.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.
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
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... 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.
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... 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.
You do not have the required permissions to view the files attached to this post.
Please let us know if you have any other questions or concerns.
-Laura
-Laura