Convert Packeteer Rules to MRTG Graph

Posted on December 11, 2007. Filed under: Mikrotik, MRTG, Slackware, snmp |

Steps how to plot your BW utilization defined by Rule on Packeteer in to MRTG Picture.

1. Open your Dude (get it from

2. Add new device with IP information (Packeteer IP, example)

3. Go to Tools by right click your device and go to snmpwalk sub menu list,
Change the community of your machine snmp if it’s not default one (public).
Please ensure that your Packeeter allows your server to retrieve all information needed.

4. Enter this “prefix” on OID field
This would retrieve all information name of rules you’ve created In Packeteer.
Please select the last value after last “dot” shown by each rule you want (my example : 812487783 & 998681179).


5. Add those values with “prefix” (with dot at the end).
This prefix + values is gauge type which measured traffic in/out.
Try and see the result if you enter this OID’s prefix.

6. Create manually cfg file for this testing associate with both OIDs for in and out traffic :

7. Important : adding /8 (divide function) as packeteer measures & counts traffic in byte format.

Here the cfg file should be (in associate directory you wanted to be) :

WorkDir: /var/www/htdocs/usage/testing
Options[_]: gauge, bits, growright
Refresh: 300
WriteExpires: Yes

# testing International Usage

Target[testing]: /8
MaxBytes[testing]: 16000
SetEnv[testing]: MRTG_INT_IP=”” MRTG_INT_DESCR=”testing”
Title[testing]: Traffic Analysis testing
PageTop[testing]: <H1>Traffic testing </H1>
<TR><TD>Description:</TD><TD>Traffic Analysis testing</TD></TR>
<TR><TD>Max Speed:</TD> <TD> … Kbps</TD></TR>
<TR><TD>Maintainer:</TD> <TD>SID Techincal Engineer</TD></TR>

9. Run this : /usr/local/mrtg/bin/mrtg /var/mrtg/cfg/hotels/testing.cfg to ensure that’s cfg file OK.
If nothing happen, please check IP, SNMP community and firewall might changed recently.

10. Ensure as well this cfg file added to your crontab file to be retrieve
and plot into MRTG picture in certain period you wanted to be. my example is 5 minutes interval

*/5 * * * * /usr/local/mrtg/bin/mrtg /var/mrtg/cfg/hotels/testing.cfg
a. rahman isnaini r.sutan


Make a Comment

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

2 Responses to “Convert Packeteer Rules to MRTG Graph”

RSS Feed for tukang-tukang oprek Comments RSS Feed

Pa Rahman.. salam Kenal..

Terima kasih banyak postingnya sangat membantu.. kebetulan saya bekerja untuk packeteer.



Salam kenal juga.
Syukurlah tulisan disini dapat membantu dalam bekerja.
Position dimana ? indonesia apa luar negeri ?

a. rahman isnaini r.sutan

Where's The Comment Form?

Liked it here?
Why not try sites on the blogroll...

%d bloggers like this: