Page 1 of 3

Check_Cisco_Config plugin error

Posted: Thu Jan 05, 2017 5:44 am
by network2016
Hi All, I am trying to use the plugin "Check_Cisco_Config" ,
<<https://exchange.nagios.org/directory/P ... ig/details>>

It is used to pull the configuration of device[network switch SG300 28 port switch ] ,and save to nagios . I installed it and configured properly but it is throwing the error when I run plugin from CLI and IN WEB UI it shows status OK


" Timeout : no response from x.x.x.x
Status is OK"


With another switch it gives error

" error in packet :resason : not writable with OID for SNMPv2-SMI"

I check the switch it is able to backup configuration to TFTP server ,Ping is fine everywhere.



Any suggestion and help will be really appreciated .

Thnaks

Re: Check_Cisco_Config plugin error

Posted: Thu Jan 05, 2017 10:39 am
by mrpaulmanley
I've never worked with an SG series switch so I'm not really sure if I can help. Have you verified that the SNMP verisions and RW communities are correct on the switch and in your check definition? More details about your switch configuration and nagios command definitions would help. TBH, I haven't actually used this plugin for a couple of years, but I'd be willing to take a cursory glance at your stuff to see if anything stands out.

Re: Check_Cisco_Config plugin error

Posted: Thu Jan 05, 2017 10:46 am
by dwhitfield
Thanks for stepping in @mrpaulmanley!

@network2016, was the suggestion useful?

Re: Check_Cisco_Config plugin error

Posted: Fri Jan 06, 2017 1:00 am
by network2016
Thanks for replying............

Yes I have checked the SNMP version and RW communities . they seems correct, as It is configured as SNMP v1 and Public [default],nagiosxi is receiving the traps normally from switch and also I have configured command correctly.

Please advice troubleshooting accordingly.

regards

Re: Check_Cisco_Config plugin error

Posted: Fri Jan 06, 2017 11:27 am
by dwhitfield
Can you post a screenshot of how you have it set up in the XI GUI?

Also, can you PM me your Profile? You can download it by going to Admin > System Config > System Profile and click the Download Profile button towards the top. If for whatever reason you *cannot* download the profile, please put the output of View System Info (5.3.4+, Show Profile if older) in the thread (that will at least get us some info).

After you PM the profile, please update this thread. Updating this thread is the only way for it to show back up on our dashboard.

UPDATE: Profile shared with techs.

Re: Check_Cisco_Config plugin error

Posted: Mon Jan 09, 2017 5:03 am
by network2016
snapshot of plugun setup in nagios.docx
hi thanks for replying, sorry for the delay in reply form my side.

Please find the attached snapshots and profile as asked....

Please advice the necessary step for troubleshoot

Re: Check_Cisco_Config plugin error

Posted: Mon Jan 09, 2017 2:42 pm
by tgriep
Can you verify that the community string you are using is configured on the device as a RW community string and that it is using version 2 for SNMP?
That is what the plugin requires to connect to the remote device.

Re: Check_Cisco_Config plugin error

Posted: Mon Jan 09, 2017 3:00 pm
by dwhitfield
Additionally,
network2016 wrote: It is configured as SNMP v1 and Public [default]
Is that correct? Earlier you left this error
" error in packet :resason : not writable with OID for SNMPv2-SMI"

Re: Check_Cisco_Config plugin error

Posted: Tue Jan 10, 2017 12:57 am
by network2016
SNMPv2-SMI.txt
error.PNG
Hi

Please check the error I have received now, I have modified the switch SNMP configuration with

1. SNMP community "public" with read/write
2. and SNMP receivers with SNMP version 2

Also I havce configuration in xinet.d/tftp as below,

vi /etc/xinet.d/tftp

service tftp
{
protocol = udp
port = 69
socket_type = dgram
wait = yes
user = nagios
group = nagios
server = /usr/sbin/in.tftpd
server_args = /usr/local/nagios/tftp
disable = no
}

$sudo /etc/init.d/xinetd restart

Is it correct??

Also the permissions are as below

$sudo mkdir /usr/local/nagios/cisco_configs
$sudo mkdir /usr/local/nagios/tftp
$sudo chmod -R 775 /usr/local/nagios/cisco_configs
$sudo chmod 770 /usr/local/nagios/tftp
$sudo chown -R nagios /usr/local/nagios/cisco_configs
$sudo chgrp -R nagios /usr/local/nagios/cisco_configs
$sudo chown nagios /usr/local/nagios/tftp
$sudo chgrp nagios /usr/local/nagios/tftp

also the SNMPv2-SMI txt MIB which throws error is attached ,should I change anything in it ??

Also when I tried to convert MIb in nagios using snmptttconvertmib command it says failed translation??




Please advice accordingly.

Regards

Re: Check_Cisco_Config plugin error

Posted: Tue Jan 10, 2017 12:57 pm
by dwhitfield
What's the output of snmpwalk -c public -v 2c SWITCHIP?