Try running this:
  qstat -u '*'

Yes, you need the quotes.

On Mon, May 2, 2011 at 03:43, Mostafa Ismail <mostafa.ism...@itworx.com> wrote:
> Hello Jesse,
>
> Actually I found that the "qstat" doesn't return any output ... except when 
> using "-f" it display all queues.
>
> [root@sge01 tmp]# qstat
> [root@sge01 tmp]# qstat  -f
> queuename                      qtype resv/used/tot. load_avg arch          
> states
> ---------------------------------------------------------------------------------
> all.q@pexe1 BIP         0/16/16        1.57     lx24-amd64
> ---------------------------------------------------------------------------------
> all.q@pexe2 BIP         0/16/16        1.76     lx24-amd64
> ---------------------------------------------------------------------------------
> all.q@pexe3 BIP         0/16/16        1.62     lx24-amd64
> ~
> ~
> ~
> [root@sge01 tmp]#
>
> What does it mean?
>
> Thanks,
> Mostafa Ismail
>
> -----Original Message-----
> From: Jesse Becker [mailto:haw...@gmail.com]
> Sent: Tuesday, April 19, 2011 7:17 PM
> To: Bernard Li
> Cc: Mostafa Ismail; ganglia-general@lists.sourceforge.net
> Subject: Re: [Ganglia-general] Monitoring SGE queues using Ganglia
>
> Yeah, pretty close to the same file.  I'll post update both the
> collector and php file later on.
>
> On Tue, Apr 19, 2011 at 13:10, Bernard Li <bern...@vanhpc.org> wrote:
>> Hi Jesse:
>>
>> Is the script you have included the same as the one found here?
>>
>> https://github.com/ganglia/gmetric/tree/master/hpc/sge_jobs
>>
>> I didn't see the PHP file in the repo though.
>>
>> Perhaps you can update what's available in the repo and point users
>> there in the future.
>>
>> Thanks!
>>
>> Bernard
>>
>> On Tue, Apr 19, 2011 at 7:00 AM, Jesse Becker <haw...@gmail.com> wrote:
>>> 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
>>>
>>
>
>
>
> --
> Jesse Becker
>



-- 
Jesse Becker

------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Ganglia-general mailing list
Ganglia-general@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ganglia-general

Reply via email to