The sge.sh is something that you should have already that sets the various ENV variables needed to run SGE programs. Specifically, it must set at least SGE_ROOT, SGE_CELL and SGE_ARCH, and probably update your PATH correctly as well (so the script can find the 'qstat' binary).
The PHP script goes in <wwwroot>/ganglia/graphs.d/, and you will need to edit the conf.php file to include "jobqueue" in the $optional_graphs list. On Tue, Apr 19, 2011 at 09:56, Mostafa Ismail <mostafa.ism...@itworx.com> wrote: > Hello Jesse, > > Thanks for fast reply. I have some questions here: > > - I can found the "/etc/profile.d/sge.sh" script the you're sourcing at the > "ganglia_sge". > - Also where can I add the php script. > > Thanks, > Mostafa ismail > > -----Original Message----- > From: Jesse Becker [mailto:haw...@gmail.com] > Sent: Tuesday, April 19, 2011 3:39 PM > To: Mostafa Ismail > Cc: ganglia-general@lists.sourceforge.net > Subject: Re: [Ganglia-general] Monitoring SGE queues using Ganglia > > On Tue, Apr 19, 2011 at 09:25, Mostafa Ismail <mostafa.ism...@itworx.com> > wrote: >> Hello, >> >> >> >> Is it possible to monitor the SGE queues (such as all.q) using >> ganglia? I did search at "Ganglia-general" forum and I found no match. > > Yes, it is possible. You need to do two things: > > 1) collect the metrics from SGE. > 2) graph the metrics. > > Attached is a script ("ganglia_sge") that I run from cron every few minutes > to collect metrics, and a custom report that can display them. > > > > -- > Jesse Becker > -- Jesse Becker ------------------------------------------------------------------------------ Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev _______________________________________________ Ganglia-general mailing list Ganglia-general@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ganglia-general