Re: [sentinix-list] pb with snmpget ??

Michel Blomgren <[email protected]>
Newsgroups gmane.linux.sentinix
Message-ID <[email protected]>
On Monday 05 January 2004 00:11, Thierry wrote:
> > You need to specify exact OID with snmpget, hrStorageIndex has another
> > value to it, an integer. (hrStorageIndex.1, e.g.).  Use "snmpwalk"
> > instead of snmpget for the operation you want to do.
>
> The exact OID of hrStorageIndex is .1.3.6.1.2.1.25.2.3.1.1 ... I did it,

No, it's not, you have to specify which storage # you want info for. Exact 
OIDs with snmpget means you have to specify _exact_ OIDs.

> but i do have the same error message. The operation i want to do is to use
> your script (check_space_with_snmp) on BSD box. If i use snmpwalk :

With check_space_with_snmp you don't have to know any OIDs, it's doing 
everything for you, you just have to choose which device # you want to check. 
Type this:  /usr/local/nagios/libexec/check_space_with_snmp -h

And try this:
/usr/local/nagios/libexec/check_space_with_snmp -H \
yourhostsnmphost -s

>
> [email protected]:/# snmpwalk -Ovq xxx.xxx.xxx.xxx -c public
> HOST-RESOURCES-MIB::hrStorageIndex 1
> 2
> 3
> 4
> 5
> 6
> 7
> 8
> 9
> 10

No that's wrong too. It should be:  HOST-RESOURCES-MIB::hrStorageIndex.1
Try this and see what you get:

$ snmpwalk -Ovq xxx.xxx.xxx.xxx -c public HOST-RESOURCES-MIB::hrStorageIndex

>
>
> [email protected]:/# snmpwalk -Ovq XXX.XXX.XXX.XXX -c public
> .1.3.6.1.2.1.25.2.3.1.1 1
> 2
> 3
> 4
> 5
> 6
> 7
> 8
> 9
> 10

Same here, why is the last 1 on it's own?, it should be 
.1.3.6.1.2.1.25.2.3.1.1.1.

>
> It's for Nagios ....
> Thx

	Michel
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.