On 11/21/2016 12:39 AM, Hilmi Egemen Ciritoğlu wrote:
Hi Adrian,
Hi!
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)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 ?
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 lettersin 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 doas 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 <adrian.sevce...@cern.ch <mailto:adrian.sevce...@cern.ch>>: 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 <mailto:Ganglia-developers@lists.sourceforge.net> https://lists.sourceforge.net/lists/listinfo/ganglia-developers <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