Fix branding on poller-wrapper

This commit is contained in:
Paul Gear
2013-11-26 06:35:55 +10:00
parent 3306768e2d
commit 1af146e39b
2 changed files with 7 additions and 12 deletions

View File

@ -1,15 +1,15 @@
<?php
/*
Observium configuration to JSON converter
Written by Job Snijders <job.snijders@atrato.com)
Configuration to JSON converter
Written by Job Snijders <job.snijders@atrato.com>
*/
$defaults_file = 'includes/defaults.inc.php';
$config_file = 'config.php';
// move to observium install dir
// move to install dir
chdir(dirname($argv[0]));
function iscli() {

View File

@ -1,8 +1,8 @@
#! /usr/bin/env python
"""
poller-wrapper A small tool which wraps around the Observium poller
and tries to guide the polling process with a more modern
approach with a Queue and workers
poller-wrapper A small tool which wraps around the poller and tries to
guide the polling process with a more modern approach with a
Queue and workers
Author: Job Snijders <job.snijders@atrato.com>
Date: Jan 2013
@ -11,11 +11,6 @@
that should run simultaneously. If no argument is given it will assume
a default of 16 threads.
In /etc/cron.d/observium replace this (or the equivalent) poller entry:
*/5 * * * * root /opt/observium/poller.php -h all >> /dev/null 2>&1
with something like this:
*/5 * * * * root python /opt/observium/poller-wrapper.py 16 >> /dev/null 2>&1
Read more: http://postman.memetic.org/pipermail/observium/2012-November/001303.html
Ubuntu Linux: apt-get install python-mysqldb
@ -70,7 +65,7 @@ except IOError as e:
try:
config = json.loads(get_config_data())
except:
print "ERROR: Could not load or parse observium configuration, are PATHs correct?"
print "ERROR: Could not load or parse configuration, are PATHs correct?"
sys.exit(2)
poller_path = config['install_dir'] + '/poller.php'