<!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.4134.600" name=GENERATOR></HEAD>
<BODY>
<DIV>
<DIV><SPAN class=079222918-18072002><FONT face=Arial color=#0000ff size=2>Thanks
Jsckson, yes, I am running Solaris 8, but when I run crle, here's the
output:</FONT></SPAN></DIV>
<DIV><FONT face=Tahoma size=2># crle</FONT></DIV>
<DIV><FONT face=Tahoma><FONT size=2>Default configuration file
(/var/ld/ld.config) not found<BR> </FONT></FONT><FONT face=Tahoma><FONT
size=2>Default Library Path (ELF): /usr/lib (system
default)<BR> Trusted Directories (ELF):
/usr/lib/secure (system default)</FONT></FONT></DIV>
<DIV><FONT face=Tahoma size=2></FONT> </DIV>
<DIV><SPAN class=079222918-18072002><FONT face=Tahoma size=2>and I do have
libz.so under /usr/lib, but I don't have libcrypto.so in the
system.</FONT></SPAN></DIV>
<DIV><SPAN class=079222918-18072002><FONT face=Tahoma
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=079222918-18072002><FONT face=Tahoma size=2>Do you think it may
also caused by where the MIB directory is? Here's part of my
snmp.conf</FONT></SPAN></DIV>
<DIV><SPAN class=079222918-18072002><FONT face=Tahoma
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=079222918-18072002><FONT face=Tahoma size=2>mibdirs
/usr/local/share/snmp/mibs<BR>mibs +ALTEON-PRIVATE-MIBS</FONT></SPAN></DIV>
<DIV><SPAN class=079222918-18072002><FONT face=Tahoma
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=079222918-18072002><FONT face=Tahoma size=2>The check_snmp (see
previous email) is trying to check alteon system free
memory.</FONT></SPAN></DIV>
<DIV><SPAN class=079222918-18072002><FONT face=Tahoma
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=079222918-18072002><FONT face=Tahoma size=2>When I run <FONT
face=Arial>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></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=079222918-18072002><FONT face=Tahoma size=2><FONT
face=Arial><SPAN class=410261822-17072002>it seems like it uses command
"</SPAN></FONT></FONT></SPAN></DIV>
<DIV><SPAN class=079222918-18072002><FONT face=Arial
size=2>/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</FONT></SPAN></DIV>
<DIV><SPAN class=079222918-18072002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=079222918-18072002><FONT face=Arial size=2>to get the output
(correct me if I am wrong), so I try to run "snmpget -m ALL -v
1 1.1.1.1 public .1.3.6.1.4.1.1872.2.1.8.12.2.0", and it tells no
community name specified.</FONT></SPAN></DIV>
<DIV><SPAN class=079222918-18072002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=079222918-18072002><FONT face=Arial size=2>Why check_snmp use
snmpget without the -c option? and in fact, the -c option has to be put before
-m option in order it to work.</FONT></SPAN></DIV>
<DIV><SPAN class=079222918-18072002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=079222918-18072002><FONT face=Arial size=2>Thanks
again,</FONT></SPAN></DIV>
<DIV><SPAN class=079222918-18072002><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=079222918-18072002></SPAN><FONT face=Tahoma><SPAN
class=079222918-18072002><FONT face=Arial color=#0000ff
size=2>Li</FONT></SPAN></FONT></DIV></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> Jackson Sie
[mailto:jsie@quadrix.com]<BR><B>Sent:</B> Wednesday, July 17, 2002 11:44
PM<BR><B>To:</B> Qiang, Li;
nagiosplug-help@lists.sourceforge.net<BR><B>Subject:</B> RE: [Nagiosplug-help]
check_snmp<BR><BR></FONT></DIV>
<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></BLOCKQUOTE></BODY></HTML>