[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nagios-users
Subject:    Re: [Nagios-users] Monitor Cisco Uptime
From:       "Will Bashlor" <wbashlor () atcnetworks ! net>
Date:       2012-10-22 4:38:37
Message-ID: AB1489039053094C8B6DCF69A22A115C06BD8E62 () atcmail1 ! atc ! local
[Download RAW message or body]

--===============7808896512485032102==
Content-class: urn:content-classes:message
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01CDB00E.FE476D8C"

This is a multi-part message in MIME format.

[Attachment #2 (text/plain)]

Thanks Jörg,

 

Thanks for the check uptime plugin script. I did get that plugin to work but it \
doesn't work with the "-c mycommunity" switch, it still uses the default "public" \
community. The host switch "-h x.x.x.x" works fine. Maybe I'm doing something wrong?

 

In Nagios, the output shows:

 

OK - 199.180.176.2: sysUpTime is 68 days, 22:48:07.08

 

How can I get it to simply show:

 

68 days, 22:48:07.08

 

That would be much easier to scan a list in my uptime service group.

 

I'll have to use a test switch and play with the alerts. Thanks again.

 

-Will

 

 

From: Jörg Linge [mailto:pitchfork@ederdrom.de] 
Sent: Saturday, October 20, 2012 3:05 PM
To: Nagios Users List
Subject: Re: [Nagios-users] Monitor Cisco Uptime

 

https://github.com/mludvig/nagios-plugins/blob/268693c0afa2775c719584212433164cd846fe23/check_snmp_uptime.pl






Joerg

Am 20.10.2012 um 20:14 schrieb "Will Bashlor" <wbashlor@atcnetworks.net>:

	The thought in my mind for querying uptime via snmp had 2 purposes, 1.) to \
(possibly) alert on no snmp response, and 2.) To display uptime in a list format on \
Nagios for my network engineers/techs to view.

	 

	I like the idea of alerting on uptime < 1 day. But wouldn't the reply need to be in \
a numbered time format only? I guess my mind is in Cacti threshold plugin mode. For \
example:

	 

	If the snmp respond replies with 4579200 in seconds (53 days), and I want to alert \
on uptime less than 1 day then my alert value would be <86400, correct? If this is \
true how can this be done when the response is:

	 

	"iso.3.6.1.2.1.1.3.0 = Timeticks: (447923619) 51 days, 20:13:56.19"

	 

	Or can I alert based on 447923619 only? It appears the 447923619 is seconds with the \
last 2 digits being hundredths. Secondly, how can I simply display "51 days, \
20:13:56.19" In Nagios? I know these are basic questions, I have a lot to learn and \
will continue to research every day.

	 

	We have ssh only enabled for obvious security reasons, so that would work as well \
for monitoring device vitals.

	 

	I'm still interested in what other Network Managers as myself are using, services \
wise to monitor critical core equipment vitals other than ping, if anyone else would \
like to share.

	 

	Today we are using an older version of whatsup with a little over 1000 \
devices/services (includes CPE) with ping only. I'm looking to Nagios as a possible \
future replacement. Love it so far, just a bit of a learning curve. NagiosQL helps me \
a lot with config files.

	 

	Thanks for the response.

	 

	-Will

	 

	From: Fernando Feijo [mailto:ffeijo@ffeijo.com] 
	Sent: Saturday, October 20, 2012 12:19 PM
	To: Nagios Users List
	Subject: Re: [Nagios-users] Monitor Cisco Uptime

	 

	>>>What other services do you recommend monitoring for up/down status besides ping?

	You could also do ssh or even telnet, if you have them enabled.

	 

	You did not ask, but a comment on uptime. You can use it to detect router bounces, \
detecting rogue reloads or perhaps system crashes. I have it to go to critical \
whenever the uptime is below X minutes, and email out. Network tests such as ping, \
snmp or ssh availability might miss a quick box's trip down, but uptime will always \
catch a reload.

	 

	Fernando

	 

	**

	On Oct 20, 2012, at 11:09 AM, Will Bashlor <wbashlor@atcnetworks.net> wrote:

	
	
	
	

	Hi list,

	 

	Well I'm not sure which of the steps below worked but it started working in Nagios \
and the check_snmp command works from cli. I'd still be interested in a guide or the \
correct steps I should have taken. I'm on a test vm now but will be reinstalling on a \
production vm later.

	 

	root@atcdeb01:~# /usr/lib/nagios/plugins/check_snmp -H x.x.x.x -C public -o \
sysUpTime.0

	SNMP OK - Timeticks: (448261008) 51 days, 21:10:10.08 |

	root@atcdeb01:~#

	 

	Now I've got to figure out a couple more things. Feel free to respond if you can \
help.

	 

	1.)    Even though ping and uptime show ok, the test Cisco host status went to \
"PENDING" in Nagios…?

	2.)    Not sure how to get rid of part of the response I don't need for uptime. I \
only need "51 days, 21:10:10.08" under Status Information in Nagios

	 

	Another thing, I'm looking for advice. For monitoring up/down status' for core Cisco \
routers/switches my idea is to monitor snmp response and ping, but I don't want to \
get 2 alerts from 1 device if it were to go down.

	 

	So can I get ping or snmp alerts if they go down individually and only one alert if \
the device is down hard? What other services do you recommend monitoring for up/down \
status besides ping?

	 

	Or is ping sufficient enough in your opinion? I may configure text alerts only on \
ping and maybe just email alerts for snmp, or no alerts for snmp. I like seeing \
uptime in Nagios though, it makes it easy to see if any devices have just rebooted \
after an event.

	 

	I continue to research every day but I am interested in your thoughts and opinions \
if you'd like to share.

	 

	Oh, can I integrate Nagios with my Cacti? Sorry for all the questions but will be \
very grateful for any responses.

	 

	Thanks all very much,

	 

	-Will

	 

	From: Will Bashlor [mailto:wbashlor@atcnetworks.net <http://atcnetworks.net> ] 
	Sent: Saturday, October 20, 2012 11:23 AM
	To: Nagios Users List
	Subject: [Nagios-users] Monitor Cisco Uptime

	 

	Hi list,

	 

	I've searched to no avail, this is a basic question with hopefully a simple answer.

	 

	I'm a long time cacti user (windows), I know basic Linux knowledge, new to Nagios. I \
have a fresh install of Debian stable (squeeze) with apt-get installed Webmin, ssh, \
apache2, and Nagios 3.2.1, nagiosql, and whatever dependencies. I am trying to setup \
monitoring of our core Cisco routers and switches. I have configured 2 services, ping \
and uptime. Ping works great of course but I can't get a valid response from \
check_snmp for uptime. Here's the command I've tried from the command line:

	 

	root@atcdeb01:/# /usr/lib/nagios/plugins/check_snmp -H x.x.x.x -C public -o \
sysUpTime.0

	no output, it just hangs

	 

	I've also tried

	 

	root@atcdeb01:/# /usr/bin/snmpget -v2c -c public x.x.x.x sysUpTime.0

	sysUpTime.0: Unknown Object Identifier (Sub-id not found: (top) -> sysUpTime)

	 

	Obviously with the correct IP and community string

	 

	If I try this I get:

	 

	root@atcdeb01:/# /usr/bin/snmpget -v2c -c public x.x.x.x 1.3.6.1.2.1.1.3.0

	iso.3.6.1.2.1.1.3.0 = Timeticks: (447923619) 51 days, 20:13:56.19

	 

	So using OID names aren't working. I've researched with not much luck.

	 

	From here and various other sites I've tried…

	http://wiki.debian.org/SNMP <http://wiki.debian.org/SNMP> 

	 

	Added "deb http://ftp.us.debian.org/debian <http://ftp.us.debian.org/debian>  \
squeeze main contrib non-free" to /etc/apt/sources.list

	 

	apt-get update

	 

	Then apt-get install snmp-mibs-downloader
	 
	Then "download-mibs". Restart snmp.
	 
	All to no avail. What am I doing wrong? Is there a simple guide I can use so \
check_snmp works with oid names for Cisco and other devices?  
	Thanks for any help you can provide.
	 

	Best Regards,

	 

	-Will

	 

	------------------------------------------------------------------------------
	Everyone hates slow websites. So do we.
	Make your web apps faster with AppDynamics
	Download AppDynamics Lite for free today:
	http://p.sf.net/sfu/appdyn_sfd2d_oct_______________________________________________ \
<http://p.sf.net/sfu/appdyn_sfd2d_oct_______________________________________________> \
  Nagios-users mailing list
	Nagios-users@lists.sourceforge.net <mailto:Nagios-users@lists.sourceforge.net> 
	https://lists.sourceforge.net/lists/listinfo/nagios-users \
<https://lists.sourceforge.net/lists/listinfo/nagios-users>   ::: Please include \
Nagios version, plugin version (-v) and OS when reporting any issue.   ::: Messages \
without supporting info will risk being sent to /dev/null

	 

	------------------------------------------------------------------------------
	Everyone hates slow websites. So do we.
	Make your web apps faster with AppDynamics
	Download AppDynamics Lite for free today:
	http://p.sf.net/sfu/appdyn_sfd2d_oct

	_______________________________________________
	Nagios-users mailing list
	Nagios-users@lists.sourceforge.net
	https://lists.sourceforge.net/lists/listinfo/nagios-users
	::: Please include Nagios version, plugin version (-v) and OS when reporting any \
issue.   ::: Messages without supporting info will risk being sent to /dev/null


[Attachment #3 (text/html)]

<html xmlns:v="urn:schemas-microsoft-com:vml" \
xmlns:o="urn:schemas-microsoft-com:office:office" \
xmlns:w="urn:schemas-microsoft-com:office:word" \
xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" \
xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type \
content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 12 \
(filtered medium)"><base href="x-msg://614/"><style><!-- /* Font Definitions */
@font-face
	{font-family:Helvetica;
	panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
	{font-family:Helvetica;
	panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
	{font-family:Tahoma;
	panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
	{font-family:Consolas;
	panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
	{font-family:"\.HelveticaNeueUI";
	panose-1:0 0 0 0 0 0 0 0 0 0;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:purple;
	text-decoration:underline;}
pre
	{mso-style-priority:99;
	mso-style-link:"HTML Preformatted Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
	{mso-style-priority:99;
	mso-style-link:"Balloon Text Char";
	margin:0in;
	margin-bottom:.0001pt;
	font-size:8.0pt;
	font-family:"Tahoma","sans-serif";}
span.HTMLPreformattedChar
	{mso-style-name:"HTML Preformatted Char";
	mso-style-priority:99;
	mso-style-link:"HTML Preformatted";
	font-family:Consolas;}
span.BalloonTextChar
	{mso-style-name:"Balloon Text Char";
	mso-style-priority:99;
	mso-style-link:"Balloon Text";
	font-family:"Tahoma","sans-serif";}
span.apple-converted-space
	{mso-style-name:apple-converted-space;}
span.EmailStyle22
	{mso-style-type:personal;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
span.EmailStyle23
	{mso-style-type:personal-reply;
	font-family:"Calibri","sans-serif";
	color:#1F497D;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:8.5in 11.0in;
	margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
	{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div \
class=WordSection1><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks \
</span><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>Jörg</span><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>,<o:p></o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks for \
the check uptime plugin script. I did get that plugin to work but it doesn't work \
with the "-c mycommunity" switch, it still uses the default "public" community. The \
host switch "-h x.x.x.x" works fine. Maybe I'm doing something \
wrong?<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>In Nagios, \
the output shows:<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>OK - \
199.180.176.2: sysUpTime is 68 days, 22:48:07.08<o:p></o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>How can I \
get it to simply show:<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>68 days, \
22:48:07.08<o:p></o:p></span></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>That would \
be much easier to scan a list in my uptime service group.<o:p></o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I'll have \
to use a test switch and play with the alerts. Thanks again.<o:p></o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>-Will<o:p></o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p>&nbsp;</o:p></span></p><div><div \
style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p \
class=MsoNormal><b><span \
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span \
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Jörg Linge \
[mailto:pitchfork@ederdrom.de] <br><b>Sent:</b> Saturday, October 20, 2012 3:05 \
PM<br><b>To:</b> Nagios Users List<br><b>Subject:</b> Re: [Nagios-users] Monitor \
Cisco Uptime<o:p></o:p></span></p></div></div><p \
class=MsoNormal><o:p>&nbsp;</o:p></p><div><p class=MsoNormal><span \
style='font-size:11.5pt;font-family:".HelveticaNeueUI","serif"'><a \
href="https://github.com/mludvig/nagios-plugins/blob/268693c0afa2775c719584212433164cd \
846fe23/check_snmp_uptime.pl">https://github.com/mludvig/nagios-plugins/blob/268693c0a \
fa2775c719584212433164cd846fe23/check_snmp_uptime.pl</a></span><o:p></o:p></p></div><div><p \
class=MsoNormal><span \
style='font-size:11.5pt;font-family:".HelveticaNeueUI","serif"'><br><br></span><o:p></o:p></p></div><div><p \
class=MsoNormal style='margin-bottom:12.0pt'><span \
style='font-size:11.5pt;font-family:".HelveticaNeueUI","serif"'>Joerg<br></span><br>Am \
20.10.2012 um 20:14 schrieb &quot;Will Bashlor&quot; &lt;<a \
href="mailto:wbashlor@atcnetworks.net">wbashlor@atcnetworks.net</a>&gt;:<o:p></o:p></p></div><blockquote \
style='margin-top:5.0pt;margin-bottom:5.0pt;-webkit-text-size-adjust: auto'><div><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>The thought \
in my mind for querying uptime via snmp had 2 purposes, 1.) to (possibly) alert on no \
snmp response, and 2.) To display uptime in a list format on Nagios for my network \
engineers/techs to view.</span><o:p></o:p></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>&nbsp;</span><o:p></o:p></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I like the \
idea of alerting on uptime &lt; 1 day. But wouldn't the reply need to be in a \
numbered time format only? I guess my mind is in Cacti threshold plugin mode. For \
example:</span><o:p></o:p></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>&nbsp;</span><o:p></o:p></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>If the snmp \
respond replies with 4579200 in seconds (53 days), and I want to alert on uptime less \
than 1 day then my alert value would be &lt;86400, correct? If this is true how can \
this be done when the response is:</span><o:p></o:p></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>&nbsp;</span><o:p></o:p></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>"iso.3.6.1.2.1.1.3.0 \
= Timeticks: (447923619) 51 days, 20:13:56.19"</span><o:p></o:p></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>&nbsp;</span><o:p></o:p></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Or can I \
alert based on 447923619 only? It appears the 447923619 is seconds with the last 2 \
digits being hundredths. Secondly, how can I simply display "51 days, 20:13:56.19" In \
Nagios? I know these are basic questions, I have a lot to learn and will continue to \
research every day.</span><o:p></o:p></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>&nbsp;</span><o:p></o:p></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>We have ssh \
only enabled for obvious security reasons, so that would work as well for monitoring \
device vitals.</span><o:p></o:p></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>&nbsp;</span><o:p></o:p></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>I'm still \
interested in what other Network Managers as myself are using, services wise to \
monitor critical core equipment vitals other than ping, if anyone else would like to \
share.</span><o:p></o:p></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>&nbsp;</span><o:p></o:p></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Today we \
are using an older version of whatsup with a little over 1000 devices/services \
(includes CPE) with ping only. I'm looking to Nagios as a possible future \
replacement. Love it so far, just a bit of a learning curve. NagiosQL helps me a lot \
with config files.</span><o:p></o:p></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>&nbsp;</span><o:p></o:p></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Thanks for \
the response.</span><o:p></o:p></p><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>&nbsp;</span><o:p></o:p></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>-Will</span><o:p></o:p></p><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>&nbsp;</span><o:p></o:p></p><div><div \
style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p \
class=MsoNormal><b><span \
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span \
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Fernando Feijo [<a \
href="mailto:ffeijo@ffeijo.com">mailto:ffeijo@ffeijo.com</a>] <br><b>Sent:</b> \
Saturday, October 20, 2012 12:19 PM<br><b>To:</b> Nagios Users \
List<br><b>Subject:</b> Re: [Nagios-users] Monitor Cisco \
Uptime</span><o:p></o:p></p></div></div><p \
class=MsoNormal>&nbsp;<o:p></o:p></p><div><p class=MsoNormal>&gt;&gt;&gt;<span \
style='font-size:11.5pt;font-family:"Calibri","sans-serif";color:#1F497D'>What other \
services do you recommend monitoring for up/down status besides \
ping?</span><o:p></o:p></p></div><div><p class=MsoNormal>You could also do ssh or \
even telnet, if you have them enabled.<o:p></o:p></p></div><div><p \
class=MsoNormal>&nbsp;<o:p></o:p></p></div><div><p class=MsoNormal>You did not ask, \
but a comment on uptime. You can use it to detect router bounces, detecting rogue \
reloads or perhaps system crashes. I have it to go to critical whenever the uptime is \
below X minutes, and email out. Network tests such as ping, snmp or ssh availability \
might miss a quick box's trip down, but uptime will always catch a \
reload.<o:p></o:p></p></div><div><p \
class=MsoNormal>&nbsp;<o:p></o:p></p></div><div><p \
class=MsoNormal>Fernando<o:p></o:p></p></div><div><p \
class=MsoNormal>&nbsp;<o:p></o:p></p></div><p \
class=MsoNormal>**<o:p></o:p></p><div><div><p class=MsoNormal>On Oct 20, 2012, at \
11:09 AM, Will Bashlor &lt;<a \
href="mailto:wbashlor@atcnetworks.net">wbashlor@atcnetworks.net</a>&gt; \
wrote:<o:p></o:p></p></div><p class=MsoNormal><br><br><br><o:p></o:p></p><div><div><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Hi \
list,</span><o:p></o:p></p></div><div><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>&nbsp;</span><o:p></o:p></p></div><div><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Well I'm \
not sure which of the steps below worked but it started working in Nagios and the \
check_snmp command works from cli. I'd still be interested in a guide or the correct \
steps I should have taken. I'm on a test vm now but will be reinstalling on a \
production vm later.</span><o:p></o:p></p></div><div><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>&nbsp;</span><o:p></o:p></p></div><div><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>root@atcdeb01:~# \
/usr/lib/nagios/plugins/check_snmp -H x.x.x.x -C public -o \
sysUpTime.0</span><o:p></o:p></p></div><div><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>SNMP OK - \
Timeticks: (448261008) 51 days, 21:10:10.08 |</span><o:p></o:p></p></div><div><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>root@atcdeb01:~#</span><o:p></o:p></p></div><div><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>&nbsp;</span><o:p></o:p></p></div><div><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Now I've \
got to figure out a couple more things. Feel free to respond if you can \
help.</span><o:p></o:p></p></div><div><p class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>&nbsp;</span><o:p></o:p></p></div><div \
style='margin-left:.5in'><p class=MsoNormal style='text-indent:-.25in'><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>1.)</span><span \
style='font-size:7.0pt;color:#1F497D'>&nbsp;&nbsp;&nbsp;<span \
class=apple-converted-space>&nbsp;</span></span><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Even though \
ping and uptime show ok, the test Cisco host status went to "PENDING" in \
Nagios…?</span><o:p></o:p></p></div><div style='margin-left:.5in'><p \
class=MsoNormal style='text-indent:-.25in'><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>2.)</span><span \
style='font-size:7.0pt;color:#1F497D'>&nbsp;&nbsp;&nbsp;<span \
class=apple-converted-space>&nbsp;</span></span><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Not sure \
how to get rid of part of the response I don't need for uptime. I only need "51 days, \
21:10:10.08" under Status Information in Nagios</span><o:p></o:p></p></div><div><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>&nbsp;</span><o:p></o:p></p></div><div><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Another \
thing, I'm looking for advice. For monitoring up/down status' for core Cisco \
routers/switches my idea is to monitor snmp response and ping, but I don't want to \
get 2 alerts from 1 device if it were to go down.</span><o:p></o:p></p></div><div><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>&nbsp;</span><o:p></o:p></p></div><div><p \
class=MsoNormal><span \
style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>So can I \
get ping or snmp alerts if they go down individually and only one alert if the device \
is down hard? What other services do you recommend monitoring for up/down status \
besides ping?</span><o:p></o:p></p></div><div><p class=MsoNormal><span \


[Attachment #4 (--===============7808896512485032102==)]
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_sfd2d_oct

_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic