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\":[email protected]:::::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]: Predictor: LegendO[cluster1_test_failedconnections]: 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:'[email protected]:::::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
_______________________________________________ mrtg mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
