Re: [Ganglia-developers] Ganglia Power Consumption

2016-11-21 Thread Adrian Sevcenco

On 11/21/2016 12:39 AM, Hilmi Egemen Ciritoğlu wrote:

Hi Adrian,

Hi!


Thank you for your answer. I'm new ganglia world. So I have one question
I would be happy if you can answer.

I guess this: $UPS_OUT_LOAD1 is variable. Is it predefined because you
didn't mention any thing about it ?
yes, that is something that i take from the ups and pdu through SNMP (i 
have Symmetra PX, but you can find specific OIDs from (any) provider)

see
https://github.com/adriansev/ISSMON/blob/master/get_ups_data
https://github.com/adriansev/ISSMON/blob/master/get_PDUtable

or overall https://github.com/adriansev/ISSMON


Also I didn't figured out why this variable stands for $ups_name_low ?

i just changed the SNMP name of the device to all low letters

in principle the content of the repository is self-explanatory, so if 
you have questions first you have to read documentation on SNMP (how to 
get information from devices and servers, what is an OID, etc..) and

then how to push metrics to ganglia (gmetric).

On the ganglia subject, it could be that is not very clear but i run
separate gmonds for each type of services which is not easy to do
as i had to rewrite the sysinit script to be more flexible w.r.t 
configuration location. (on my monitoring machine i run 5 aggregator 
gmonds)


Adrian



Regards,
Egemen

2016-11-20 20:45 GMT+00:00 Adrian Sevcenco >:

On 11/20/2016 08:29 PM, Hilmi Egemen Ciritoğlu wrote:

Hi all,

Hi!

Do you have any idea how can I also collect power consumption ?
Do you
have any plugin for this situation ? Any help would be greatly
appreciated :)

As far i am aware, all power related metrics are available only
through snmp (or other means.). So you would need to use gmetric to
push into ganglia the metrics that you want ... something like :

$SEND -S $SPOOF -g "Output_PH1" -n "ups_ph1_load"  -v
$UPS_OUT_LOAD1   -t "float"  -u "VA" -s "both" -D "Output Power -
Phase1"-T "Output Power - PH1"$LIFETIME

where:
CONF="/etc/ganglia_ups/gmond.conf"
SEND="/usr/bin/gmetric -c $CONF"
LIFETIME="--tmax=900 --dmax=0"
SPOOF=$IP":"$ups_name_low

HTH,
Adrian




--

___
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/ganglia-developers





--



___
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers




--
--
Adrian Sevcenco, Ph.D.   |
Institute of Space Science - ISS, Romania|
adrian.sevcenco at {cern.ch,spacescience.ro} |
--



smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers


Re: [Ganglia-developers] Ganglia Power Consumption

2016-11-20 Thread Troy Baer
On 11/20/2016 01:29 PM, Hilmi Egemen Ciritoğlu wrote:
> Do you have any idea how can I also collect power consumption ? Do you 
> have any plugin for this situation ? Any help would be greatly 
> appreciated :)

This depends largely on what sort of hardware you have.  If you have 
hardware that can report power consumption metrics via SNMP or IPMI, 
there are likely plugins out there that can help you.  For instance, my 
fork of the Ganglia Python plugins repo [1] includes a refactored IPMI 
plugin that can be used to measure power consumption (among other 
things) if your IPMI implementation supports it.  We're currently using 
it to monitor power consumption, temperature, fan speeds, and some other 
metrics from IPMI on about 800 of our ~2,000 nodes.

 --Troy

[1]  https://github.com/tabaer/gmond_python_modules

--
___
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers


Re: [Ganglia-developers] Ganglia Power Consumption

2016-11-20 Thread Hilmi Egemen Ciritoğlu
Hi Adrian,

Thank you for your answer. I'm new ganglia world. So I have one question I
would be happy if you can answer.

I guess this: $UPS_OUT_LOAD1 is variable. Is it predefined because you
didn't mention any thing about it ?
Also I didn't figured out why this variable stands for $ups_name_low ?

Regards,
Egemen

2016-11-20 20:45 GMT+00:00 Adrian Sevcenco :

> On 11/20/2016 08:29 PM, Hilmi Egemen Ciritoğlu wrote:
>
>> Hi all,
>>
> Hi!
>
> Do you have any idea how can I also collect power consumption ? Do you
>> have any plugin for this situation ? Any help would be greatly
>> appreciated :)
>>
> As far i am aware, all power related metrics are available only through
> snmp (or other means.). So you would need to use gmetric to push into
> ganglia the metrics that you want ... something like :
>
> $SEND -S $SPOOF -g "Output_PH1" -n "ups_ph1_load"  -v $UPS_OUT_LOAD1
>  -t "float"  -u "VA" -s "both" -D "Output Power - Phase1"-T "Output
> Power - PH1"$LIFETIME
>
> where:
> CONF="/etc/ganglia_ups/gmond.conf"
> SEND="/usr/bin/gmetric -c $CONF"
> LIFETIME="--tmax=900 --dmax=0"
> SPOOF=$IP":"$ups_name_low
>
> HTH,
> Adrian
>
>
>
> 
> --
>
> ___
> Ganglia-developers mailing list
> Ganglia-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/ganglia-developers
>
>
--
___
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers


Re: [Ganglia-developers] Ganglia Power Consumption

2016-11-20 Thread Adrian Sevcenco

On 11/20/2016 08:29 PM, Hilmi Egemen Ciritoğlu wrote:

Hi all,

Hi!


Do you have any idea how can I also collect power consumption ? Do you
have any plugin for this situation ? Any help would be greatly
appreciated :)
As far i am aware, all power related metrics are available only through 
snmp (or other means.). So you would need to use gmetric to push into 
ganglia the metrics that you want ... something like :


$SEND -S $SPOOF -g "Output_PH1" -n "ups_ph1_load"  -v $UPS_OUT_LOAD1 
  -t "float"  -u "VA" -s "both" -D "Output Power - Phase1"-T 
"Output Power - PH1"$LIFETIME


where:
CONF="/etc/ganglia_ups/gmond.conf"
SEND="/usr/bin/gmetric -c $CONF"
LIFETIME="--tmax=900 --dmax=0"
SPOOF=$IP":"$ups_name_low

HTH,
Adrian




smime.p7s
Description: S/MIME Cryptographic Signature
--
___
Ganglia-developers mailing list
Ganglia-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-developers