Steve, I have mad the adjustments to the CFG file and it looks like I am getting a bit closer but still no joy.
EnableIPv6: no WorkDir: /var/www/mrtg/rrd Options[_]: growright,bits LogFormat: rrdtool LoadMIBs: /usr/share/snmp/mibs/SENTRY3.MIB.txt /usr/share/snmp/mibs/SENTRY3_NO_BITS.MIB.txt /usr/share/snmp/mibs/ENTRY3OIDTREE.txt /usr/share/snmp/mibs/SENTRY3_SERVERTECH_1ST.MIB.txt /usr/share/snmp/mibs/SENTRY3_SMIV1.MIB.txt Target[ptxl0101a-eqla3.stk.tower-a-infeed-a]: ( 1.3.6.1.4.1.1718.3.2.2.1.7.1.1&1.3.6.1.4.1.1718.3.2.2.1.8.1.1:[email protected]:::::2 / 100 ) MaxBytes[ptxl0101a-eqla3.stk.tower-a-infeed-a]: 20 Title[ptxl0101a-eqla3.stk.tower-a-infeed-a]: TowerA_InfeedA Utilization PageTop[ptxl0101a-eqla3.stk.tower-a-infeed-a]: <b>ptxl0101a-eqla3.stk Tower A</b> Utilization for TowerA_InfeedA \n WithPeak[ptxl0101a-eqla3.stk.tower-a-infeed-a]: wmy LegendI[ptxl0101a-eqla3.stk.tower-a-infeed-a]: Utilization LegendO[ptxl0101a-eqla3.stk.tower-a-infeed-a]: Utilization Legend1[ptxl0101a-eqla3.stk.tower-a-infeed-a]: Utilization Legend2[ptxl0101a-eqla3.stk.tower-a-infeed-a]: Utilization YLegend[ptxl0101a-eqla3.stk.tower-a-infeed-a]: Utilization ShortLegend[ptxl0101a-eqla3.stk.tower-a-infeed-a]: Amps Options[ptxl0101a-eqla3.stk.tower-a-infeed-a]: gauge,growright,nopercent,integer The first value comes in the hundreths of an amp for: [r...@bandit mibs]# snmpwalk -v 2c -c ubaVcj8PYF ptxl0101a-eqla3.stk 1.3.6.1.4.1.1718.3.2.2.1.7.1.1 Sentry3-MIB::infeedLoadValue.1.1 = INTEGER: 338 hundredth Amps And the second value comes in even amps: [r...@bandit mibs]# snmpwalk -v 2c -c ubaVcj8PYF ptxl0101a-eqla3.stk 1.3.6.1.4.1.1718.3.2.2.1.8.1.1 Sentry3-MIB::infeedLoadHighThresh.1.1 = INTEGER: 4 Amps Is the / 100 going to be dividing both of these values by 100....?? Below is my debug output. Hopefully you will catch what I am missing. -Patrick ---------------------------------- 2008-12-30 21:31:15 -- Started mrtg with config '/etc/mrtg/ptxl0101a-eqla3.stk.power.cfg' 2008-12-30 21:31:15 -- --cfg: /etc/mrtg/ptxl0101a-eqla3.stk.power.cfg[1]: EnableIPv6: no 2008-12-30 21:31:15 -- --cfg: /etc/mrtg/ptxl0101a-eqla3.stk.power.cfg[2]: WorkDir: /var/www/mrtg/rrd 2008-12-30 21:31:15 -- --cfg: /etc/mrtg/ptxl0101a-eqla3.stk.power.cfg[3]: Options[_]: growright,bits 2008-12-30 21:31:15 -- --cfg: /etc/mrtg/ptxl0101a-eqla3.stk.power.cfg[4]: LogFormat: rrdtool 2008-12-30 21:31:15 -- --cfg: /etc/mrtg/ptxl0101a-eqla3.stk.power.cfg[5]: 2008-12-30 21:31:15 -- --cfg: /etc/mrtg/ptxl0101a-eqla3.stk.power.cfg[6]: LoadMIBs: /usr/share/snmp/mibs/SENTRY3.MIB.txt /usr/share/snmp/mibs/SENTRY3_NO_BITS.MIB.txt /usr/share/snmp/mibs/ENTRY3OIDTREE.txt /usr/share/snmp/mibs/SENTRY3_SERVERTECH_1ST.MIB.txt /usr/share/snmp/mibs/SENTRY3_SMIV1.MIB.txt 2008-12-30 21:31:15 -- --cfg: /etc/mrtg/ptxl0101a-eqla3.stk.power.cfg[7]: 2008-12-30 21:31:15 -- --cfg: /etc/mrtg/ptxl0101a-eqla3.stk.power.cfg[8]: Target[ptxl0101a-eqla3.stk.tower-a-infeed-a]: ( 1.3.6.1.4.1.1718.3.2.2.1.7.1.1&1.3.6.1.4.1.1718.3.2.2.1.8.1.1:[email protected]:::::2 / 100 ) 2008-12-30 21:31:15 -- --cfg: /etc/mrtg/ptxl0101a-eqla3.stk.power.cfg[9]: MaxBytes[ptxl0101a-eqla3.stk.tower-a-infeed-a]: 20 2008-12-30 21:31:15 -- --cfg: /etc/mrtg/ptxl0101a-eqla3.stk.power.cfg[10]: Title[ptxl0101a-eqla3.stk.tower-a-infeed-a]: TowerA_InfeedA Utilization 2008-12-30 21:31:15 -- --cfg: /etc/mrtg/ptxl0101a-eqla3.stk.power.cfg[11]: PageTop[ptxl0101a-eqla3.stk.tower-a-infeed-a]: <b>ptxl0101a-eqla3.stk Tower A</b> Utilization for TowerA_InfeedA \n 2008-12-30 21:31:15 -- --cfg: /etc/mrtg/ptxl0101a-eqla3.stk.power.cfg[12]: WithPeak[ptxl0101a-eqla3.stk.tower-a-infeed-a]: wmy 2008-12-30 21:31:15 -- --cfg: /etc/mrtg/ptxl0101a-eqla3.stk.power.cfg[13]: LegendI[ptxl0101a-eqla3.stk.tower-a-infeed-a]: Utilization 2008-12-30 21:31:15 -- --cfg: /etc/mrtg/ptxl0101a-eqla3.stk.power.cfg[14]: LegendO[ptxl0101a-eqla3.stk.tower-a-infeed-a]: Utilization 2008-12-30 21:31:15 -- --cfg: /etc/mrtg/ptxl0101a-eqla3.stk.power.cfg[15]: Legend1[ptxl0101a-eqla3.stk.tower-a-infeed-a]: Utilization 2008-12-30 21:31:15 -- --cfg: /etc/mrtg/ptxl0101a-eqla3.stk.power.cfg[16]: Legend2[ptxl0101a-eqla3.stk.tower-a-infeed-a]: Utilization 2008-12-30 21:31:15 -- --cfg: /etc/mrtg/ptxl0101a-eqla3.stk.power.cfg[17]: YLegend[ptxl0101a-eqla3.stk.tower-a-infeed-a]: Utilization 2008-12-30 21:31:15 -- --cfg: /etc/mrtg/ptxl0101a-eqla3.stk.power.cfg[18]: ShortLegend[ptxl0101a-eqla3.stk.tower-a-infeed-a]: Amps 2008-12-30 21:31:15 -- --cfg: /etc/mrtg/ptxl0101a-eqla3.stk.power.cfg[19]: Options[ptxl0101a-eqla3.stk.tower-a-infeed-a]: gauge,growright,nopercent,integer 2008-12-30 21:31:15 -- --log: Called: RRDs::tune(/var/www/mrtg/rrd/ptxl0101a-eqla3.stk.tower-a-infeed-a.rrd -a ds0:20 -a ds1:20 -d ds0:GAUGE -d ds1:GAUGE) 2008-12-30 21:31:15 -- --log: Calling: RRDs::update(/var/www/mrtg/rrd/ptxl0101a-eqla3.stk.tower-a-infeed-a.rrd, '1230672675:3.38:0.04') 2008-12-30 21:31:15 -- --log: Called: RRDs::info(/var/www/mrtg/rrd/ptxl0101a-eqla3.stk.tower-a-infeed-a.rrd) 2008-12-30 21:31:15 -- --log: Called: RRDs::fetch(/var/www/mrtg/rrd/ptxl0101a-eqla3.stk.tower-a-infeed-a.rrd,'AVERAGE','-s',1230672600,'-e',1230672600) 2008-12-30 21:31:15 -- --log: got: NaN/NaN -------------------------------------- Steve Shipway wrote: >> snmpwalk -v 2c -c ubaVcj8PYF ptxl0101a-eqla3.stk >> 1.3.6.1.4.1.1718.3.2.2.1.7.1.2 >> Sentry3-MIB::infeedLoadValue.1.2 = INTEGER: 463 hundredth Amps >> > ... > >> Target[ptxl0101a-eqla3.stk.tower-a-infeed-a]: >> (1.3.6.1.4.1.1718.3.2.2.1.7.1.1&1.3.6.1.4.1.1718.3.2.2.1.8.1.1:community@ >> ptxl0101a-eqla3.stk:::::2) >> MaxBytes[ptxl0101a-eqla3.stk.tower-a-infeed-a]: 20 >> > ... > >> 2008-12-30 18:46:45 -- --log: Called: >> RRDs::tune(/var/www/mrtg/rrd/ptxl0101a-eqla3.stk.tower-a-infeed-a.rrd -a >> ds0:20 -a ds1:20 -d ds0:GAUGE -d ds1:GAUGE) >> 2008-12-30 18:46:45 -- --log: Calling: >> RRDs::update(/var/www/mrtg/rrd/ptxl0101a-eqla3.stk.tower-a-infeed-a.rrd, >> '1230662805:338:4') >> > > You are missing a few things in your config. This is what you should have: > > Target[ptxl0101a-eqla3.stk.tower-a-infeed-a]: > 1.3.6.1.4.1.1718.3.2.2.1.7.1.1&1.3.6.1.4.1.1718.3.2.2.1.8.1.1 > :[email protected]:::::2 / 100 > MaxBytes[ptxl0101a-eqla3.stk.tower-a-infeed-a]: 20 > > Note the ' / 100' on the end of the Target definition. Spaces are > significant. > > Your SNMP query returns the value as an integer number representing > hundredths of an amp, so you need to subsequently divide by 100 , either in > the Target definition or in a Factor[] definition. Best Practice is to > convert to SI units before storing so do the calculation in the Target > definition (use Factor[] if you want to do a multiplication between storing > and displaying, eg store a value as blocks but display as bytes). > > Since you are retrieving hundredths of an amp, you retrieved a value of 338. > However, this is outside your maxBytes range of 0-20 so it is being > discarded and UNKNOWN stored. By adding the '/ 100' (NOTE THE SPACES!) to > the end of the Target definition, all will be OK as the query will return > 3.38 which is within the MaxBytes range. If you use Factor[]:0.01 instead > you'll need to increase MaxBytes to 2000 as the MaxBytes check is done > before Factor[]. > > Thanks for providing so much detail about your problem, makes diagnosis much > easier. > > Hope this helps, > > Steve > _______________________________________________ mrtg mailing list [email protected] https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
