Problem SNMP Cisco Catalyst 3550

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
evilmonkey93
Posts: 8
Joined: Sun Mar 27, 2011 7:44 am

Problem SNMP Cisco Catalyst 3550

Post by evilmonkey93 »

Hi guys, I have a problem with nagios.
I work with a Debian 6.0, huh I can not take in managing the switch (Cisco Catalyst 3550)

I have these errors, the response from the web interface:

Code: Select all

SNMP problem - No data Received from host
check_mrtgtraf: Unable to open MRTG log file
The switch is configuratato, huh, and I have enabled SNMP traps snmp-server host as giving the IP address where the service is running nagios.
We list the commands that I added to the switch console:

Code: Select all

snmp-server community public rw
snmp-server host 192.168.1.11
snmp-server enable traps
We list the network as follows:
2 PCs connected to a switch which in turn is connected to a router.
Both PCs have two ip public ip and two local course.
pc1 192.168.1.10
Pc2, which is active nagios 192.168.1.11
switch 192.168.1.24

Another problem that I can not understand is the composition of the map as the center gives me the service nagios eh switch puts me to one side as if it were a host part, when in fact the two PCs are connected to it.

How can I solve this?
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: Problem SNMP Cisco Catalyst 3550

Post by jsmurphy »

For your first issue, can you test by doing an snmpwalk from the nagios box to the switch. If that doesn't work then there is likely a mis-configuration issue on the switch, if it does work then it's likely a mis-configuration in Nagios... if the snmpwalk succeeds can you post the command definition (from commands.cfg) and the service definition.

For your second issue with the map, on each of the host configs you need to use the 'parent' directive to tell the host that its parent is the switch... this will have the added benefit of when the switch goes down it won't send you alerts for both of the hosts as well as the switch.
evilmonkey93
Posts: 8
Joined: Sun Mar 27, 2011 7:44 am

Re: Problem SNMP Cisco Catalyst 3550

Post by evilmonkey93 »

The problem of the composition of the smallest I have solved the map.

The problem with snmp I can not fix.

Code: Select all

PING OK - Packet loss = 0%, RTA = 0.51 ms 
Port 1 Bandwidth Usage
UNKNOWN	11-22-2011 21:55:26	 1d 4h 34m 57s	3/3	check_mrtgtraf: Unable to open MRTG log file 
Port 1 Link Status
UNKNOWN	11-22-2011 21:56:21	 1d 4h 33m 54s	3/3	SNMP problem - No data received from host 
Uptime
CRITICAL	11-22-2011 21:59:30	 1d 4h 32m 51s	3/3	(Service Check Timed Out) 
This is the log of the switch that tells me that he actually sends packets but snmp nagios nms, and another did not receive them:

Code: Select all

Switch#show snmp           
Chassis: CAT0733X2LV
10 SNMP packets input
    0 Bad SNMP version errors
    0 Unknown community name
    0 Illegal operation for community name supplied
    0 Encoding errors
    9 Number of requested variables
    0 Number of altered variables
    5 Get-request PDUs
    4 Get-next PDUs
    0 Set-request PDUs
289 SNMP packets output
    0 Too big errors (Maximum packet size 1500)
    0 No such name errors
    0 Bad values errors
    0 General errors
    9 Response PDUs
    279 Trap PDUs
SNMP global trap: enabled

SNMP logging: enabled
    Logging to 192.168.1.11.162, 0/10, 189 sent, 0 dropped.
    Logging to 151.24.125.131.162, 0/10, 90 sent, 0 dropped.
SNMP agent enabled
Switch#
After some testing I am in doubt:

1) There could be a "difference of protocol" because it tells me that swich sends packets but not receiving the nagios.
So I thought I can not depend on which version of SNMP different?

2) The host of course configure it to the server where Nagios is right?
User avatar
jsmurphy
Posts: 989
Joined: Wed Aug 18, 2010 9:46 pm

Re: Problem SNMP Cisco Catalyst 3550

Post by jsmurphy »

It sounds like what you have done is configured both passive and active SNMP monitoring.

If you want to set up Passive SNMP monitoring (The switch sends information to nagios) check out this tutorial: http://xavier.dusart.free.fr/nagios/en/snmptraps.html

If you want to set up Active SNMP monitoring (Nagios asks the switch for information), begin by using snmpwalk to verify you have configured the switch properly http://www.net-snmp.org/docs/man/snmpwalk.html if you can retrieve information with snmpwalk and you are still having trouble then post up your service configs.
Locked