FW: graphing three indexed values for Amps for APC PDU

3 messages Options
Embed this post
Permalink
Bruce Langston () FW: graphing three indexed values for Amps for APC PDU
Reply Threaded More More options
Print post
Permalink
 [Resend with smaller graphic...]

My first try at this...
I am trying to graph the current load from some APC PDUs.

The OID is
1.3.6.1.4.1.318.1.1.12.2.3.1.1.2 and the name is rPDULoadStatusLoad. It has three values, at
1.3.6.1.4.1.318.1.1.12.2.3.1.1.2.1 (for Bank B2),
1.3.6.1.4.1.318.1.1.12.2.3.1.1.2 .2 (for Bank B1) and
1.3.6.1.4.1.318.1.1.12.2.3.1.1.2 .3 (the sum of the two), specified by the Integer value of
1.3.6.1.4.1.318.1.1.12.2.3.1.1.1  rPDULoadStatusIndex.  I show this relationship with the GUI output from Getif  (www.wtcs.org/snmp4tpc/getif.htm):


Is there a way to graph these three values on the same graph?  

I tried this and lots of variations, none of which seems to work:

### PDU load status %
Target[load]:rPDULoadStatusIndex.1&rPDULoadStatusLoad:[hidden email]
Target[load]:rPDULoadStatusIndex.2&rPDULoadStatusLoad:[hidden email]
Target[load]:rPDULoadStatusIndex.3&rPDULoadStatusLoad:[hidden email]
MaxBytes[load]: 240
Title[load]: PDU LOAD
PageTop[load]: <H1>PDU Load %</H1>
Unscaled[load]: ymwd
Suppress[load]: ym
ShortLegend[load]: %
XSize[load]: 380
YSize[load]: 100
YLegend[load]: PDU Utilization
Legend1[load]: PDU Utilization in % (Load)
Legend2[load]:
Legend3[load]:
Legend4[load]:
LegendI[load]:
LegendO[load]:  Usage
Options[load]: gauge

I get this error message:
ERROR: Line 31 (Target[load]:rPDULoadStatusIndex.2&rPDULoadStatusLoad:[hidden email]) in CFG file (10.254.250.79.cfg)
contains a duplicate definition for target[load].
First definition is on line 30

Thanks,

Bruce Langston
New Cell: 678.982.8335
Hughes Telematics/ProSys/The Royak Group




_______________________________________________
mrtg mailing list
[hidden email]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg

Getif2.bmp (37K) Download Attachment
Max Hetrick-2 () Re: FW: graphing three indexed values for Amps for APC PDU
Reply Threaded More More options
Print post
Permalink
Bruce Langston wrote:

> Is there a way to graph these three values on the same graph?  

At most you're going to get two values at the same time.

An example would be as follows on graphing the disk space of two
different shares that I have on the same host:


# host1 graph for /var/www/reports and /var/samba/downloads
Target[host1_2]:
1.3.6.1.4.1.2021.9.1.9.5&1.3.6.1.4.1.2021.9.1.9.6:public@host1
MaxBytes[host1_2]: 100
Options[host1_2]: gauge,growright,nopercent,integer
Title[host1_2]: Disk Usage on /var/www/reports and /var/samba/downloads
YLegend[host1_2]: Reports/Downloads
ShortLegend[host1_2]:  
LegendI[host1_2]:  Reports:
LegendO[host1_2]:  Downloads:
Legend1[host1_2]: Home
Legend2[host1_2]: Reports
PageTop[host1_2]: <H1>Disk Usage /var/www/reports and
/var/samba/downloads </H1>

This part being the important part with the "&" config:

Target[host1_2]:
1.3.6.1.4.1.2021.9.1.9.5&1.3.6.1.4.1.2021.9.1.9.6:public@host1

This has always been my knowledge of it, so unless something changed,
this should still work.

Regards,
Max

_______________________________________________
mrtg mailing list
[hidden email]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg
S Shipway () Re: graphing three indexed values for Amps for APC PDU
Reply Threaded More More options
Print post
Permalink
In reply to this post by Bruce Langston
>
> Is there a way to graph these three values on the same graph?
>

Only if you are using MRTG/RRD with Routers2 as the frontend, or you roll your own graphing frontend.  If you have Native mode (IE, no RRDTool) then it is not possible.

If you are using MRTG/RRD/Routers2, then take a look at the routers2.cgi*Graph[] directive to make user defined summary graphs, which can do this easily.

Steve

_______________________________________________
mrtg mailing list
[hidden email]
https://lists.oetiker.ch/cgi-bin/listinfo/mrtg