<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:st1="urn:schemas-microsoft-com:office:smarttags" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 11 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]--><o:SmartTagType
 namespaceuri="urn:schemas-microsoft-com:office:smarttags" name="City"/>
<o:SmartTagType namespaceuri="urn:schemas-microsoft-com:office:smarttags"
 name="place"/>
<!--[if !mso]>
<style>
st1\:*{behavior:url(#default#ieooui) }
</style>
<![endif]-->
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman";}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {color:blue;
        text-decoration:underline;}
tt
        {font-family:"Courier New";}
span.EmailStyle18
        {mso-style-type:personal-reply;
        font-family:Arial;
        color:navy;}
@page Section1
        {size:8.5in 11.0in;
        margin:1.0in 66.25pt 1.0in 66.25pt;}
div.Section1
        {page:Section1;}
-->
</style>

</head>

<body lang=EN-US link=blue vlink=blue>

<div class=Section1>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Hi Mark,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Thank you for taking the time to respond
to my question – much appreciated!  <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>One more question branching off of your
input: to get *<b><span style='font-weight:bold'>every</span></b>* instance of ‘hrSWInstalledName.X’
would I need to write a shell script to serve as a wrapper program?  Or is
there a way to get check_snmp to do this for me?<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'>Many thanks,<o:p></o:p></span></font></p>

<p class=MsoNormal><font size=2 color=navy face=Arial><span style='font-size:
10.0pt;font-family:Arial;color:navy'><o:p> </o:p></span></font></p>

<div>

<p class=MsoNormal><i><font size=3 color=navy face=Arial><span
style='font-size:12.0pt;font-family:Arial;color:navy;font-style:italic'>---</span></font></i><font
color=navy face=Arial><span style='font-family:Arial;color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><i><font size=3 color=navy face=Arial><span
style='font-size:12.0pt;font-family:Arial;color:navy;font-style:italic'>Matt
Lozier</span></font></i><font color=navy><span style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><i><font size=3 color=navy face=Arial><span
style='font-size:12.0pt;font-family:Arial;color:navy;font-style:italic'>IT
Analyst</span></font></i><font color=navy><span style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><i><font size=3 color=navy face=Arial><span
style='font-size:12.0pt;font-family:Arial;color:navy;font-style:italic'>972.644.2581,
ext. 248</span></font></i><font color=navy><span style='color:navy'><o:p></o:p></span></font></p>

<p class=MsoNormal><i><font size=3 color=navy face=Arial><span
style='font-size:12.0pt;font-family:Arial;color:navy;font-style:italic'>972.661.2701 
fax<o:p></o:p></span></font></i></p>

<p class=MsoNormal><i><font size=3 color=navy face=Arial><span
style='font-size:12.0pt;font-family:Arial;color:navy;font-style:italic'><o:p> </o:p></span></font></i></p>

<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'><a href="http://www.spindletopoil.com/"><span
style='text-decoration:none'><img border=0 width=145 height=73 id="_x0000_i1026"
src="cid:image001.jpg@01C817D9.F12DC5B0"></span></a><o:p></o:p></span></font></p>

<p class=MsoNormal><font size=3 color=navy face="Times New Roman"><span
style='font-size:12.0pt;color:navy'> <o:p></o:p></span></font></p>

<p class=MsoNormal><font size=1 color=black face=Arial><span style='font-size:
8.0pt;font-family:Arial;color:black;text-transform:uppercase'>The information
contained in this message or any attached document is confidential and intended
only for the individual(s) or entity to which it is addressed.   The
information should be considered privileged and confidential. </span></font><font
size=1 color=black face="Courier New"><span style='font-size:8.0pt;font-family:
"Courier New";color:black;text-transform:uppercase'> </span></font><font
size=1 color=black face=Arial><span style='font-size:8.0pt;font-family:Arial;
color:black;text-transform:uppercase'>If you are not the intended recipient,
you are hereby notified that any unauthorized use of the information contained
in or transmitted with the communication, or dissemination, distribution, or
copying of this communication is strictly prohibited by law.  If you have
received this communication in error, please inform the sender by immediately
returning this communication to the sender and then deleting the original
message and any copy of it in your possession.</span></font><font color=black><span
style='color:black;text-transform:uppercase'><o:p></o:p></span></font></p>

</div>

<div>

<div class=MsoNormal align=center style='text-align:center'><font size=3
face="Times New Roman"><span style='font-size:12.0pt'>

<hr size=2 width="100%" align=center tabindex=-1>

</span></font></div>

<p class=MsoNormal><b><font size=2 face=Tahoma><span style='font-size:10.0pt;
font-family:Tahoma;font-weight:bold'>From:</span></font></b><font size=2
face=Tahoma><span style='font-size:10.0pt;font-family:Tahoma'> nagios-users-bounces@lists.sourceforge.net
[mailto:nagios-users-bounces@lists.sourceforge.net] <b><span style='font-weight:
bold'>On Behalf Of </span></b>mark.potter@academy.com<br>
<b><span style='font-weight:bold'>Sent:</span></b> Friday, October 26, 2007
1:20 PM<br>
<b><span style='font-weight:bold'>To:</span></b>
nagios-users@lists.sourceforge.net<br>
<b><span style='font-weight:bold'>Subject:</span></b> Re: [Nagios-users] SNMP
and Nagio newbie question.</span></font><o:p></o:p></p>

</div>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><o:p> </o:p></span></font></p>

<p class=MsoNormal><font size=3 face="Times New Roman"><span style='font-size:
12.0pt'><br>
</span></font><tt><font size=2 face="Courier New"><span style='font-size:10.0pt'>>
Hello,</span></font></tt> <br>
<tt><font size=2 face="Courier New"><span style='font-size:10.0pt'>>  </span></font></tt>
<br>
<tt><font size=2 face="Courier New"><span style='font-size:10.0pt'>>
I’ve got Nagios installed and configured managing several Linux and </span></font></tt><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'><br>
<tt><font face="Courier New">> Windows XP boxes.  On each of the
Windows machines I have the SNMP </font></tt><br>
<tt><font face="Courier New">> utilities installed, so that if I execute:</font></tt></span></font>
<br>
<tt><font size=2 face="Courier New"><span style='font-size:10.0pt'>>  </span></font></tt>
<br>
<tt><font size=2 face="Courier New"><span style='font-size:10.0pt'>> #>
snmpwalk –v 2c –c <community_string> <agent_name_or_ip>
</span></font></tt><br>
<tt><font size=2 face="Courier New"><span style='font-size:10.0pt'>>  </span></font></tt>
<br>
<tt><font size=2 face="Courier New"><span style='font-size:10.0pt'>> I
retrieve the contents of the MIB.  The print out lists lots of </span></font></tt><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'><br>
<tt><font face="Courier New">> useful information, among which is a listing
of each program that is</font></tt><br>
<tt><font face="Courier New">> installed on the Windows machine.  </font></tt></span></font>
<br>
<tt><font size=2 face="Courier New"><span style='font-size:10.0pt'>>  </span></font></tt>
<br>
<tt><font size=2 face="Courier New"><span style='font-size:10.0pt'>> My
question: Is there an easy way for Nagios to retrieve this </span></font></tt><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'><br>
<tt><font face="Courier New">> information, or do I need to write a shell
script that executes the </font></tt><br>
<tt><font face="Courier New">> SNMPwalk, and parses out the needed info?</font></tt></span></font>
<br>
<tt><font size=2 face="Courier New"><span style='font-size:10.0pt'>>  </span></font></tt>
<br>
<tt><font size=2 face="Courier New"><span style='font-size:10.0pt'>> Any and
all input is appreciated!</span></font></tt> <br>
<tt><font size=2 face="Courier New"><span style='font-size:10.0pt'>>  </span></font></tt>
<br>
<tt><font size=2 face="Courier New"><span style='font-size:10.0pt'>> Thank
you,</span></font></tt> <br>
<tt><font size=2 face="Courier New"><span style='font-size:10.0pt'>>  </span></font></tt>
<br>
<tt><font size=2 face="Courier New"><span style='font-size:10.0pt'>> ---</span></font></tt>
<br>
<tt><font size=2 face="Courier New"><span style='font-size:10.0pt'>> Matt
Lozier</span></font></tt> <br>
<tt><font size=2 face="Courier New"><span style='font-size:10.0pt'>> IT
Analyst</span></font></tt> <br>
<tt><font size=2 face="Courier New"><span style='font-size:10.0pt'>> 972.644.2581,
ext. 248</span></font></tt> <br>
<tt><font size=2 face="Courier New"><span style='font-size:10.0pt'>>
972.661.2701  fax</span></font></tt> <br>
<tt><font size=2 face="Courier New"><span style='font-size:10.0pt'>>  </span></font></tt>
<br>
<tt><font size=2 face="Courier New"><span style='font-size:10.0pt'>> [image
removed] </span></font></tt><br>
<tt><font size=2 face="Courier New"><span style='font-size:10.0pt'>>  </span></font></tt>
<br>
<tt><font size=2 face="Courier New"><span style='font-size:10.0pt'>> The
information contained in this message or any attached document </span></font></tt><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'><br>
<tt><font face="Courier New">> is confidential and intended only for the
individual(s) or entity to</font></tt><br>
<tt><font face="Courier New">> which it is addressed.   The information
should be considered </font></tt><br>
<tt><font face="Courier New">> privileged and confidential.  If you are
not the intended recipient,</font></tt><br>
<tt><font face="Courier New">> you are hereby notified that any unauthorized
use of the information</font></tt><br>
<tt><font face="Courier New">> contained in or transmitted with the
communication, or </font></tt><br>
<tt><font face="Courier New">> dissemination, distribution, or copying of
this communication is </font></tt><br>
<tt><font face="Courier New">> strictly prohibited by law.  If you have
received this communication</font></tt><br>
<tt><font face="Courier New">> in error, please inform the sender by
immediately returning this </font></tt><br>
<tt><font face="Courier New">> communication to the sender and then deleting
the original message </font></tt><br>
<tt><font face="Courier New">> and any copy of it in your possession.</font></tt></span></font>
<br>
<tt><font size=2 face="Courier New"><span style='font-size:10.0pt'>>
 -------------------------------------------------------------------------</span></font></tt><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'><br>
<tt><font face="Courier New">> This SF.net email is sponsored by: Splunk
Inc.</font></tt><br>
<tt><font face="Courier New">> Still grepping through log files to find
problems?  Stop.</font></tt><br>
<tt><font face="Courier New">> Now Search log events and configuration files
using <st1:City w:st="on"><st1:place w:st="on">AJAX</st1:place></st1:City> and
a browser</font></tt><br>
<tt><font face="Courier New">> Download your FREE copy of Splunk now
>> </font></tt></span></font><a href="http://get.splunk.com/"><tt><font
size=2 face="Courier New"><span style='font-size:10.0pt'>http://get.splunk.com/</span></font></tt></a><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'><br>
<tt><font face="Courier New">>
_______________________________________________</font></tt><br>
<tt><font face="Courier New">> Nagios-users mailing list</font></tt><br>
<tt><font face="Courier New">> Nagios-users@lists.sourceforge.net</font></tt><br>
<tt><font face="Courier New">> </font></tt></span></font><a
href="https://lists.sourceforge.net/lists/listinfo/nagios-users"><tt><font
size=2 face="Courier New"><span style='font-size:10.0pt'>https://lists.sourceforge.net/lists/listinfo/nagios-users</span></font></tt></a><font
size=2 face="Courier New"><span style='font-size:10.0pt;font-family:"Courier New"'><br>
<tt><font face="Courier New">> ::: Please include Nagios version, plugin
version (-v) and OS when </font></tt><br>
<tt><font face="Courier New">> reporting any issue. </font></tt><br>
<tt><font face="Courier New">> ::: Messages without supporting info will
risk being sent to /dev/null</font></tt></span></font> <br>
<br>
<tt><font size=2 face="Courier New"><span style='font-size:10.0pt'>check_snmp
-h in the libexec dir will give you the information that you seek. You will
need to define a command but check_snmp should do what you need it to do.</span></font></tt><o:p></o:p></p>

</div>

</body>

</html>