Fw: SNMP and Argus question

Jeremy Kister argus-01 at jeremykister.com
Mon Sep 20 02:10:58 EDT 2004


On Sunday, September 19, 2004 9:05 PM, Joe G wrote:
> Is there a was to use snmp with argus and not use an oid.  I want to
> monitor snmp to make sure specific processes are running and notify me if
> they fail.

you need an oid to talk snmp.  this oid may be dotted decimal, or
alphanumerical.

> proc named 1 1
> proc apache
> proc sendmail

Assuming you're using Net-SNMP (ucd-snmp's big brother), the oid for these
objects depend on where they are in relation to other stuff in your
snmp.conf.

you'll want: .1.3.6.1.4.1.2021.2.1.5.<something>

you can figure it out by walking .1.3.6.1.4.1.2021.2.1
# snmpwalk -v 1 -c public localhost ..1.3.6.1.4.1.2021.2.1.2
(substituting public for your public community name, of course)

for example, on my system, Net-SNMP ships with 'mountd', 'ntalkd', and
'sendmail' being monitored.

mickey> snmpwalk -v 1 -c public localhost .1.3.6.1.4.1.2021.2.1.2
UCD-SNMP-MIB::prNames.1 = STRING: mountd
UCD-SNMP-MIB::prNames.2 = STRING: ntalkd
UCD-SNMP-MIB::prNames.3 = STRING: sendmail

this means:
to monitor mountd: .1.3.6.1.4.1.2021.2.1.5.1
to monitor ntalkd: .1.3.6.1.4.1.2021.2.1.5.2
to monitor sendmail: .1.3.6.1.4.1.2021.2.1.5.3


Jeremy Kister
http://jeremy.kister.net/



More information about the Arguslist mailing list