[mrtg] convert string to oid

Beluc beluc62 at gmail.com
Thu Feb 20 14:43:03 CET 2014

Hi everybody,

i'm trying to apply smth that works using snmpwalk but doesn't in mrtg :

mrtg:/etc/mrtg# snmpwalk -OnE -c snmppub -v 2c\"CLUSTER1\"
. = Counter64:
mrtg:/etc/mrtg# snmpwalk -OnE -c snmppub -v 2c\"CLUSTER1_PREDICTOR\"
= Counter64: 3857472

Target[cluster1_test_failedconnections]:\"CLUSTER1\"&\"CLUSTER1_PREDICTOR\":snmppub at

Options[cluster1_test_failedconnections]: growright,noinfo
YLegend[cluster1_test_failedconnections]: failed connections
ShortLegend[cluster1_test_failedconnections]: conn
MaxBytes[cluster1_test_failedconnections]: 1000000
Title[cluster1_test_failedconnections]: Failed Connections -- cluster1
PageTop[cluster1_test_failedconnections]: <h1>Failed Connections --cluster1
LegendI[cluster1_test_failedconnections]: &nbsp;Predictor:
LegendO[cluster1_test_failedconnections]: &nbsp;Predicted:

mrtg:/etc/mrtg# if [ -x /usr/bin/mrtg ] && [ -r
/etc/mrtg/mrtg.cfg-ServerFarmFailedConns55 ]; then env LANG=C /usr/bin/mrtg
/etc/mrtg/mrtg.cfg-ServerFarmFailedConns55 2>&1 | tee -a
/var/log/mrtg/mrtg.log-ServerFarmFailedConns55 ; fi
2014-02-19 18:36:49: WARNING: Could not match host:'snmppub at'
ref:'Descr' key:'"CLUSTER1_PREDICTOR\"'
2014-02-19 18:36:51: ERROR: Target[cluster1_test_failedconnections][_IN_]
$target->[12]{$mode} ' (kill): Can't find string terminator '"' anywhere
before EOF at (eval 44) line 1.
2014-02-19 18:36:51: ERROR: Target[cluster1_test_failedconnections][_OUT_]
$target->[12]{$mode} ' (kill): Can't find string terminator '"' anywhere
before EOF at (eval 45) line 1.

I hope someone will have an idea.

CLUSTER1 & CLUSTER1_PREDICTOR are serverfarms from cisco ACE30


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.oetiker.ch/pipermail/mrtg/attachments/20140220/c20be572/attachment.htm 

More information about the mrtg mailing list