Results 1 to 2 of 2

Thread: uisng mib in mrtg config

  1. #1

    uisng mib in mrtg config

    Hello,

    I'm trying to config mrtg to graphying the number of pages impressed on a printer Canon IR2200.

    After run "snmpwalk" i get the following value:

    ./snmpwalk -v 2c -c Community my_IP mib-2.43.10.2.1.4.1.1

    SNMPv2-SMI::mib-2.43.10.2.1.4.1.1 = Counter32: 25636
    So, I edit the mrtg config and I wrote this:

    Target[my IP_1]: mib-2.43.10.2.1.4.1.1:Community@my IP:
    SetEnv[my IP_1]: MRTG_INT_IP="my IP" MRTG_INT_DESCR="lnlanc0"
    MaxBytes[my IP_1]: 13107200
    Title[My IP_1]: Trafico para Canon - iR2200
    PageTop[my IP_1]: <H1>Trafico para Canon - iR2200</H1>
    <TABLE>
    <TR><TD>System:</TD> <TD>iR2200 in </TD></TR>
    <TR><TD>Maintainer:</TD> <TD></TD></TR>
    <TR><TD>Description:</TD><TD>lnlanc0 </TD></TR>
    <TR><TD>ifType:</TD> <TD>ethernetCsmacd (6)</TD></TR>
    <TR><TD>ifName:</TD> <TD></TD></TR>
    <TR><TD>Max Speed:</TD> <TD>100 MBytes/s</TD></TR>
    <TR><TD>Ip:</TD> <TD>my IP ()</TD></TR>
    </TABLE>
    In fact, the code above was made by running a "cfgmaker" command.
    So, I'm not sure if I can add the mib to this code (I also have probed deleting the "mib-" text, but there is an error, too).

    Then, I do " ./mrtg /etc/mrtg_prt.conf" and I get this error:

    ERROR: Target[my IP_1][_IN_] 'mib-2.43.10.2.1.4.1. $target->[2]{$mode} ' (eval): Bareword "mib" not allowed while "strict subs" in use at (eval 6903) line 1.

    ERROR: Target[my IP_1][_OUT_] 'mib-2.43.10.2.1.4.1. $target->[2]{$mode} ' (eval): Bareword "mib" not allowed while "strict subs" in use at (eval 6904) line 1.

    And this is the problem: how can add the mib for to mrtg graphs the number of pages impressed ???

    Thank you !

  2. #2
    Senior Member
    Join Date
    May 2004
    Location
    Pakistan
    Posts
    253

    Re:

    Dear argie01,
    Hello,

    FYI, migth help you http://lists.ee.ethz.ch/mrtg/msg16833.html

    Best Regards.
    Frrkh hmd

Similar Threads

  1. MRTG help
    By zmunawar in forum Redhat / Fedora
    Replies: 3
    Last Post: 04-23-2007, 09:54 PM
  2. config MRTG in fedora core 2
    By huynxbk45 in forum Linux - Software, Applications & Programming
    Replies: 3
    Last Post: 03-11-2005, 07:25 PM
  3. MRTG
    By dev_rhce in forum Linux - Software, Applications & Programming
    Replies: 0
    Last Post: 10-13-2004, 01:52 PM
  4. MRTG
    By elovkoff in forum Linux - Hardware, Networking & Security
    Replies: 7
    Last Post: 04-06-2004, 02:35 PM
  5. MRTG?!?!
    By Killer_Penguin in forum Linux - Hardware, Networking & Security
    Replies: 5
    Last Post: 03-07-2002, 04:36 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •