[mrtg] Re: Using SNMP OID in MRTG

keshava subramanyam subbusoftential at yahoo.com
Wed May 5 14:55:51 MEST 2004

thanks for you reply
I tried that, but i got foll error :
ERROR: Target[db][_IN_] '. $target->[4]{$mode} ' evaluated to '' instead of a number
ERROR: Target[db][_OUT_] '. $target->[4]{$mode} ' evaluated to '' instead of a number
I gone through mrtg-reference manual and found something related to our problem.
Explicit OIDs

   You can also explicitly define which OID to query by using the following syntax 'OID_1&OID_2:community at router' 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]: at myrouter


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


Arun Kumar <arun.kumar at estelcom.com> 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]: . at
MaxBytes[db]: 99999999999999
Title[db]: DB size (%)
PageTop[db]: Oracle DB size 

Your Graphs will be present on director - /home/oracle

Arun Kumar

----- Original Message -----
From: "keshava subramanyam" 
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'

[root at station52 root]# snmpget public
enterprises.1977. = 183500800
now, i want to graph using MRTG by taking the above value

any help would be appreciated..

Thanks in advance


Do you Yahoo!?
Win a $20,000 Career Makeover at Yahoo! HotJobs 

Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
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

More information about the mrtg mailing list