SNMP v3 Error
SNMP v3 Error
nagios XI version 5.2.9
Nagios XI command:
check_xi_service_snmp! -o .1.3.6.1.4.1.41263.502.0 -P 3 --seclevel=authPriv --secname=nagios --authproto=sha --authpasswd='12345678' --privpasswd='12345678' --protocols=sha,aes -m NUTANIX-MIB
Error on the check:
check usage:
check_snmp -H <ip_address> -o <OID> [-w warn_range] [-c crit_range]
[-C community] [-s string] [-r regex] [-R regexi] [-t timeout] [-e retries]
[-l label] [-u units] [-p port-number] [-d delimiter] [-D output-delimiter]
[-m miblist] [-P snmp version] [-L seclevel] [-U secname] [-a authproto]
[-A authpasswd] [-x privproto] [-X privpasswd]
Anyone can help on why am I getting this error?
Thanks.
Regards,
Rico Neo
Nagios XI command:
check_xi_service_snmp! -o .1.3.6.1.4.1.41263.502.0 -P 3 --seclevel=authPriv --secname=nagios --authproto=sha --authpasswd='12345678' --privpasswd='12345678' --protocols=sha,aes -m NUTANIX-MIB
Error on the check:
check usage:
check_snmp -H <ip_address> -o <OID> [-w warn_range] [-c crit_range]
[-C community] [-s string] [-r regex] [-R regexi] [-t timeout] [-e retries]
[-l label] [-u units] [-p port-number] [-d delimiter] [-D output-delimiter]
[-m miblist] [-P snmp version] [-L seclevel] [-U secname] [-a authproto]
[-A authpasswd] [-x privproto] [-X privpasswd]
Anyone can help on why am I getting this error?
Thanks.
Regards,
Rico Neo
Re: SNMP v3 Error
I believe you need to use "--privproto=sha,aes" instead of "--protocols=sha,aes" in your command. Let us know if changing it makes a difference.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: SNMP v3 Error
Now i got this error:lmiltchev wrote:I believe you need to use "--privproto=sha,aes" instead of "--protocols=sha,aes" in your command. Let us know if changing it makes a difference.
Unknown
External command error: Invalid privacy protocol specified after -x flag: sha,aes
USAGE: snmpget [OPTIONS] AGENT OID [OID]...
Version: 5.5
Web: http://www.net-snmp.org/
Email: [email protected]
OPTIONS:
-h, --help display this help message
-H display configuration file directives understood
-v 1
Re: SNMP v3 Error
Try this:
Let us know the results.
Thank you
Code: Select all
check_xi_service_snmp! -o .1.3.6.1.4.1.41263.502.0 -P 3 --seclevel=authPriv --secname=nagios --authproto=SHA --authpasswd='12345678' --privproto=AES --privpasswd='12345678' -m NUTANIX-MIBLet us know the results.
Thank you
Re: SNMP v3 Error
Try running something like this:
Code: Select all
/usr/local/nagios/libexec/check_snmp -H <ipaddress> -o .1.3.6.1.4.1.41263.502.0 -P 3 -L authPriv -U nagios -X '12345678' -A '12345678' -a SHA -x AES -m NUTANIX-MIBBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: SNMP v3 Error
this syntax command is good. I believe there is a bug in the current release for SNMP v3.ssax wrote:Try this:
Code: Select all
check_xi_service_snmp! -o .1.3.6.1.4.1.41263.502.0 -P 3 --seclevel=authPriv --secname=nagios --authproto=SHA --authpasswd='12345678' --privproto=AES --privpasswd='12345678' -m NUTANIX-MIB
Let us know the results.
Thank you
Pls fix it so that we do not need to manually change it.
Re: SNMP v3 Error
Which of the SNMP wizards did you use to set up your check? I will test it, and file a bug report if it is confirmed. Thanks!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: SNMP v3 Error
SNMP wizard.lmiltchev wrote:Which of the SNMP wizards did you use to set up your check? I will test it, and file a bug report if it is confirmed. Thanks!
Not the snmp trap or snmp walk, just snmp.
Re: SNMP v3 Error
Actually, I was not able to recreate the issue. I ran the SNMP wizard in Nagios XI 5.2.9 (SNMP wizard version 1.5.5), and here's the config that was generated:
As you can see, I have "--privproto=" instead of "--protocols="... Are you using the same version of the SNMP wizard? Is your Nagios XI server a "new install" or an upgrade?
Code: Select all
define service {
host_name 001-test-snmp
service_description Uptime
use xiwizard_snmp_service
check_command check_xi_service_snmp! -o sysUpTime.0 -P 3 --seclevel=authPriv --secname=xxx --authproto=md5 --authpasswd='xxx' --privpasswd='xxx' --privproto=des -l "Uptime"
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
notifications_enabled 1
contacts nagiosadmin
_xiwizard snmp
register 1
}Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: SNMP v3 Error
I confirmed it is fixed after the snmp wizard is updated from 1.5.2 to 1.5.5.lmiltchev wrote:Actually, I was not able to recreate the issue. I ran the SNMP wizard in Nagios XI 5.2.9 (SNMP wizard version 1.5.5), and here's the config that was generated:As you can see, I have "--privproto=" instead of "--protocols="... Are you using the same version of the SNMP wizard? Is your Nagios XI server a "new install" or an upgrade?Code: Select all
define service { host_name 001-test-snmp service_description Uptime use xiwizard_snmp_service check_command check_xi_service_snmp! -o sysUpTime.0 -P 3 --seclevel=authPriv --secname=xxx --authproto=md5 --authpasswd='xxx' --privpasswd='xxx' --privproto=des -l "Uptime" max_check_attempts 5 check_interval 5 retry_interval 1 check_period xi_timeperiod_24x7 notification_interval 60 notification_period xi_timeperiod_24x7 notifications_enabled 1 contacts nagiosadmin _xiwizard snmp register 1 }
I am using an upgrade version.
You may close this ticket and thanks for the great support!