Arun,
thanks for you reply
I tried that, but i got foll error :
-----------------------------------------------------------------------------------------------
ERROR: Target[db][_IN_] '.1.3.6.1.4.1.1977.22.4.1.4.1.1.17.1.
$target->[4]{$mode} ' evaluated to '0.13.61.41.197722.41.41.117.10' instead of
a number
ERROR: Target[db][_OUT_] '.1.3.6.1.4.1.1977.22.4.1.4.1.1.17.1.
$target->[4]{$mode} ' evaluated to '0.13.61.41.197722.41.41.117.10' instead of
a number
-----------------------------------------------------------------------------------------------
I gone through mrtg-reference manual and found something related to our problem.
i.e
Explicit OIDs
You can also explicitly define which OID to query by using the following
syntax 'OID_1&OID_2:[EMAIL PROTECTED]' The following example will retrieve
error counts for input and output on interface 1. MRTG needs to graph two
variables, so you need to specify two OID's such as temperature and humidity or
error input and error output. Example:
Target[ezwf]: 1.3.6.1.2.1.2.2.1.14.1&1.3.6.1.2.1.2.2.1.20.1:[EMAIL
PROTECTED]
---------------------------
but we have to monitor only one OID, as the above example shows for two OIDS.
Please let me know any other way to do it
pls help............and thanks
Subbu
Arun Kumar <[EMAIL PROTECTED]> wrote:
Hope the following will help you..
create a directory to keep your mrtg log , png and html files.
#mkdir -p /mrtg/oracle
Make a cfg file and add the following contents in the file,which in turns
polls and creates graphs for you.
WorkDir: /mrtg/oracle
Options[_]:growright, bits
RunAsDaemon: Yes
Interval: 5
Target[db]: .1.3.6.1.4.1.1977.22.4.1.4.1.1.17.1.1:[EMAIL PROTECTED]
MaxBytes[db]: 99999999999999
Title[db]: DB size (%)
PageTop[db]: Oracle DB size
Your Graphs will be present on director - /home/oracle
Regards
Arun Kumar
----- Original Message -----
From: "keshava subramanyam"
To:
Sent: Wednesday, May 05, 2004 4:48 PM
Subject: [mrtg] Using SNMP OID in MRTG
dear Friends,
I have a OID to get value of the 'Oracle DB file Size'
[EMAIL PROTECTED] root]# snmpget 192.168.1.68 public
.1.3.6.1.4.1.1977.22.4.1.4.1.1.17.1.1
enterprises.1977.22.4.1.4.1.1.17.1.1 = 183500800
now, i want to graph using MRTG by taking the above value
any help would be appreciated..
Thanks in advance
subbu
---------------------------------
Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs
--
Unsubscribe mailto:[EMAIL PROTECTED]
Archive http://www.ee.ethz.ch/~slist/mrtg
FAQ http://faq.mrtg.org Homepage http://www.mrtg.org
WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi