[Nagiosplug-help] check_snmp

Qiang, Li lqiang at verisign.com
Thu Jul 18 11:54:06 CEST 2002


Thanks Jsckson, yes, I am running Solaris 8, but when I run crle, here's the
output:
# crle
Default configuration file (/var/ld/ld.config) not found
  Default Library Path (ELF):   /usr/lib  (system default)
  Trusted Directories (ELF):    /usr/lib/secure  (system default)
 
and I do have libz.so under /usr/lib, but I don't have libcrypto.so in the
system.
 
Do you think it may also caused by where the MIB directory is? Here's part
of my snmp.conf
 
mibdirs  /usr/local/share/snmp/mibs
mibs +ALTEON-PRIVATE-MIBS
 
The check_snmp (see previous email) is trying to check alteon system free
memory.
 
When I run check_snmp -H 1.1.1.1 -o .1.3.6.1.4.1.1872.2.1.8.12.2.0 -w
100000000 -c 50000000 -C public
it seems like it uses command "
/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
 
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.
 
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.
 
Thanks again,
 
Li

-----Original Message-----
From: Jackson Sie [mailto:jsie at quadrix.com]
Sent: Wednesday, July 17, 2002 11:44 PM
To: Qiang, Li; nagiosplug-help at lists.sourceforge.net
Subject: RE: [Nagiosplug-help] check_snmp


Li,
 
I forget, but are you running Linux or Solaris?
 
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.
 
With Solaris 8, this can easily be fixed by running "crle" to update your
system-wide library search path. On Solaris 2.6 you may need to create
symlinks to your libz.so and libcrypto.so files in /usr/lib.
 
 
Hope this helps,
Jackson Sie
Senior Architect
Quadrix Solutions, Inc.
em: jsie at quadrix.com
 

-----Original Message-----
From: nagiosplug-help-admin at lists.sourceforge.net
[mailto:nagiosplug-help-admin at lists.sourceforge.net]On Behalf Of Qiang, Li
Sent: Wednesday, July 17, 2002 6:35 PM
To: 'nagiosplug-help at lists.sourceforge.net'
Subject: [Nagiosplug-help] check_snmp


Hi, 
 
I try to use check_snmp to get the free memory from a network devices, and I
am able to use snmpget, see below:
 
$snmpget -c public 1.1.1.1 .1.3.6.1.4.1.1872.2.1.8.12.2.0 
SNMPv2-SMI::enterprises.1872.2.1.8.12.2.0 = Counter32: 148430761
 
and here's what check_snmp and output
 
$check_snmp -H 1.1.1.1 -o .1.3.6.1.4.1.1872.2.1.8.12.2.0 -w 100000000 -c
50000000 -C public
SNMP problem - No data received from host
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
 
What I want is when the memory less 100000000 set to warning, and less
50000000 set to critical.
 
Any help would be appreciated.
 
Thanks,
 
Li

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20020718/fed6a567/attachment.html>


More information about the Help mailing list