Xymon Mailing List Archive search

Can Hobbit Generate a List of Systems with Low Utilization?

4 messages in this thread

list John Browning · Wed, 4 Feb 2009 09:59:55 -0500 ·
Hi All,
I was wondering if it was possible to have hobbit (I'm still currently running 4.2.0 as production) automatically generate a list of systems that have low utilization and or zero user logins over a certain amount of time.

Nothing Fancy, just a raw list of systems.

In the past we have used the metrics report but this becomes tedious for myself and managers since we currently have so many systems being monitored (1000+).

The metrics reports can be used after the fact that we know a system/group of systems isn't being used.

Thanks!
John Browning
UNIX Systems Administrator
R&D DataCenter
www.sas.com<http://www.sas.com/>;

SAS(r) ... THE POWER TO KNOW(r)
list Ralph Mitchell · Wed, 4 Feb 2009 09:24:50 -0600 ·
Take a look in the "trends" column - you may have a graph showing number of
users & processes.  If so, you could probably slap something together to
cycle through the RRD files and extract the user counts and generate
whatever kind of report you want.

Ralph Mitchell
quoted from John Browning


On Wed, Feb 4, 2009 at 8:59 AM, John Browning <user-45e7970967c7@xymon.invalid> wrote:
Hi All,
I was wondering if it was possible to have hobbit (I'm still currently
running 4.2.0 as production) automatically generate a list of systems that
have low utilization and or zero user logins over a certain amount of time.

Nothing Fancy, just a raw list of systems.

In the past we have used the metrics report but this becomes tedious for
myself and managers since we currently have so many systems being monitored
(1000+).

The metrics reports can be used after the fact that we know a system/group
of systems isn't being used.

Thanks!
John Browning
UNIX Systems Administrator
R&D DataCenter
www.sas.com<http://www.sas.com/>;

SAS(r) ... THE POWER TO KNOW(r)

list Bryan A Kennedy · Wed, 4 Feb 2009 09:50:46 -0600 ·
I have been using a Perl script to gather CPU load from rrd files on all
our servers being monitored and report the numbers monthly. Our server is
RedHat Linux.  It is run on the first of the month for the previous month's
data.  My steps to do this are below.  This script needs Perl and either
Linux's date command or Solaris's GNU date command.  The crontab and Report
menu section are not needed if you don't want it.  Hope it helps.

1. Copy attached script to your Hobbit server
     (See attached file: utlthreshold.pl)
2. Edit script variables for your site paths
3. Edit ~hobbit/server/www/menu/menu_items.js and add
      ['Server Utilization', '/hobbit/periodic/utl/utiliz.html'],
 under the Reports section
4. Add "45 0 * * 1 ~hobbit/server/bin/utlthreshold.pl" to Hobbit's crontab
using your paths


Regards,

Bryan Kennedy


             Ralph Mitchell                                                
             <ralphmitchell at gm                                             
             ail.com>                                                   To 
                                       user-ae9b8668bcde@xymon.invalid                      
             02/04/2009 09:36                                           cc 
             AM                                                            
                                                                   Subject 
                                       Re: [hobbit] Can Hobbit Generate a  
             Please respond to         List of Systems with Low            
              user-ae9b8668bcde@xymon.invalid           Utilization?                        
quoted from Ralph Mitchell
                                                                           
                                                                           
Take a look in the "trends" column - you may have a graph showing number of
users & processes.  If so, you could probably slap something together to
cycle through the RRD files and extract the user counts and generate
whatever kind of report you want.

Ralph Mitchell


On Wed, Feb 4, 2009 at 8:59 AM, John Browning <user-45e7970967c7@xymon.invalid>
wrote:
  Hi All,
  I was wondering if it was possible to have hobbit (I'm still currently
  running 4.2.0 as production) automatically generate a list of systems
  that have low utilization and or zero user logins over a certain amount
  of time.

  Nothing Fancy, just a raw list of systems.

  In the past we have used the metrics report but this becomes tedious for
  myself and managers since we currently have so many systems being
  monitored (1000+).

  The metrics reports can be used after the fact that we know a
  system/group of systems isn't being used.

  Thanks!
  John Browning
  UNIX Systems Administrator
  R&D DataCenter
  www.sas.com<http://www.sas.com/>;

  SAS(r) ... THE POWER TO KNOW(r)
Attachments (1)
list John Browning · Wed, 4 Feb 2009 13:19:15 -0500 ·
OK thank you for the responses, very helpful
I will see what I can throw together!
quoted from Bryan A Kennedy

-----Original Message-----
From: Bryan A Kennedy [mailto:user-89addf3fbee6@xymon.invalid] Sent: Wednesday, February 04, 2009 10:51 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: Re: [hobbit] Can Hobbit Generate a List of Systems with Low Utilization?

I have been using a Perl script to gather CPU load from rrd files on all our servers being monitored and report the numbers monthly. Our server is RedHat Linux.  It is run on the first of the month for the previous month's data.  My steps to do this are below.  This script needs Perl and either Linux's date command or Solaris's GNU date command.  The crontab and Report menu section are not needed if you don't want it.  Hope it helps.

1. Copy attached script to your Hobbit server
     (See attached file: utlthreshold.pl) 2. Edit script variables for your site paths 3. Edit ~hobbit/server/www/menu/menu_items.js and add
      ['Server Utilization', '/hobbit/periodic/utl/utiliz.html'],
 under the Reports section
4. Add "45 0 * * 1 ~hobbit/server/bin/utlthreshold.pl" to Hobbit's crontab using your paths


Regards,

Bryan Kennedy


                                                                                                                                                                   Ralph Mitchell                                                             <ralphmitchell at gm                                                          ail.com>                                                   To                                        user-ae9b8668bcde@xymon.invalid                                   02/04/2009 09:36                                           cc              AM                                                                                                                               Subject                                        Re: [hobbit] Can Hobbit Generate a               Please respond to         List of Systems with Low                          user-ae9b8668bcde@xymon.invalid           Utilization?                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     


Take a look in the "trends" column - you may have a graph showing number of users & processes.  If so, you could probably slap something together to cycle through the RRD files and extract the user counts and generate whatever kind of report you want.

Ralph Mitchell


On Wed, Feb 4, 2009 at 8:59 AM, John Browning <user-45e7970967c7@xymon.invalid>
wrote:
  Hi All,
  I was wondering if it was possible to have hobbit (I'm still currently
  running 4.2.0 as production) automatically generate a list of systems
  that have low utilization and or zero user logins over a certain amount
  of time.

  Nothing Fancy, just a raw list of systems.

  In the past we have used the metrics report but this becomes tedious for
  myself and managers since we currently have so many systems being
  monitored (1000+).

  The metrics reports can be used after the fact that we know a
  system/group of systems isn't being used.

  Thanks!
  John Browning
  UNIX Systems Administrator
  R&D DataCenter
  www.sas.com<http://www.sas.com/>;

  SAS(r) ... THE POWER TO KNOW(r)