Page 2 of 3

Re: Check_Cisco_Config plugin error

Posted: Wed Jan 11, 2017 12:05 am
by network2016
SNMPwalk result.PNG
Hi

The output is it run all mibs . I have attached the last lines of the SNMP walk

Please check

Regards

Re: Check_Cisco_Config plugin error

Posted: Wed Jan 11, 2017 2:38 pm
by rkennedy
Can you please run it through putty so you're able to copy the whole output, or pipe the snmpwalk to a file you can upload?

We'll need to verify what is actually being returned my the snmpwalk.

Re: Check_Cisco_Config plugin error

Posted: Thu Jan 12, 2017 6:05 am
by network2016
SNMP walk output.docx
output.txt
Hi

Please find the attached output for snmpwalk on switch


Regards

Re: Check_Cisco_Config plugin error

Posted: Thu Jan 12, 2017 5:28 pm
by tgriep
Can you post your running configuration for your Cisco Switch?
What the plugin looks like it is trying to do is to configure some settings in the switch so the switch will download it's configuration file to the tftp server and then the plugin will compare them.
So the community string has to be setup on the device as read/write so the plugin can upload the settings to it and also the switch needs access to the tftp server.
Make sure that the switch is setup to do both.

Re: Check_Cisco_Config plugin error

Posted: Fri Jan 13, 2017 6:32 am
by network2016
runningconfig.txt
Hi Please check the attached running -config file for switch

also my nagios server is at 192.168.150.20

tftp server at 192.168.150.90


and public community is RW

Please advise accordingly.


Regards

Re: Check_Cisco_Config plugin error

Posted: Fri Jan 13, 2017 10:09 am
by tgriep
When the plugin executes, the following command is run to upload the settings in to your switch, can you run it on the XI server and see if it works.

Code: Select all

snmpset -c public -v 2c 192.150.12 1.3.6.1.4.1.9.9.96.1.1.1.1.2.1 i 1 .1.3.6.1.4.1.9.9.96.1.1.1.1.3.1 i 4 .1.3.6.1.4.1.9.9.96.1.1.1.1.4.1 i 1 .1.3.6.1.4.1.9.9.96.1.1.1.1.5.1 a "192.168.150.90" .1.3.6.1.4.1.9.9.96.1.1.1.1.6.1 s "/usr/local/nagios/tftp" .1.3.6.1.4.1.9.9.96.1.1.1.1.14.1 i 4

Re: Check_Cisco_Config plugin error

Posted: Tue Jan 17, 2017 12:42 am
by network2016
SNMPset result.PNG
Hi

Sorry for late reply ...

I had tried running the snmpset command from nagios CLI as mentioned by you . It returns the same result as attached ..

Please reply also the SNMPv2-SMi mib failed to translate.


Regards

Re: Check_Cisco_Config plugin error

Posted: Tue Jan 17, 2017 10:38 am
by tgriep
The following message
Reason: notWritable (That object does not support modification) and the Failed object error
leads me to believe that your device does not support writing the information for downloading the configuration to the tftp server so the plugin may not work for you.
You may want to contact Cisco to see if it does.

Re: Check_Cisco_Config plugin error

Posted: Wed Jan 18, 2017 1:28 am
by network2016
Hi

thanks for the reply ,


But I believe the device is SG300 managed switch and it can backup and restore the configuration file to the TFTP server ,also I have verified this by backup the device startup/running config files to the tftp server. and it does successfully.

any other comments please ,if u can suggest or any alternate way for it.

regards

Re: Check_Cisco_Config plugin error

Posted: Wed Jan 18, 2017 1:22 pm
by rkennedy
I don't think writing to an OID / MIB is the same thing as doing a TFTP backup / restore. I would look to see if any of the other plugins support what you're trying to do, or modify the existing one. More can be found at https://exchange.nagios.org