[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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 
                                       hobbit (at) hswn.dk                      
             02/04/2009 09:36                                           cc 
             AM                                                            
                                                                   Subject 
                                       Re: [hobbit] Can Hobbit Generate a  
             Please respond to         List of Systems with Low            
              hobbit (at) hswn.dk           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 <John.Browning (at) sas.com>
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)




  To unsubscribe from the hobbit list, send an e-mail to
  hobbit-unsubscribe (at) hswn.dk