Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Monitoring a Cisco 2960G switch with Nagios

Posted on 2009-07-07
1
Medium Priority
?
11,586 Views
Last Modified: 2013-12-07
I am monitoring a Cisco 2960G switch with Nagios. I am getting green (OK) for ping, port 1 link status and uptime. Port 3 link status is orange with the error: SNMP problem  No data received from host. If I unplug the network cable in port 1 on the switch the port stays green in Nagios so it is not monitoring port 1.  The switch has an IP address on the vlan and SNMP is enabled read only. What do I have configured wrong?
define host{
	use		generic-switch		; Inherit default values from a template
	host_name	switch			; The name we're giving to this switch
	alias		Cisco Switch		; A longer name associated with the switch
	address		10.100.10.8		; IP address of the switch
	hostgroups	switches		; Host groups this switch is associated with
 
	}
 
define hostgroup{
	hostgroup_name		switches
	alias			Network Switches
	members			netware1,netware2,netware3,netware4
	}
 
 
define service{
 
	use			generic-service	; Inherit values from a template
	host_name		switch		; The name of the host the service is associated with
	service_description	PING		; The service description
	check_command		check_ping!200.0,20%!600.0,60%	; The command used to monitor the service
	normal_check_interval	5		; Check the service every 5 minutes under normal conditions
	retry_check_interval	1		; Re-check the service every minute until its final/hard state is determined
 
	}
 
 
define service{
 
	use			generic-service	; Inherit values from a template
	host_name		switch
	service_description	Uptime	
	check_command		check_snmp!-C public -o sysUpTime.0
 
	}
 
 
define service{
 
	use			generic-service	; Inherit values from a template
	host_name		switch
	service_description	Port 1 Link Status
	check_command		check_snmp!-C public -o ifOperStatus.1 -r 1 -m RFC1213-MIB
 
	}
 
define service{
 
	use			generic-service	; Inherit values from a template
	host_name		switch
	service_description	Port 2 Link Status
	check_command		check_snmp!-C public -o ifOperStatus.2 -r 1 -m RFC1213-MIB
 
	}

Open in new window

0
Comment
Question by:CAKNV
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
CAKNV earned 0 total points
ID: 24799451
Used snmpwalk to find out correct interface. Command should be ifOperStatus.10101, ifOperStatus.10102, ifOperStatus.10103.
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Large and small networks have one same need, Service monitoring. Service monitoring consists of watch services of the several servers in the network. To monitor means that the administrator will receive an alert when a service is down or it's state …
Arrow Electronics was searching for a KVM  (Keyboard/Video/Mouse) switch that could display on one single monitor the current status of all units being tested on the rack.
In this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

670 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question