Re: [Ganglia-general] gmond python module, dynamic number of descriptors
Hi Jean-Baptiste, We had a similar requirement for dynamically adding new metrics. The only way we could make this work is to call gmetric from within the python module. A bit of a hack, I know, but it also gives you the ability to set the "dmax" option which means old metrics will expire and be forgotten by the gmond which is just as important as dynamically discovering new metrics. By the way, the python module is used to collect some metrics that are not dynamic. For example, we have a metric that reports the number of dynamic metrics we are collecting which we have found very useful when trouble shooting problems with the python module itself. Regards, Nick On Tue, Oct 16, 2012 at 1:29 PM, Jean-Baptiste Denis wrote: > Hello everybody, > > I'm running a cluster using Open Grid Scheduler (one of the opensource > fork of Sun Grid Engine) and I wrote a gmond python plugin to monitor > the status of each queue (number of used, available slots, etc...) > > Boring stuff here (needs cleaning and stuff) : > > https://gist.github.com/3898953 > > I retrieve the different queues names in the metric_init function and > create one descriptor for each queue statistics. > > For example, if I've got two queues queue_A and queue_B with differents > metrics within, I would create those descriptors using the output of an > external command (qstat -g c -xml) : > > desc = { 'name' : 'queue_A_metric_1 ... } > desc = { 'name' : 'queue_A_metric_2 ... } > ... > desc = { 'name' : 'queue_B_metric_1 ... } > desc = { 'name' : 'queue_B_metric_2 ... } > > Since those descriptors are only defined in the metric_init function, I > have to restart gmond to handle new queue or new queue metrics. > > Am I doing something wrong ? Is there any way to deal with "dynamic" > descriptors without restarting gmond ? > > Jean-Baptiste > > > > -- > Don't let slow site performance ruin your business. Deploy New Relic APM > Deploy New Relic app performance management and know exactly > what is happening inside your Ruby, Python, PHP, Java, and .NET app > Try New Relic at no cost today and get our sweet Data Nerd shirt too! > http://p.sf.net/sfu/newrelic-dev2dev > ___ > Ganglia-general mailing list > Ganglia-general@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/ganglia-general > -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct___ Ganglia-general mailing list Ganglia-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-general
Re: [Ganglia-general] Additional Bars
Please see below. I thought by installing libffi and libgcc, it would install the needed libraries, but it did not. What else am I missing? Thanks. Ghassan #: rrdtool Could not load program rrdtool: Could not load module /opt/freeware/lib/libgobject-2.0.a(libgobject-2.0.so.0). Dependent module /opt/freeware/lib/libffi.a(libffi.so.5) could not be loaded. Member libffi.so.5 is not found in archive Could not load module rrdtool. Dependent module /opt/freeware/lib/libgobject-2.0.a(libgobject-2.0.so.0) could not be loaded. Could not load module . From: Vladimir Vuksan To: Ghassan Elnajjar Cc: ganglia-general@lists.sourceforge.net Date: 10/21/2012 08:56 AM Subject:Re: [Ganglia-general] Additional Bars I would imagine if you are missing library dependencies rrdtool will not work. Try executing rrdtool by hand. Ghassan Elnajjar wrote: Hi Vladimir, After installing the rrdtool 1.3.9, all my graphs disappeared. There were errors installing the pango rpm so I removed and installed libgcc and libffi rpm, but still got the same errors after the install of the pango rpm. Would these be the cause of my graphs disappearing? Can this be fixed? Thanks. #: rpm -Uvh libgcc-4.7.2-1.aix7.1.ppc.rpm libgcc ## #: rpm -Uvh libffi-3.0.11-1.aix5.1.ppc.rpm libffi ## rpm -Uvh pango-1.24.5-1.aix5.1.ppc.rpm pango ## Could not load program /opt/freeware/bin/pango-querymodules: Could not load module /opt/freeware/lib/libgobject-2.0.a(libgobject-2.0.so.0). Dependent module libffi.a(libffi.so.5) could not be loaded. Could not load module libffi.a(libffi.so.5). System error: No such file or directory Could not load module pango-querymodules. Dependent module /opt/freeware/lib/libgobject-2.0.a(libgobject-2.0.so.0) could not be loaded. Could not load module . execution of pango-1.24.5-1 script failed, exit status 255 Ghassan From:Vladimir Vuksan To:Ghassan Elnajjar Cc:ganglia-general@lists.sourceforge.net Date:10/19/2012 12:11 PM Subject:Re: [Ganglia-general] Additional Bars I'm afraid you'll have to update all those too. Vladimir On Fri, 19 Oct 2012, Ghassan Elnajjar wrote: > I have to upgrade the following files as well. Do I need to do that or I can just use the --nodeps parameter? > > > Ghassan > > > #: rpm -Uvh rrdtool-1.3.9-1.aix5.1.ppc.rpm > > cairo >= 1.8.8 is needed by rrdtool-1.3.9-1 > freetype2 >= 2.3.12 is needed by rrdtool-1.3.9-1 > libart_lgpl >= 2.3.20 is needed by rrdtool-1.3.9-1 > libpng >= 1.2.44 is needed by rrdtool-1.3.9-1 > pango >= 1.24.5 is needed by rrdtool-1.3.9-1 > dejavu-sans-mono-fonts is needed by rrdtool-1.3.9-1 > dejavu-lgc-sans-mono-fonts is needed by rrdtool-1.3.9-1 > libcairo.a(libcairo.so.2) is needed by rrdtool-1.3.9-1 > libpango-1.0.a(libpango-1.0.so.0) is needed by rrdtool-1.3.9-1 > libpangocairo-1.0.a(libpangocairo-1.0.so.0) is needed by rrdtool-1.3.9-1 > > > > > From:Ghassan Elnajjar > To:Vladimir Vuksan > Cc:ganglia-general@lists.sourceforge.net > Date:10/19/2012 11:42 AM > Subject:Re: [Ganglia-general] Additional Bars > > _ > > > > Thank you. Do I just upgrade right on top of the 1.2.30 or there is a specific rpm command that I need to execute? > > Is rpm -U sufficient? > > > Ghassan > > > > > > From:Vladimir Vuksan > To:Ghassan Elnajjar > Cc:ganglia-general@lists.sourceforge.net > Date:10/19/2012 11:33 AM > Subject:Re: [Ganglia-general] Additional Bars > > _ > > > > That could be the problem. Can you upgrade to rrdtool 1.3+. We use a lot > of features from 1.3+ so things will look off if you use rrdtool 1.2. > > Vladimir > > On Fri, 19 Oct 2012, Ghassan Elnajjar wrote: > > > I'm using rrdtool-1.2.30-5. > > > > > > Ghassan NOTE: The information contained in this message may be privileged and confidential and protected from disclosure. If the reader of this message is not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by replying to the message and deleting it from your computer. -- VCU Health System http://www.vcuhealth.org -- Everyone hates slo
Re: [Ganglia-general] Additional Bars
I would imagine if you are missing library dependencies rrdtool will not work. Try executing rrdtool by hand. Ghassan Elnajjar wrote: >Hi Vladimir, > >After installing the rrdtool 1.3.9, all my graphs disappeared. There >were >errors installing the pango rpm so I removed and installed libgcc and >libffi rpm, but still got the same errors after the install of the >pango >rpm. Would these be the cause of my graphs disappearing? Can this be >fixed? Thanks. > > >#: rpm -Uvh libgcc-4.7.2-1.aix7.1.ppc.rpm >libgcc ## > >#: rpm -Uvh libffi-3.0.11-1.aix5.1.ppc.rpm >libffi ## > >rpm -Uvh pango-1.24.5-1.aix5.1.ppc.rpm >pango ## >Could not load program /opt/freeware/bin/pango-querymodules: >Could not load module >/opt/freeware/lib/libgobject-2.0.a(libgobject-2.0.so.0). >Dependent module libffi.a(libffi.so.5) could not be loaded. >Could not load module libffi.a(libffi.so.5). >System error: No such file or directory >Could not load module pango-querymodules. >Dependent module >/opt/freeware/lib/libgobject-2.0.a(libgobject-2.0.so.0) could not be >loaded. >Could not load module . >execution of pango-1.24.5-1 script failed, exit status 255 > > > >Ghassan > > > > > >From: Vladimir Vuksan >To: Ghassan Elnajjar >Cc: ganglia-general@lists.sourceforge.net >Date: 10/19/2012 12:11 PM >Subject:Re: [Ganglia-general] Additional Bars > > > >I'm afraid you'll have to update all those too. > >Vladimir > >On Fri, 19 Oct 2012, Ghassan Elnajjar wrote: > >> I have to upgrade the following files as well. Do I need to do that >or >I can just use the --nodeps parameter? >> >> >> Ghassan >> >> >> #: rpm -Uvh rrdtool-1.3.9-1.aix5.1.ppc.rpm >> >> cairo >= 1.8.8 is needed by rrdtool-1.3.9-1 >> freetype2 >= 2.3.12 is needed by rrdtool-1.3.9-1 >> libart_lgpl >= 2.3.20 is needed by rrdtool-1.3.9-1 >> libpng >= 1.2.44 is needed by rrdtool-1.3.9-1 >> pango >= 1.24.5 is needed by rrdtool-1.3.9-1 >> dejavu-sans-mono-fonts is needed by rrdtool-1.3.9-1 >> dejavu-lgc-sans-mono-fonts is needed by rrdtool-1.3.9-1 >> libcairo.a(libcairo.so.2) is needed by rrdtool-1.3.9-1 >> libpango-1.0.a(libpango-1.0.so.0) is needed by >rrdtool-1.3.9-1 >> libpangocairo-1.0.a(libpangocairo-1.0.so.0) is needed by >rrdtool-1.3.9-1 >> >> >> > >> >> From:Ghassan Elnajjar >> To:Vladimir Vuksan >> Cc:ganglia-general@lists.sourceforge.net >> Date:10/19/2012 11:42 AM >> Subject:Re: [Ganglia-general] Additional Bars >> >> >_ >> >> >> >> Thank you. Do I just upgrade right on top of the 1.2.30 or there is >a >specific rpm command that I need to execute? >> >> Is rpm -U sufficient? >> >> >> Ghassan >> >> >> >> >> >> From:Vladimir Vuksan >> To:Ghassan Elnajjar >> Cc:ganglia-general@lists.sourceforge.net >> Date:10/19/2012 11:33 AM >> Subject:Re: [Ganglia-general] Additional Bars >> >> >_ >> >> >> >> That could be the problem. Can you upgrade to rrdtool 1.3+. We use a >lot >> of features from 1.3+ so things will look off if you use rrdtool 1.2. >> >> Vladimir >> >> On Fri, 19 Oct 2012, Ghassan Elnajjar wrote: >> >> > I'm using rrdtool-1.2.30-5. >> > >> > >> > Ghassan > >NOTE: The information contained in this message may be privileged and >confidential and protected from disclosure. If the reader of this >message >is not the intended recipient, you are hereby notified that any >dissemination, distribution or copying of this communication is >strictly >prohibited. If you have received this communication in error, please >notify us immediately by replying to the message and deleting it from >your >computer. >-- >VCU Health System >http://www.vcuhealth.org -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_sfd2d_oct___ Ganglia-general mailing list Ganglia-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-general