dist_pythonconfig_DATA = \
python.d/example.conf \
python.d/mysql.conf \
+ python.d/phpfpm.conf \
$(NULL)
example: yes
mysql: yes
phpfpm: yes
+apache: yes
+nginx: yes
# scan directory specified in path and load all modules from there
names = os.listdir(path)
for mod in names:
- if mod.strip(MODULE_EXTENSION) in disabled:
- error(mod + ": disabled module ", mod.strip(MODULE_EXTENSION))
+ if mod.replace(MODULE_EXTENSION,"") in disabled:
+ error(mod + ": disabled module ", mod.replace(MODULE_EXTENSION,""))
continue
m = self._import_module(path + mod)
if m is not None:
pass
if changed_update and DEBUG_FLAG:
OVERRIDE_UPDATE_EVERY = True
- debug(PROGRAM, "overriding update interval to", str(int(cmd)))
+ debug(PROGRAM, "overriding update interval to", str(BASE_CONFIG['update_every']))
debug("started from", commands[0], "with options:", *commands[1:])
", ONLY_MODULES=" + str(modules))
# run plugins
+ modules = ['apache', 'nginx']
charts = PythonCharts(modules, MODULES_DIR, CONFIG_DIR + "python.d/", disabled)
charts.check()
charts.create()
dist_python_SCRIPTS = \
example.chart.py \
mysql.chart.py \
+ phpfpm.chart.py \
+ apache.chart.py \
+ nginx.chart.py \
python-modules-installer.sh \
$(NULL)
# default module values (can be overridden per job in `config`)
# update_every = 2
-# priority = 60000
-# retries = 5
+priority = 60000
+retries = 5
# default job configuration (overridden by python.d.plugin)
# config = {'local': {
'options': "'' 'apache Lifetime Avg. Response Size' 'bytes/request' statistics apache.bytesperreq area",
'lines': [
{"name": "size_req",
- "options": "'' absolute 1"},
+ "options": "'' absolute 1"}
]},
'workers': {
'options': "'' 'apache Workers' 'workers' workers apache.workers stacked",
'options': "'' 'apache Lifetime Avg. Response Size' 'bytes/request' statistics apache.bytesperreq area",
'lines': [
{"name": "size_sec",
- "options": "'' absolute 8 1000000*1000"}
+ "options": "'' absolute 8 1000000000"}
]},
'requests': {
'options': "''' 'apache Requests' 'requests/s' requests apache.requests line",
{"name": "closing",
"options": "'' absolute 1 1"},
{"name": "writing",
- "options": "'' absolute 1 1"},
+ "options": "'' absolute 1 1"}
]}
}
class Service(UrlService):
- url = "http://localhost/server-status?auto"
+ # url = "http://localhost/server-status?auto"
+ url = "http://www.apache.org/server-status?auto"
order = ORDER
charts = CHARTS
assignment = {"BytesPerReq": 'size_req',
# default module values (can be overridden per job in `config`)
# update_every = 2
-# priority = 60000
-# retries = 5
+priority = 60000
+retries = 5
# default job configuration (overridden by python.d.plugin)
# config = {'local': {
class Service(UrlService):
- url = "http://localhost/stub_status"
+ # url = "http://localhost/stub_status"
+ url = "http://toothless.dragon/stub_status"
order = ORDER
charts = CHARTS
# default module values (can be overridden per job in `config`)
# update_every = 2
-# priority = 60000
-# retries = 5
+priority = 60000
+retries = 5
# default job configuration (overridden by python.d.plugin)
# config = {'local': {