check_snmp timeout
Karl DeBisschop
karl at debisschop.net
Wed May 7 12:36:05 CEST 2003
On Wed, 2003-05-07 at 04:33, Fredrik Wänglund wrote:
> Yes I found this myself a week ago. Here's the answer:
>
> Subhendu Ghosh wrote:
>
> This is a bug -
>
> http://sourceforge.net/tracker/index.php?func=detail&aid=683235&group_id=29880&atid=397597
>
Back on 9 Feb I asked for reports onhistorical support of the -t switch
in ucd-snmp. Not a single response as yet.
Unless a RH6.2 or older user answers that question for me, the fix will
need to wait unitl I can pull down an old set of sources to find out.
Once I have that info, the fix is easy and will go into the stable and
devel (HEAD) CVS braches.
>
> /FredrikW
>
> Francesc Guasch wrote:
>
> > Hi. I'm checking the net usage of a router using apan
> > with nagios. I found that sometimes the check times
> > out and the -t parameter of the check_snmp plugin
> > isn't working.
> >
> > I changed snmp.sh source of apan, so there is a -t
> > for check_snmp:
> >
> > VALUE=`$PLUGINSDIR/check_snmp -t 60 -H $HOST -C $COMM -o $OID`
> >
> > But it did the same, so I tried from the command line:
> >
> > $ time /usr/lib/nagios/plugins/check_snmp -H ROUTER -C public
> > -o .1.3.6.1.2.1.2.2.1.16.9 -t 20
> > SNMP problem - No data recieved from host
> > CMD: /usr/bin/snmpget -m ALL -v 1 -c public ROUTER:161
> > .1.3.6.1.2.1.2.2.1.16.9
> > real 0m6.141s
> >
> > As you can see, it gives up quite soon.
> >
> > I fixed it a little adding a second check of snmp in the
> > snmp.sh file:
> >
> >
> > This is:
> >
> > redhat-release-7.3-1
> > nagios-1.0-1
> > check_snmp (nagios-plugins 1.3.0) 1.24
> > net-snmp-5.0.6-8.80.2
> >
> >
> >
> >
> > -------------------------------------------------------
> > Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
> > The only event dedicated to issues related to Linux enterprise solutions
> > www.enterpriselinuxforum.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
>
>
>
>
>
> -------------------------------------------------------
> Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
> The only event dedicated to issues related to Linux enterprise solutions
> www.enterpriselinuxforum.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
-------------------------------------------------------
Enterprise Linux Forum Conference & Expo, June 4-6, 2003, Santa Clara
The only event dedicated to issues related to Linux enterprise solutions
www.enterpriselinuxforum.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