<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: How To Monitor Network Switch and Ports Using Nagios</title>
	<atom:link href="http://www.thegeekstuff.com/2008/11/how-to-monitor-network-switch-and-ports-using-nagios/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.thegeekstuff.com/2008/11/how-to-monitor-network-switch-and-ports-using-nagios/</link>
	<description>Guides, HowTos and Tips for Technology Geeks</description>
	<lastBuildDate>Thu, 09 Feb 2012 13:04:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Chitti Prasad</title>
		<link>http://www.thegeekstuff.com/2008/11/how-to-monitor-network-switch-and-ports-using-nagios/comment-page-1/#comment-160724</link>
		<dc:creator>Chitti Prasad</dc:creator>
		<pubDate>Sat, 24 Dec 2011 08:01:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=247#comment-160724</guid>
		<description>In Steps #6 and #7 - to monitor switch ports, the Port Number given in the service command i.e., &quot;ifOperStatus.1&quot; &lt;== the 1 is not always the switch port number. The port number for different switches will be different - for example for Cisco2960 Gigabit switch, it will start at 10101 for the first port. It is better to run a snmpwalk command on the switch with &quot;ifDescr&quot; as OID as below for a switch with ip address 172.16.16.1:
#snmpwalk -v 1 -c public 172.16.16.1 ifDescr
IF-MIB::ifDescr.1 = STRING: Vlan1
IF-MIB::ifDescr.10101 = STRING: GigabitEthernet0/1
IF-MIB::ifDescr.10102 = STRING: GigabitEthernet0/2
IF-MIB::ifDescr.10103 = STRING: GigabitEthernet0/3
IF-MIB::ifDescr.10104 = STRING: GigabitEthernet0/4
IF-MIB::ifDescr.10105 = STRING: GigabitEthernet0/5
.
.
.
The number foloowing &quot;ifDescr&quot; in the output above is the actual switch port number. As displayed in the first line, the &quot;ifDescr.1&quot; denotes &quot;Vlan1&quot; - which can be taken as the total switch itself - thus it can be used to get the status of the sitch as a whole!</description>
		<content:encoded><![CDATA[<p>In Steps #6 and #7 &#8211; to monitor switch ports, the Port Number given in the service command i.e., &#8220;ifOperStatus.1&#8243; &lt;== the 1 is not always the switch port number. The port number for different switches will be different &#8211; for example for Cisco2960 Gigabit switch, it will start at 10101 for the first port. It is better to run a snmpwalk command on the switch with &quot;ifDescr&quot; as OID as below for a switch with ip address 172.16.16.1:<br />
#snmpwalk -v 1 -c public 172.16.16.1 ifDescr<br />
IF-MIB::ifDescr.1 = STRING: Vlan1<br />
IF-MIB::ifDescr.10101 = STRING: GigabitEthernet0/1<br />
IF-MIB::ifDescr.10102 = STRING: GigabitEthernet0/2<br />
IF-MIB::ifDescr.10103 = STRING: GigabitEthernet0/3<br />
IF-MIB::ifDescr.10104 = STRING: GigabitEthernet0/4<br />
IF-MIB::ifDescr.10105 = STRING: GigabitEthernet0/5<br />
.<br />
.<br />
.<br />
The number foloowing &quot;ifDescr&quot; in the output above is the actual switch port number. As displayed in the first line, the &quot;ifDescr.1&quot; denotes &quot;Vlan1&quot; &#8211; which can be taken as the total switch itself &#8211; thus it can be used to get the status of the sitch as a whole!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: 7 Steps to Upgrade IOS Image on Cisco Catalyst Switch or Router</title>
		<link>http://www.thegeekstuff.com/2008/11/how-to-monitor-network-switch-and-ports-using-nagios/comment-page-1/#comment-114073</link>
		<dc:creator>7 Steps to Upgrade IOS Image on Cisco Catalyst Switch or Router</dc:creator>
		<pubDate>Thu, 23 Jun 2011 06:04:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=247#comment-114073</guid>
		<description>[...] On a side note, you should be using some software to monitor your switch status. If you are not doing it install Nagios, and monitor your switches. [...]</description>
		<content:encoded><![CDATA[<p>[...] On a side note, you should be using some software to monitor your switch status. If you are not doing it install Nagios, and monitor your switches. [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: PT</title>
		<link>http://www.thegeekstuff.com/2008/11/how-to-monitor-network-switch-and-ports-using-nagios/comment-page-1/#comment-103221</link>
		<dc:creator>PT</dc:creator>
		<pubDate>Wed, 11 May 2011 22:13:16 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=247#comment-103221</guid>
		<description>Is it possible to use check_mrtgtraf if the server running mrtg is a windows server? In my environment I have mrtg running on a windows 2000 box.</description>
		<content:encoded><![CDATA[<p>Is it possible to use check_mrtgtraf if the server running mrtg is a windows server? In my environment I have mrtg running on a windows 2000 box.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ramesh</title>
		<link>http://www.thegeekstuff.com/2008/11/how-to-monitor-network-switch-and-ports-using-nagios/comment-page-1/#comment-74873</link>
		<dc:creator>ramesh</dc:creator>
		<pubDate>Fri, 24 Dec 2010 07:35:23 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=247#comment-74873</guid>
		<description>hi experts,

      hi iam configuring nagiios monitoring for  but i&#039;m confusing about web access..
     so can you please suggest me how would it be please,

regards,
ramesh.</description>
		<content:encoded><![CDATA[<p>hi experts,</p>
<p>      hi iam configuring nagiios monitoring for  but i&#8217;m confusing about web access..<br />
     so can you please suggest me how would it be please,</p>
<p>regards,<br />
ramesh.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jay</title>
		<link>http://www.thegeekstuff.com/2008/11/how-to-monitor-network-switch-and-ports-using-nagios/comment-page-1/#comment-64542</link>
		<dc:creator>Jay</dc:creator>
		<pubDate>Mon, 27 Sep 2010 18:34:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=247#comment-64542</guid>
		<description>Hoping someone can help me here.  I am currently running Nagios Core Version 3.2.1 and am having an issue monitoring ports on my Cisco 3750 switches.  Currently I have all of my switches setup within a host group and can see all other data with the exception of port status.  I followed the directions from this site on how to set it up, but to no avail.  For instance, I keep getting the error &quot;External command error: Error in packet&quot; and it shows a status of UNKNOWN.  What&#039;s strange is that I also have a monitor setup on port 1 (Port 1 Link Status) and it shows as green, but yet the port is in down/down status within the switch.  Here is my syntax:

check_snmp! -C  -o ifOperstatus.4 -r 1 -m RFC1213-MIB

Any help would be greatly appreciated.

-Jay</description>
		<content:encoded><![CDATA[<p>Hoping someone can help me here.  I am currently running Nagios Core Version 3.2.1 and am having an issue monitoring ports on my Cisco 3750 switches.  Currently I have all of my switches setup within a host group and can see all other data with the exception of port status.  I followed the directions from this site on how to set it up, but to no avail.  For instance, I keep getting the error &#8220;External command error: Error in packet&#8221; and it shows a status of UNKNOWN.  What&#8217;s strange is that I also have a monitor setup on port 1 (Port 1 Link Status) and it shows as green, but yet the port is in down/down status within the switch.  Here is my syntax:</p>
<p>check_snmp! -C  -o ifOperstatus.4 -r 1 -m RFC1213-MIB</p>
<p>Any help would be greatly appreciated.</p>
<p>-Jay</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vaibhav Mishra</title>
		<link>http://www.thegeekstuff.com/2008/11/how-to-monitor-network-switch-and-ports-using-nagios/comment-page-1/#comment-64130</link>
		<dc:creator>Vaibhav Mishra</dc:creator>
		<pubDate>Thu, 23 Sep 2010 08:05:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=247#comment-64130</guid>
		<description>Hi Experts,

Can I request for some suggestion for my query as below? I have NAGIOS 3.2 installed on Red Hat Enterprise Linux AS release 4. When I try to monitor traffic on a particular port of my router (router support SNMP), I get Return code of 255 is out of bounds.

I learnt that my OS should have NET:SNMP agent installed. When I checked, I found that NET::SNMP agent installed as you can see below the output.

rpm -qa &#124; grep net-snmp
net-snmp-devel-5.1.2-11.EL4.6
net-snmp-5.1.2-11.EL4.6
net-snmp-utils-5.1.2-11.EL4.6
net-snmp-perl-5.1.2-11.EL4.6
net-snmp-libs-5.1.2-11.EL4.6

Can some one tell me where I am making a mistake or if the NET::SNAMP agent need some customization?

Your kind help must be appreciated.

Regards,

Vaibhav</description>
		<content:encoded><![CDATA[<p>Hi Experts,</p>
<p>Can I request for some suggestion for my query as below? I have NAGIOS 3.2 installed on Red Hat Enterprise Linux AS release 4. When I try to monitor traffic on a particular port of my router (router support SNMP), I get Return code of 255 is out of bounds.</p>
<p>I learnt that my OS should have NET:SNMP agent installed. When I checked, I found that NET::SNMP agent installed as you can see below the output.</p>
<p>rpm -qa | grep net-snmp<br />
net-snmp-devel-5.1.2-11.EL4.6<br />
net-snmp-5.1.2-11.EL4.6<br />
net-snmp-utils-5.1.2-11.EL4.6<br />
net-snmp-perl-5.1.2-11.EL4.6<br />
net-snmp-libs-5.1.2-11.EL4.6</p>
<p>Can some one tell me where I am making a mistake or if the NET::SNAMP agent need some customization?</p>
<p>Your kind help must be appreciated.</p>
<p>Regards,</p>
<p>Vaibhav</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: David Merrick</title>
		<link>http://www.thegeekstuff.com/2008/11/how-to-monitor-network-switch-and-ports-using-nagios/comment-page-1/#comment-51576</link>
		<dc:creator>David Merrick</dc:creator>
		<pubDate>Mon, 28 Jun 2010 23:50:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=247#comment-51576</guid>
		<description>@baggage and @sawsen--
I&#039;m no expert, and am still trying to get mrtg working myself, but most tutorials on how to install mrtg have you put the log files in /var/www/mrtg. 

Instead of:
check_local_mrtgtraf!/var/lib/mrtg/192.168.1.11_1.log!AVG!1000000,2000000!5000000,5000000!10

You might try:
check_local_mrtgtraf!/var/www/mrtg/192.168.1.11_1.log!AVG!1000000,2000000!5000000,5000000!10

(Notice the /var/www instead of /var/lib)
~David</description>
		<content:encoded><![CDATA[<p>@baggage and @sawsen&#8211;<br />
I&#8217;m no expert, and am still trying to get mrtg working myself, but most tutorials on how to install mrtg have you put the log files in /var/www/mrtg. </p>
<p>Instead of:<br />
check_local_mrtgtraf!/var/lib/mrtg/192.168.1.11_1.log!AVG!1000000,2000000!5000000,5000000!10</p>
<p>You might try:<br />
check_local_mrtgtraf!/var/www/mrtg/192.168.1.11_1.log!AVG!1000000,2000000!5000000,5000000!10</p>
<p>(Notice the /var/www instead of /var/lib)<br />
~David</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: baggage</title>
		<link>http://www.thegeekstuff.com/2008/11/how-to-monitor-network-switch-and-ports-using-nagios/comment-page-1/#comment-43991</link>
		<dc:creator>baggage</dc:creator>
		<pubDate>Fri, 23 Apr 2010 09:55:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=247#comment-43991</guid>
		<description>Can you take a look at this, please?
Or Can somebody tell me how to add a switch monitoring on nagios3 without centreon interface?
Actually, I mean about the services since i&#039;ve added the switch. =)
But I would like to monitor it&#039;s Bandwidth Usage and CPU load/stats.
I did sth like the following :



- Bandwidth/traffic :
Error message is : Port 1 Bandwidth Usage CRITICAL(Return code of 139 is out of bounds)

define service{
use generic-service
host_name switch1
service_description Port 1 Bandwidth Usage
check_command check_mrtg!10.4.126.234_1.log!1!1000000!1500000!In!Bytes/Sec
# check_command traffic_average!10.4.126.234 10 !AVG 1000000 2000000 5000000 5000000
}

along with the following given command in /etc/nagios-plugins/config/mrtg.cfg :

# &#039;check_mrtg&#039; command definition
define command{
command_name check_mrtg
command_line /usr/lib/nagios/plugins/check_mrtg &#039;$ARG1$&#039; 10 AVG &#039;$ARG2$&#039; &#039;$ARG3$&#039; &#039;$ARG4$&#039; &#039;$ARG5$&#039; &#039;$ARG6$&#039;
}


# &#039;traffic_average&#039; command definition
define command{
command_name traffic_average
command_line /usr/lib/nagios/plugins/check_mrtgtraf &#039;$ARG1$&#039; 10 AVG &#039;$ARG2$&#039; &#039;$ARG3$&#039; &#039;$ARG4$&#039; &#039;$ARG5$&#039;
}




- CPU stats : 
Erro message : Port2CPUstats snmp_cpustat -&gt; UNKNOWN :  External command error: Cannot find module (&#039;&#039;): At line 1 in (none) 

define service{
hostgroup_name Switches
use generic-service
service_description Port2CPUstats snmp_cpustats
check_command snmp_cpustats!public!50
}

along with the following given command definition in /etc/nagios-plugins/config/snmp.cfg:

# &#039;snmp_cpustats&#039; command definition
define command{
command_name snmp_cpustats
command_line /usr/lib/nagios/plugins/check_snmp -H &#039;$HOSTADDRESS$&#039; -C &#039;$ARG1$&#039; -o .1.3.6.1.4.1.2021.11.9.0,.1.3.6.1.4.1.2021.11.10.0,.1.3.6.1.4.1.2021.11.11.0 -l &#039;CPU usage (user system idle)&#039; -u &#039;%&#039;
}


For instance, I really abandon centreon matter because it&#039;s a kinda &quot;urgent&quot; project for me. :s
for mrtg, do we need to install it? That&#039;s kinda what i got from googling. :/

Thanks,

kpwstarina@yahoo.com</description>
		<content:encoded><![CDATA[<p>Can you take a look at this, please?<br />
Or Can somebody tell me how to add a switch monitoring on nagios3 without centreon interface?<br />
Actually, I mean about the services since i&#8217;ve added the switch. =)<br />
But I would like to monitor it&#8217;s Bandwidth Usage and CPU load/stats.<br />
I did sth like the following :</p>
<p>- Bandwidth/traffic :<br />
Error message is : Port 1 Bandwidth Usage CRITICAL(Return code of 139 is out of bounds)</p>
<p>define service{<br />
use generic-service<br />
host_name switch1<br />
service_description Port 1 Bandwidth Usage<br />
check_command check_mrtg!10.4.126.234_1.log!1!1000000!1500000!In!Bytes/Sec<br />
# check_command traffic_average!10.4.126.234 10 !AVG 1000000 2000000 5000000 5000000<br />
}</p>
<p>along with the following given command in /etc/nagios-plugins/config/mrtg.cfg :</p>
<p># &#8216;check_mrtg&#8217; command definition<br />
define command{<br />
command_name check_mrtg<br />
command_line /usr/lib/nagios/plugins/check_mrtg &#8216;$ARG1$&#8217; 10 AVG &#8216;$ARG2$&#8217; &#8216;$ARG3$&#8217; &#8216;$ARG4$&#8217; &#8216;$ARG5$&#8217; &#8216;$ARG6$&#8217;<br />
}</p>
<p># &#8216;traffic_average&#8217; command definition<br />
define command{<br />
command_name traffic_average<br />
command_line /usr/lib/nagios/plugins/check_mrtgtraf &#8216;$ARG1$&#8217; 10 AVG &#8216;$ARG2$&#8217; &#8216;$ARG3$&#8217; &#8216;$ARG4$&#8217; &#8216;$ARG5$&#8217;<br />
}</p>
<p>- CPU stats :<br />
Erro message : Port2CPUstats snmp_cpustat -&gt; UNKNOWN :  External command error: Cannot find module (&#8221;): At line 1 in (none) </p>
<p>define service{<br />
hostgroup_name Switches<br />
use generic-service<br />
service_description Port2CPUstats snmp_cpustats<br />
check_command snmp_cpustats!public!50<br />
}</p>
<p>along with the following given command definition in /etc/nagios-plugins/config/snmp.cfg:</p>
<p># &#8216;snmp_cpustats&#8217; command definition<br />
define command{<br />
command_name snmp_cpustats<br />
command_line /usr/lib/nagios/plugins/check_snmp -H &#8216;$HOSTADDRESS$&#8217; -C &#8216;$ARG1$&#8217; -o .1.3.6.1.4.1.2021.11.9.0,.1.3.6.1.4.1.2021.11.10.0,.1.3.6.1.4.1.2021.11.11.0 -l &#8216;CPU usage (user system idle)&#8217; -u &#8216;%&#8217;<br />
}</p>
<p>For instance, I really abandon centreon matter because it&#8217;s a kinda &#8220;urgent&#8221; project for me. :s<br />
for mrtg, do we need to install it? That&#8217;s kinda what i got from googling. :/</p>
<p>Thanks,</p>
<p><a href="mailto:kpwstarina@yahoo.com">kpwstarina@yahoo.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sawsen</title>
		<link>http://www.thegeekstuff.com/2008/11/how-to-monitor-network-switch-and-ports-using-nagios/comment-page-1/#comment-24384</link>
		<dc:creator>sawsen</dc:creator>
		<pubDate>Tue, 01 Dec 2009 11:37:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=247#comment-24384</guid>
		<description>Hi,
Always i have: check_mrtgtraf: Impossible d&#039;ouvrir le fichier de log de MRTG
In the configuration of switch I have:
check_command                        check_local_mrtgtraf!/var/lib/mrtg/192.168.1.253_1.log!AVG!1000000,1000000!5000000,5000000!10
but in var/lib/mrtg i don&#039;t have a file 192.168.1.253_1.log
Can someone help me?
thank you in advance</description>
		<content:encoded><![CDATA[<p>Hi,<br />
Always i have: check_mrtgtraf: Impossible d&#8217;ouvrir le fichier de log de MRTG<br />
In the configuration of switch I have:<br />
check_command                        check_local_mrtgtraf!/var/lib/mrtg/192.168.1.253_1.log!AVG!1000000,1000000!5000000,5000000!10<br />
but in var/lib/mrtg i don&#8217;t have a file 192.168.1.253_1.log<br />
Can someone help me?<br />
thank you in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Norman Paterson</title>
		<link>http://www.thegeekstuff.com/2008/11/how-to-monitor-network-switch-and-ports-using-nagios/comment-page-1/#comment-24272</link>
		<dc:creator>Norman Paterson</dc:creator>
		<pubDate>Mon, 30 Nov 2009 15:38:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.thegeekstuff.com/?p=247#comment-24272</guid>
		<description>Where is the mapping between snmp port numbers and switch port numbers defined?  It&#039;s simple enough for the first 24 ports, but my 2950 then has two more ports labelled 1 and 2 (ie duplicating the first 2 port numbers).  If I use snmpwalk to see what ports are being monitored, I get 28 in all:

# snmpwalk -v1 -c public my_switch -m ALL .1 &#124; grep ifOperStatus
RFC1213-MIB::ifOperStatus.1 = INTEGER: down(2)
RFC1213-MIB::ifOperStatus.2 = INTEGER: down(2)
RFC1213-MIB::ifOperStatus.3 = INTEGER: down(2)
...
RFC1213-MIB::ifOperStatus.26 = INTEGER: down(2)
RFC1213-MIB::ifOperStatus.27 = INTEGER: up(1)
RFC1213-MIB::ifOperStatus.28 = INTEGER: up(1)

I&#039;ve not been able to find this information from the usual sources (ie Google, Cisco).</description>
		<content:encoded><![CDATA[<p>Where is the mapping between snmp port numbers and switch port numbers defined?  It&#8217;s simple enough for the first 24 ports, but my 2950 then has two more ports labelled 1 and 2 (ie duplicating the first 2 port numbers).  If I use snmpwalk to see what ports are being monitored, I get 28 in all:</p>
<p># snmpwalk -v1 -c public my_switch -m ALL .1 | grep ifOperStatus<br />
RFC1213-MIB::ifOperStatus.1 = INTEGER: down(2)<br />
RFC1213-MIB::ifOperStatus.2 = INTEGER: down(2)<br />
RFC1213-MIB::ifOperStatus.3 = INTEGER: down(2)<br />
&#8230;<br />
RFC1213-MIB::ifOperStatus.26 = INTEGER: down(2)<br />
RFC1213-MIB::ifOperStatus.27 = INTEGER: up(1)<br />
RFC1213-MIB::ifOperStatus.28 = INTEGER: up(1)</p>
<p>I&#8217;ve not been able to find this information from the usual sources (ie Google, Cisco).</p>
]]></content:encoded>
	</item>
</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced
Content Delivery Network via Amazon Web Services: CloudFront: static.thegeekstuff.com

Served from: www.thegeekstuff.com @ 2012-02-09 13:33:36 -->
