Re: Target not evaluating to number

[email protected]
Newsgroups gmane.network.mrtg.user
Message-ID <OFB2A0C4EF.8076AE8B-ON85257BEC.0010B314-85257BEC.0011F378@jwpepper.com>
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[192.168.1.1]: 1.3.6.1.2.1.25.2.3.1.5.40&
1.3.6.1.2.1.25.2.3.1.6.40:[email protected]:

SNMP v2:
        Target[192.168.1.1]: 1.3.6.1.2.1.25.2.3.1.5.40&
1.3.6.1.2.1.25.2.3.1.6.40:[email protected]:::::2
                |---> 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..?

Thanks,
Matt




From:   Mehul Sanghvi <[email protected]>
To:     <[email protected]>
Date:   09/19/2013 10:59 PM
Subject:        [mrtg] Target not evaluating to number
Sent by:        <[email protected]>



OS: Debian/testing
mrtg:  2.17.4


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

####
#### Disk Usage
####                                                                       
                                                                
Target[localhost.du]: 1.3.6.1.2.1.25.2.3.1.5.40&1.3.6.1.2.1.25.2.3.1.6.40 
                                    Title[localhost.du]:   Used disk space 
                                                                          
            MaxBytes[localhost.du]: 4209180                               
                                                              
PageTop[localhost.du]: <H1> Used disk space </H1>                         
                                      LegendI[localhost.du]:  Disk Space 
Available                                                                 
            LegendO[localhost.du]:  Used Disk Space                       
                                                          
Legend1[localhost.du]:  Disk Space Available                               
                                            Legend2[localhost.du]:  Used 
Disk Space                                                                 
                YLegend[localhost.du]:                                     
                                                                      
kilo[localhost.du]: 1024                                                   
                                                        kMG[localhost.du]: 
,,k,M,G,T,P             



I get the following result:

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


If I use SNMP from the CLI I get:

prompt% snmpget -v2c -c public localhost 1.3.6.1.2.1.25.2.3.1.5.40
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 ? 



cheers,


        mehul

-- 
Mehul N. Sanghvi
email: [email protected] 
_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

_______________________________________________
mrtg mailing list
[email protected]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.