2014年12月30日 星期二

Python get supervisord process Info

import xmlrpclib
server = xmlrpclib.Server('http://localhost:9001/RPC2')
status_response = server.supervisor.getAllProcessInfo()
print status_response




References :
XML-RPC API Documentation — Supervisor 3.1.3 documentation

Python get gearman job queue status

import gearman
gm_admin_client = gearman.GearmanAdminClient(['localhost:4730'])
status_response = gm_admin_client.get_status()
print status_response




References :
1.3. gearman.admin_client — Gearman Admin client — python-gearman v2.0.2 documentation

2014年12月29日 星期一

FAN - Fully Automated Nagios

比較 :
OMD - Open Monitoring Distribution
Integrated tools :
  • Nagios : core monitoring application;
  • Nagios plug-ins : plug-ins to monitor different equipments;
  • Centreon : Web interface for Nagios (Centreon is one of the best for this purpose!);
  • NagVis : advanced mapping (geographical, functional, by services…);
  • NDOUtils : stores the Nagios data into a MySQL database;
  • NRPE : makes it possible to monitor the Windows servers (the NRPE daemon is not provided);
  • NaReTo (Nagios Reporting Tools): reporting tool (availability report).





FAN « Fully Automated Nagios

OMD - Open Monitoring Distribution

比較 :
FAN - Fully Automated Nagios

OMD 包含軟體 :
  • Nagios
  • Icinga
  • Shinken
  • NagVis
  • rrdtool/rrdcached
  • Check_MK
  • MK Livestatus
  • Multisite
  • Thruk
  • Mod-Gearman
  • check_logfiles
  • check_oracle_health
  • check_mysql_health
  • jmx4perl
  • check_webinject
  • check_multi

改進功能:
Livestatus and Livecheck

OMD Architecture :



References :
Open Monitoring Distribution
The Check_MK Monitoring System
Best Monitoring Solution - OMD (Nagios + Check_MK) | IT on Demand

Thruk

功能:
Multibackend monitoring webinterface

支援監控軟體:
Naemon, Nagios, Icinga, Shinken

Backend 協定:
Livestatus API




References :
Thruk Monitoring Webinterface

Nagios NagVis

功能:
使用地圖、拓撲圖、機櫃圖等背景照片顯示 Nagios 監控的主機狀態

支援的 Backends 協定:
mklivestatus, ndomy, ndo2fs, merlinmy

設定檔位置:
/etc/nagvis/nagvis.ini.php




References :
Backends
Use Shinken with Nagvis — Shinken Manual 2.2-RC1 documentation
[转]安装使用Nagvis插件 - OneCMDB中文

Composer - PHP Dependency Manager

Composer - PHP Dependency Manager

安裝 Composer
$ curl -sS https://getcomposer.org/installer | php
$ ls composer.phar

安裝 Composer 管理的專案
Composer 會讀取 composer.json 設定檔,並將函式庫安裝在 vendor/ 資料夾
$ php composer.phar install