Changes between Version 14 and Version 15 of Documentation/Configuration


Ignore:
Timestamp:
05/24/13 12:38:35 (8 years ago)
Author:
ramonb
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Documentation/Configuration

    v14 v15  
    242242== jobarchived ==
    243243
    244 1. Edit Jobarchived's config to reflect your settings:
    245 {{{
    246 vi /etc/jobarchived.conf
     244Here is an example of a typical jobmond.conf file contents:
     245{{{
     246[DEFAULT]
     247# Wether or not to run as a daemon in background
     248#
     249DAEMONIZE           : 1
     250
     251# Specify debugging level here (only when _not_ DAEMONIZE)
     252#
     253# 11 = XML: metrics
     254# 10 = XML: host, cluster, grid, ganglia
     255# 9  = RRD activity, gmetad config parsing
     256# 8  = RRD file activity
     257# 6  = SQL
     258# 1  = daemon threading
     259# 0  = errors
     260#
     261# default: 0
     262#
     263DEBUG_LEVEL         : 1
     264
     265# Enable logging to syslog?
     266#
     267USE_SYSLOG          : 1
     268
     269# What level msg'es should be logged to syslog?
     270#
     271# usually: lvl 0 (errors)
     272#
     273SYSLOG_LEVEL            : 0
     274
     275# Which facility to use in syslog
     276#
     277# Known:
     278#       KERN, USER, MAIL, DAEMON, AUTH, LPR,
     279#       NEWS, UUCP, CRON and LOCAL0 through LOCAL7
     280#
     281SYSLOG_FACILITY         : DAEMON
     282
     283# Where is the gmetad.conf located
     284#
     285GMETAD_CONF         : /etc/ganglia/gmetad.conf
     286
     287# Where to grab XML data from
     288# Usually: local gmetad (port 8651)
     289#
     290# Syntax: <hostname>:<port>
     291#
     292ARCHIVE_XMLSOURCE       : localhost:8651
     293
     294# List of data_source names to archive for
     295#
     296# Syntax: [ "<clustername>", "<clustername>" ]
     297#
     298ARCHIVE_DATASOURCES     : [ "My Cluster" ]
     299
     300# Amount of hours to store in one single archived rrd
     301#
     302# If you would like less files you can set this bigger
     303# but could degrade performance
     304#
     305# For now 12 hours seems to work: 2 periods per day
     306#
     307ARCHIVE_HOURS_PER_RRD       : 12
     308
     309# Which metrics to exclude from archiving
     310# NOTE: This can be a regexp or a string
     311#
     312ARCHIVE_EXCLUDE_METRICS     : ".*Temp.*", ".*RPM.*", ".*Version.*", ".*Tag$", "boottime", "gexec", "os.*", "machine_type"
     313
     314# Where to store the archived rrd's
     315#
     316ARCHIVE_PATH            : /usr/local/jobmonarch
     317
     318# Archive's SQL dbase to use
     319#
     320# Syntax: <hostname>/<database>
     321#
     322JOB_SQL_DBASE           : localhost/jobarchive
     323JOB_SQL_USER                    : jobarchive
     324
     325#JOB_SQL_PASSWORD        :
     326
     327# Timeout for jobs in archive
     328#
     329# Assume job has already finished while jobarchived was not running
     330# after this amount of hours: the it will be finished anyway in the database
     331#
     332JOB_TIMEOUT         : 168
     333
     334# Location of rrdtool binary
     335#
     336RRDTOOL             : /usr/bin/rrdtool
     337}}}
     338
     339=== DEBUG_LEVEL ===
     340
     341* required
     342* valid values: any number between 0 - 20
     343
     344This level sets which level of messages are either syslogged (in daemon mode) and/or printed to stdout (in foreground mode)
     345
     346=== DAEMONIZE ===
     347
     348* required
     349* valid values: 0 or 1
     350  * 0 : Don't daemonize: run in the foreground : any DEBUG_LEVEL messages are sent to stdout
     351  * 1 : Daemonize: run in the background : any DEBUG_LEVEL messages are sent to syslog
     352
     353Determines wether or not jobarchived should run as daemon in background.
     354
     355
     356== web ==
     357
     3581. Change your Ganglia's web template to Job Monarch
     359{{{
     360vi /var/www/ganglia/conf.php
     361}}}
     362{{{
     363$template_name = "job_monarch";
     364}}}
     3652. Change Job Monarch's config to reflect your settings:
     366{{{
     367vi /var/www/ganglia/addons/job_monarch/conf.php
    247368}}}
    248369( see config comments for syntax and explanation )
    249 
    250 == web ==
    251 
    252 1. Change your Ganglia's web template to Job Monarch
    253 {{{
    254 vi /var/www/ganglia/conf.php
    255 }}}
    256 {{{
    257 $template_name = "job_monarch";
    258 }}}
    259 2. Change Job Monarch's config to reflect your settings:
    260 {{{
    261 vi /var/www/ganglia/addons/job_monarch/conf.php
    262 }}}
    263 ( see config comments for syntax and explanation )