chech_snmp ..... how to determine OID

Marcus adesperateuser at googlemail.com
Fri Aug 22 13:18:46 CEST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi there,

Agnello George schrieb:

> I have installed nagios on one of my server and now i am tring to understand
> how to query my client machine using OIDs. But i just not understain one
> thing is how does one determine a a OID. I am following a tutorial by
> http://www.debianhelp.co.uk/linuxoids.htm . But what ai don't seem to
> understand is how do they determin a OID.
Common OIDs are standardized in MIB2, afaik.
Have a look here: http://www.et.put.poznan.pl/snmp/mib2/mib2.html

There are also RFC's covering the topic.

> Can some on help me with  the concept of OIDs and how do i come up with my
> own OID
What do you mean by "own OID"? I humbly and well-meaningly suggest
reading some documentation on SNMP, MIBs (especially MIB2) and OIDs.

> i followed the above tutorial and tried to query my clinet server to get the
> path where the disk is mounted  but was not successful here ..
> 
> [root at vps libexec]# ./check_snmp -H 121.XXX.XX.11 -C public -o
> 1.3.6.1.4.1.2021.9.1.2.1
> SNMP problem - No data received from host
could it be, that your host 121.XXX.XX.11 doesn't allow nagios to query
it on protocol UDP port 161. (Maybe a firewall is enabled.)
Is the snmp-server running? Is the community-string set right.

If you stick with the example and your firewall doesn't get in your way,
queries should work.

Hth,

Marcus
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIrqCW+qVaNRZYOakRAoNHAJ48vhM114ntqMvTPVoBvOu9wxyIwQCgvUTE
c8H8ycGO8TN+XkEkMRtGceE=
=wwLr
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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