[mrtg] Target not evaluating to number

MMartin at jwpepper.com MMartin at jwpepper.com
Fri Sep 20 05:15:08 CEST 2013

Sorry its been a while since I've touched my MRTG config stuff since I 
configured it originally.

But I think the Target line should look like this:

SNMP v1:
        Target[]: at

SNMP v2:
        Target[]: at
                |---> Don't forget the 5 ":" at the end of the line and 
the "2" for SNMP version 2 if that's what your using

Let me know if that works..?


From:   Mehul Sanghvi <mehul.sanghvi at gmail.com>
To:     <mrtg at lists.oetiker.ch>
Date:   09/19/2013 10:59 PM
Subject:        [mrtg] Target not evaluating to number
Sent by:        <mrtg-bounces+mmartin=jwpepper.com at lists.oetiker.ch>

OS: Debian/testing
mrtg:  2.17.4

I am trying to collect data for disk space usage using the following:

#### Disk Usage
                                    Title[localhost.du]:   Used disk space 
            MaxBytes[localhost.du]: 4209180                               
PageTop[localhost.du]: <H1> Used disk space </H1>                         
                                      LegendI[localhost.du]:  Disk Space 
            LegendO[localhost.du]:  Used Disk Space                       
Legend1[localhost.du]:  Disk Space Available                               
                                            Legend2[localhost.du]:  Used 
Disk Space                                                                 
kilo[localhost.du]: 1024                                                   

I get the following result:

2013-09-19 22:42:45: ERROR: Target[localhost.du][_IN_] 
'' evaluated to '(' 
instead of a number
2013-09-19 22:42:45: ERROR: Target[localhost.du][_OUT_] 
'' evaluated to '(' 
instead of a number

If I use SNMP from the CLI I get:

prompt% snmpget -v2c -c public localhost
HOST-RESOURCES-MIB::hrStorageSize.40 = INTEGER: 4664409

Where is the '(' coming from as mentioned in the error message ?  Why am I 
getting that instead of the integer that is its value ? 



Mehul N. Sanghvi
email: mehul.sanghvi at gmail.com 
mrtg mailing list
mrtg at lists.oetiker.ch

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20130919/0257a613/attachment-0001.htm 

More information about the mrtg mailing list