<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4916.2300" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=266113006-18072002><FONT face="Courier New"
size=2>Li,</FONT></SPAN></DIV>
<DIV><SPAN class=266113006-18072002><FONT face="Courier New"
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=266113006-18072002><FONT face="Courier New" size=2>I forget,
but are you running Linux or Solaris?</FONT></SPAN></DIV>
<DIV><SPAN class=266113006-18072002><FONT face="Courier New"
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=266113006-18072002><FONT face="Courier New" size=2>If Solaris,
the most likely answer is that snmpget, when invoked by check_snmp, doesn't know
where libz.so and libcrypto.so reside. This is a library path
issue.</FONT></SPAN></DIV>
<DIV><SPAN class=266113006-18072002><FONT face="Courier New"
size=2></FONT></SPAN> </DIV>
<DIV><FONT face="Courier New"><SPAN class=266113006-18072002><FONT
size=2>With Solaris 8, this can easily be fixed by running "crle" to
update your system-wide library search path. </FONT></SPAN><SPAN
class=266113006-18072002><FONT size=2>On Solaris 2.6 you may need to create
symlinks to your libz.so and libcrypto.so files in
/usr/lib.</FONT></SPAN></FONT></DIV>
<DIV><SPAN class=266113006-18072002><FONT face="Courier New"
size=2></FONT></SPAN> </DIV>
<DIV><FONT face="Courier New"><SPAN class=266113006-18072002></SPAN><SPAN
class=266113006-18072002></SPAN><SPAN class=266113006-18072002><FONT
size=2></FONT></SPAN></FONT> </DIV>
<DIV><SPAN class=266113006-18072002><FONT face="Courier New" size=2>Hope this
helps,</FONT></SPAN></DIV>
<DIV><SPAN class=266113006-18072002><FONT face="Courier New" size=2>Jackson
Sie</FONT></SPAN></DIV>
<DIV><SPAN class=266113006-18072002><FONT face="Courier New" size=2>Senior
Architect</FONT></SPAN></DIV>
<DIV><SPAN class=266113006-18072002><FONT face="Courier New" size=2>Quadrix
Solutions, Inc.</FONT></SPAN></DIV>
<DIV><SPAN class=266113006-18072002><FONT size=2><FONT face="Courier New">em:
</FONT><FONT face="Courier New"
color=#000000>jsie@quadrix.com</FONT></FONT></SPAN></DIV>
<DIV><SPAN class=266113006-18072002><FONT face="Courier New"
size=2></FONT></SPAN> </DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B>
nagiosplug-help-admin@lists.sourceforge.net
[mailto:nagiosplug-help-admin@lists.sourceforge.net]<B>On Behalf Of </B>Qiang,
Li<BR><B>Sent:</B> Wednesday, July 17, 2002 6:35 PM<BR><B>To:</B>
'nagiosplug-help@lists.sourceforge.net'<BR><B>Subject:</B> [Nagiosplug-help]
check_snmp<BR><BR></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=410261822-17072002>Hi,
</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=410261822-17072002></SPAN></FONT></FONT> </DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN class=410261822-17072002>I try to use
check_snmp to get the free memory from a network devices, and I am able to use
snmpget, see below:</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial><FONT size=2><SPAN
class=410261822-17072002></SPAN></FONT></FONT> </DIV>
<DIV><SPAN class=410261822-17072002></SPAN><FONT face=Arial><FONT size=2><SPAN
class=410261822-17072002>$</SPAN>snmpget -c <SPAN
class=410261822-17072002>public 1.1.1.1</SPAN>
.1.3.6.1.4.1.1872.2.1.8.12.2.0<SPAN class=410261822-17072002>
</SPAN></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=410261822-17072002>SNMPv2-SMI::enterprises.1872.2.1.8.12.2.0 =
Counter32: 148430761</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=410261822-17072002></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=410261822-17072002>and here's what
check_snmp and output</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=410261822-17072002></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=410261822-17072002>$check_snmp -H
1.1.1.1 -o .1.3.6.1.4.1.1872.2.1.8.12.2.0<SPAN class=410261822-17072002> -w
100000000 -c 50000000 -C public</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=410261822-17072002><SPAN
class=410261822-17072002>SNMP problem - No data received from host<BR>CMD:
/usr/local/bin/snmpget -m ALL -v 1 1.1.1.1 public
.1.3.6.1.4.1.1872.2.1.8.12.2.0</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=410261822-17072002><SPAN
class=410261822-17072002></SPAN></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=410261822-17072002><SPAN
class=410261822-17072002>What I want is when the memory less 100000000 set to
warning, and less 50000000 set to critical.</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=410261822-17072002><SPAN
class=410261822-17072002></SPAN></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=410261822-17072002><SPAN
class=410261822-17072002>Any help would be
appreciated.</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=410261822-17072002><SPAN
class=410261822-17072002></SPAN></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=410261822-17072002><SPAN
class=410261822-17072002>Thanks,</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN class=410261822-17072002><SPAN
class=410261822-17072002></SPAN></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=410261822-17072002><SPAN
class=410261822-17072002>Li</SPAN></SPAN></FONT></DIV></BLOCKQUOTE></BODY></HTML>