244 | | 1. Edit Jobarchived's config to reflect your settings: |
245 | | {{{ |
246 | | vi /etc/jobarchived.conf |
| 244 | Here 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 | # |
| 249 | DAEMONIZE : 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 | # |
| 263 | DEBUG_LEVEL : 1 |
| 264 | |
| 265 | # Enable logging to syslog? |
| 266 | # |
| 267 | USE_SYSLOG : 1 |
| 268 | |
| 269 | # What level msg'es should be logged to syslog? |
| 270 | # |
| 271 | # usually: lvl 0 (errors) |
| 272 | # |
| 273 | SYSLOG_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 | # |
| 281 | SYSLOG_FACILITY : DAEMON |
| 282 | |
| 283 | # Where is the gmetad.conf located |
| 284 | # |
| 285 | GMETAD_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 | # |
| 292 | ARCHIVE_XMLSOURCE : localhost:8651 |
| 293 | |
| 294 | # List of data_source names to archive for |
| 295 | # |
| 296 | # Syntax: [ "<clustername>", "<clustername>" ] |
| 297 | # |
| 298 | ARCHIVE_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 | # |
| 307 | ARCHIVE_HOURS_PER_RRD : 12 |
| 308 | |
| 309 | # Which metrics to exclude from archiving |
| 310 | # NOTE: This can be a regexp or a string |
| 311 | # |
| 312 | ARCHIVE_EXCLUDE_METRICS : ".*Temp.*", ".*RPM.*", ".*Version.*", ".*Tag$", "boottime", "gexec", "os.*", "machine_type" |
| 313 | |
| 314 | # Where to store the archived rrd's |
| 315 | # |
| 316 | ARCHIVE_PATH : /usr/local/jobmonarch |
| 317 | |
| 318 | # Archive's SQL dbase to use |
| 319 | # |
| 320 | # Syntax: <hostname>/<database> |
| 321 | # |
| 322 | JOB_SQL_DBASE : localhost/jobarchive |
| 323 | JOB_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 | # |
| 332 | JOB_TIMEOUT : 168 |
| 333 | |
| 334 | # Location of rrdtool binary |
| 335 | # |
| 336 | RRDTOOL : /usr/bin/rrdtool |
| 337 | }}} |
| 338 | |
| 339 | === DEBUG_LEVEL === |
| 340 | |
| 341 | * required |
| 342 | * valid values: any number between 0 - 20 |
| 343 | |
| 344 | This 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 | |
| 353 | Determines wether or not jobarchived should run as daemon in background. |
| 354 | |
| 355 | |
| 356 | == web == |
| 357 | |
| 358 | 1. Change your Ganglia's web template to Job Monarch |
| 359 | {{{ |
| 360 | vi /var/www/ganglia/conf.php |
| 361 | }}} |
| 362 | {{{ |
| 363 | $template_name = "job_monarch"; |
| 364 | }}} |
| 365 | 2. Change Job Monarch's config to reflect your settings: |
| 366 | {{{ |
| 367 | vi /var/www/ganglia/addons/job_monarch/conf.php |