Nagios mailing list (check_snmp) ....

Subhendu Ghosh sghosh at sghosh.org
Sat Mar 8 05:45:44 CET 2003


plugins version 1.3.0 has a verbose mode. (not the betas)


-sg

On Fri, 7 Mar 2003, Daniel Finn wrote:

>  Sure.  Here's the output using version 1.3-beta1:
> 
> [dfinn at sadqalx38 dfinn]$ /tmp/nagiosplug-1.3-beta1/plugins/check_snmp -v -H
> 10.209.68.92 -o .1.3.6.1.4.1.2021.2.1.100.1 -w 0 -c 0 -C sapublic -D :
> /tmp/nagiosplug-1.3-beta1/plugins/check_snmp: invalid option -- v
> check_snmp: Unknown argument: (null)
> 
> Usage: check_snmp -H <ip_address> -o <OID> [-w warn_range] [-c crit_range] 
>                   [-C community] [-s string] [-r regex] [-R regexi] [-t
> timeout]
>                   [-l label] [-u units] [-d delimiter] [-D output-delimiter]
>        check_snmp --help
>        check_snmp --version
> [dfinn at sadqalx38 dfinn]$ /tmp/nagiosplug-1.3-beta1/plugins/check_snmp -H
> 10.209.68.92 -o .1.3.6.1.4.1.2021.2.1.100.1 -w 0 -c 0 -C sapublic -D :
> SNMP WARNING - 0 
> [dfinn at sadqalx38 dfinn]$ /tmp/nagiosplug-1.3-beta1/plugins/check_snmp -H
> 10.209.68.92 -o .1.3.6.1.4.1.2021.2.1.100.1 -w 0 -c 0 -C sapublic -d :
> SNMP problem - No data recieved from host
> CMD: /usr/bin/snmpget -m ALL -v 1 10.209.68.92 sapublic
> .1.3.6.1.4.1.2021.2.1.100.1
> 
> 
> and here's netsaint-plugins version 1.2.9-4:
> 
> [dfinn at sadqalx38 dfinn]$ /usr/lib/netsaint/plugins/check_snmp --version
> check_snmp (netsaint-plugins 1.2.9-4) 1.21.2.5
> The netsaint plugins come with ABSOLUTELY NO WARRANTY. You may redistribute
> copies of the plugins under the terms of the GNU General Public License.
> For more information about these matters, see the file named COPYING.
> [dfinn at sadqalx38 dfinn]$ /usr/lib/netsaint/plugins/check_snmp -H
> 10.209.68.92 -o .1.3.6.1.4.1.2021.2.1.100.1 -w 0 -c 0 -C sapublic -D :
> SNMP WARNING - 0 
> [dfinn at sadqalx38 dfinn]$ /usr/lib/netsaint/plugins/check_snmp -H
> 10.209.68.92 -o .1.3.6.1.4.1.2021.2.1.100.1 -w 0 -c 0 -C sapublic -d :
> SNMP problem - No data recieved from host
> CMD: /usr/bin/snmpget -m ALL -v 1 10.209.68.92 sapublic
> .1.3.6.1.4.1.2021.2.1.100.1
> 
> 
> it doesn't appear that either of these like verbose mode or the -m flag.
> Should I be using a different version?
> -----Original Message-----
> From: Subhendu Ghosh
> To: Daniel Finn
> Sent: 3/7/03 11:39 AM
> Subject: RE: [Nagios-users] RE: Nagios mailing list (check_snmp) ....
> 
> Can you post the results running it with -v (verbose) output?
> 
> -sg
> 
> On Fri, 7 Mar 2003, Daniel Finn wrote:
> 
> > I don't remember seeing that email from you but that doesn't fix the
> > problem.
> > 
> > -----Original Message-----
> > From: Subhendu Ghosh [mailto:sghosh at sghosh.org]
> > Sent: Friday, March 07, 2003 10:35 AM
> > To: Daniel Finn
> > Cc: 'Rookwell at t-online.de'; 'nagios-users at lists.sourceforge.net'
> > Subject: Re: [Nagios-users] RE: Nagios mailing list (check_snmp) ....
> > 
> > 
> > >From my message on thursday..
> > 
> > 
> > ---------- Forwarded message ----------
> > Date: Thu, 6 Mar 2003 12:48:07 -0500 (EST)
> > From: Subhendu Ghosh <sghosh at sghosh.org>
> > To: "'nagios-users at lists.sourceforge.net'"
> >     <nagios-users at lists.sourceforge.net>
> > Subject: Re: [Nagios-users] problems using check_snmp to monitor
> sendmail
> > 
> > On Thu, 6 Mar 2003, Daniel Finn wrote:
> > 
> > <snip>
> > >
> > > Here's the problem I'm having with the snmp_check program.  It
> always
> > > reports back that it's either at a WARNING state or a CRITICAL
> state.
> > >
> > > [root at sadqalx38 plugins]# ./check_snmp -H 10.209.68.92 -o
> > > .1.3.6.1.4.1.2021.2.1.5.1 -w '1:10' -c '1:10' -C sapublic
> > > SNMP WARNING - 1
> > >
> > >
> > > Am I doing something wrong.  Shouldn't it return OK because the
> value 
> > it's
> > > returning is between 1 and 10?  Now if I change the warning and
> critical
> > > threshholds to be outside of what it's returning I get :
> > >
> > > [root at sadqalx38 plugins]# ./check_snmp -H 10.209.68.92 -o
> > > .1.3.6.1.4.1.2021.2.1.5.1 -w '3:10' -c '3:10' -C sapublic
> > > SNMP CRITICAL - *1*
> > >
> > > I've downloaded nagios-plugins-1.3.0.tar.gz and compiled them for
> this
> > > system and I still have the same problem.  If anyone could help that
> 
> > would
> > > be great.  Also, I'm not subscribed to this list so if you could
> reply 
> > to me
> > > via email that would be great.
> > >
> > 
> > The WARNING in the first case may be due to output on the stderr.
> > 
> > Try the command with with "-m : "  to prevent loading the mibs.
> > 
> > 
> > 
> > 
> > On Fri, 7 Mar 2003, Daniel Finn wrote:
> > 
> > > No,  I downloaded and compiled the most recent version they offer on
> thier
> > > site and it's still broken.  Unfortunately I wasn't getting much
> help from
> > > people on here so I wrote my own simple script that uses snmpget and
> > either
> > > returns OK or CRITICAL and why.
> > > 
> > > -----Original Message-----
> > > From: Rookwell at t-online.de [mailto:Rookwell at t-online.de]
> > > Sent: Friday, March 07, 2003 1:46 AM
> > > To: DFinn at studentadvantage.com
> > > Subject: Nagios mailing list (check_snmp) ....
> > > 
> > > 
> > > Hi, 
> > >  
> > > do you fix the check_snmp problem?
> > > I want to check the netbios-sessions on a w2k-server, but it always
> return
> > > "Warning....".
> > >  
> > > Rookwell (Germany)
> > >  
> > > Sorry, my english is not so good!
> > > 
> > > 
> > 
> > 
> 
> 

-- 




-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list