Page 1 of 1

Unknown error while adding v3 devices with switch wizards

Posted: Mon Jun 24, 2019 9:28 am
by sarfarosh
Dear Team

We are trying to monitor Cisco Nexus Switches using SNMP V3 protocol using wizards with authNoPriv security.

while we are adding the device Wizard successfully list & add the ports, but after apply config there is error
"UNKNOWN - No info is being retrieved."
after doing bit R&D i noticed that while adding wizard add -x ' ' -X ' ' flag to the command with blank value even though security level is authNoPriv,

Code: Select all

[root@s1-mgmt-nxi-002 tmp]# /usr/local/nagios/libexec/check_ifoperstatnag 436230656 -v3 -u 'nagios-admin' -A 'ZAQ123edc' -x '' -X '' -a 'SHA' -l 'authNoPriv' 10.128.255.13
Invalid privacy protocol specified after -x flag: -X
USAGE: snmpget [OPTIONS] AGENT OID [OID]...
and if we remove the -x ' ' -X ' ' manually it works fine

Code: Select all

[root@s1-mgmt-nxi-002 tmp]# /usr/local/nagios/libexec/check_ifoperstatnag 436230656 -v3 -u 'nagios-admin' -A 'ZAQ123edc'  -a 'SHA' -l 'authNoPriv' 10.128.255.13
OK - Interface Ethernet1/46 (index 436230656) is up.

We have to monitor Around 110 such devices, for which we can't edit each & every services manually for every interface, kindly help with workaround or bug fix for this.

Re: Unknown error while adding v3 devices with switch wizard

Posted: Mon Jun 24, 2019 2:05 pm
by tgriep
Make sure you are running the latest Wizard by going to the Admin > Manage Config Wizards menu and clicking on the check for updates button.
If there is a newer version, install it on the server as there were some changes to the latest wizard that should fix the issue.

Re: Unknown error while adding v3 devices with switch wizard

Posted: Tue Jun 25, 2019 3:25 am
by sarfarosh
Hi ,

This is the fresh install so i assume it to have the latest version of wizard, just to confirm it has 2.5.0 installed see screen-shot attached.

Is this a known bug ?

Re: Unknown error while adding v3 devices with switch wizard

Posted: Tue Jun 25, 2019 9:29 am
by tgriep
I was able to recreate the issue and yes, it is a bug.
I'll put in a bug fix to get this looked at and fixed.
To see if the wizard is updated, go to the Admin > Manage Config Wizards menu and clicking on the check for updates button.
If you see a new version, update it and try it again.

Re: Unknown error while adding v3 devices with switch wizard

Posted: Thu Jun 27, 2019 2:30 am
by sarfarosh
Just to add it, one more thing that i noticed today is that if we do bulk adding of host with network/switch wizards by pasting csv, all the devices added have command service name for the interfaces.

Re: Unknown error while adding v3 devices with switch wizard

Posted: Thu Jun 27, 2019 9:42 am
by tgriep
Are the devices you are adding using the Bulk add, are they all the same device with the same number of ports, etc?
The bulk add assumes the devices are the same so it can add them to the system.

Re: Unknown error while adding v3 devices with switch wizard

Posted: Mon Jul 01, 2019 3:23 pm
by sarfarosh
Yeah Devices are same Model with same set of ports enabled & connected, been a fail-over switch they are similar to one, but port description are different of the ports of both switch to identify.
So even if The bulk add assumes the devices are the same, it should take the actual port description as service description in nagiosxi

Re: Unknown error while adding v3 devices with switch wizard

Posted: Mon Jul 01, 2019 4:39 pm
by tgriep
What the wizard does it to poll the data from the device that is entered in the top of the Wizard and then directly create the Host and Services in the bulk section without polling the devices in the bulk section to get the data.

It does not get the description details for the devices in the bulk section.