[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 :

*snmpwalk*
mrtg:/etc/mrtg# snmpwalk -OnE -c snmppub -v 2c 10.0.99.161
1.3.6.1.4.1.9.9.254.1.2.5.1.3.1.\"CLUSTER1\"
.1.3.6.1.4.1.9.9.254.1.2.5.1.3.1.8.67.76.85.83.84.69.82.49 = Counter64:
428593
mrtg:/etc/mrtg# snmpwalk -OnE -c snmppub -v 2c 10.0.99.161
1.3.6.1.4.1.9.9.254.1.2.5.1.3.1.\"CLUSTER1_PREDICTOR\"
.1.3.6.1.4.1.9.9.254.1.2.5.1.3.1.18.67.76.85.83.84.69.82.49.95.80.82.69.68.73.67.84.79.82
= Counter64: 3857472

*mrtg*
Target[cluster1_test_failedconnections]:
1.3.6.1.4.1.9.9.254.1.2.5.1.3.1.\"CLUSTER1\"&1.3.6.1.4.1.9.9.254.1.2.5.1.3.1.\"CLUSTER1_PREDICTOR\":snmppub at 10.0.99.161:::::2

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
</h1>
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 10.0.99.161:::::2'
ref:'Descr' key:'"CLUSTER1_PREDICTOR\"'
2014-02-19 18:36:51: ERROR: Target[cluster1_test_failedconnections][_IN_]
'1.3.6.1.4.1.9.9.254.1.2.5.1.3.1.\"CLUSTER1\"&1.3.6.1.4.1.9.9.254.1.2.5.1.3.1.
$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_]
'1.3.6.1.4.1.9.9.254.1.2.5.1.3.1.\"CLUSTER1\"&1.3.6.1.4.1.9.9.254.1.2.5.1.3.1.
$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

Regards,

Beluc
-------------- 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