[prev in list] [next in list] [prev in thread] [next in thread] 

List:       net-snmp-users
Subject:    sysObjectID and exec
From:       Evgeny Rachlenko <evgeny.rachlenko () gmail ! com>
Date:       2012-06-19 22:48:27
Message-ID: CAOKZ+0Le9ux0ndKg_HnuZhNCVDdCrY=bXn9gKwH34p5zkQyRhg () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Good evening ,
I have 2 questions :

1st
when I define sysObject id

sysObjectID 1.3.6.1.4.1.8888.20.25

I see in the request

 1.3.6.1.4.1.8888.20.25.10

How can i avoid "10" ?


2nd :
# Now the Output has grown to two lines, and we can see the 'hi
# there.' output as the second line from our shell script.
#
# Note that you must alter the mib.txt file to be correct if you want
# the .50.* outputs above to change to reasonable text descriptions.

# Other ideas:
#
# exec .1.3.6.1.4.1.2021.51 ps /bin/ps
# exec .1.3.6.1.4.1.2021.52 top /usr/local/bin/top
# exec .1.3.6.1.4.1.2021.53 mailq /usr/bin/mailq
# exec .1.3.6.1.4.1.2021.54 sar -A 1 1 /bin/sar

I am trying to use example from the configuration file ,
and monitor few application by exec .

Which mib I have to edit in order to allow check my application such as
illustrated in example :

exec .1.3.6.1.4.1.2021.80.20 app1 /bin/app1 arg1
exec .1.3.6.1.4.1.2021.80.21 app1 /bin/app1 arg2
exec .1.3.6.1.4.1.2021.80.22 app1 /bin/app1 arg3
exec .1.3.6.1.4.1.2021.80.23 app1 /bin/app1 arg4
exec .1.3.6.1.4.1.2021.80.24 app1 /bin/app1 arg5

exec .1.3.6.1.4.1.2021.81.20 app2 /bin/app2 arg1
exec .1.3.6.1.4.1.2021.81.21 app2 /bin/app2 arg2
exec .1.3.6.1.4.1.2021.81.22 app2 /bin/app2 arg3
exec .1.3.6.1.4.1.2021.81.23 app2 /bin/app2 arg4
exec .1.3.6.1.4.1.2021.81.24 app2 /bin/app2 arg5

many thanks .



Evgeny Rachlenko
~~~_/)~~~_/)~~~_/)~~~_/)~~~
email: evgeny.rachlenko@gmail.com

[Attachment #5 (text/html)]

<div dir="ltr">Good evening ,<br>I have 2 questions :<br><br>1st <br>when I define \
sysObject id <br> <br clear="all">sysObjectID 1.3.6.1.4.1.8888.20.25<br><br>I see in \
the request <br><br> 1.3.6.1.4.1.8888.20.25.10 <br><br> How can i avoid \
&quot;10&quot; ?<br><br><br>2nd :<br># Now the Output has grown to two lines, and we \
can see the &#39;hi<br># there.&#39; output as the second line from our shell \
script.<br>#<br># Note that you must alter the mib.txt file to be correct if you \
want<br> # the .50.* outputs above to change to reasonable text \
descriptions.<br><br># Other ideas:<br># <br># exec .1.3.6.1.4.1.2021.51 ps /bin/ps \
<br># exec .1.3.6.1.4.1.2021.52 top /usr/local/bin/top<br># exec .1.3.6.1.4.1.2021.53 \
mailq /usr/bin/mailq<br> # exec .1.3.6.1.4.1.2021.54 sar -A 1 1 /bin/sar <br><br>I am \
trying to use example from the configuration file , <br>and monitor few application \
by exec .<br><br>Which mib I have to edit in order to allow check my application such \
as illustrated in example :<br> <br>exec .1.3.6.1.4.1.2021.80.20 app1 /bin/app1 \
arg1<br>exec .1.3.6.1.4.1.2021.80.21 app1 /bin/app1 arg2<br>exec \
.1.3.6.1.4.1.2021.80.22 app1 /bin/app1 arg3<br>exec .1.3.6.1.4.1.2021.80.23 app1 \
/bin/app1 arg4<br>exec .1.3.6.1.4.1.2021.80.24 app1 /bin/app1 arg5<br> <br>exec \
.1.3.6.1.4.1.2021.81.20 app2 /bin/app2 arg1<br> exec .1.3.6.1.4.1.2021.81.21 app2 \
/bin/app2 arg2<br> exec .1.3.6.1.4.1.2021.81.22 app2 /bin/app2 arg3<br>
exec .1.3.6.1.4.1.2021.81.23 app2 /bin/app2 arg4<br>
exec .1.3.6.1.4.1.2021.81.24 app2 /bin/app2 arg5<br>
<br>many thanks .<br><br><br><br><div dir="ltr">Evgeny \
Rachlenko<br>~~~_/)~~~_/)~~~_/)~~~_/)~~~<br>email: <a \
href="mailto:evgeny.rachlenko@gmail.com" \
target="_blank">evgeny.rachlenko@gmail.com</a><br><br></div><br> </div>



------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/

_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic