Check_Cisco_Config plugin error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
network2016
Posts: 47
Joined: Tue Mar 08, 2016 11:35 am

Check_Cisco_Config plugin error

Post 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
mrpaulmanley
Posts: 2
Joined: Fri Jan 13, 2012 3:50 pm

Re: Check_Cisco_Config plugin error

Post 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.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Check_Cisco_Config plugin error

Post by dwhitfield »

Thanks for stepping in @mrpaulmanley!

@network2016, was the suggestion useful?
network2016
Posts: 47
Joined: Tue Mar 08, 2016 11:35 am

Re: Check_Cisco_Config plugin error

Post 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
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Check_Cisco_Config plugin error

Post 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.
network2016
Posts: 47
Joined: Tue Mar 08, 2016 11:35 am

Re: Check_Cisco_Config plugin error

Post 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
You do not have the required permissions to view the files attached to this post.
Last edited by dwhitfield on Mon Jan 09, 2017 1:36 pm, edited 1 time in total.
Reason: removing profile for security purposes
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Check_Cisco_Config plugin error

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Check_Cisco_Config plugin error

Post 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"
network2016
Posts: 47
Joined: Tue Mar 08, 2016 11:35 am

Re: Check_Cisco_Config plugin error

Post 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
You do not have the required permissions to view the files attached to this post.
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: Check_Cisco_Config plugin error

Post by dwhitfield »

What's the output of snmpwalk -c public -v 2c SWITCHIP?
Locked