alignak-web服务的接收器模块

alignak_module_ws的Python项目详细描述


alignak网络服务模块

Develop branch build statusDevelopment code static analysisDevelopment code tests coverageDevelopment branch documentation StatusMost recent PyPi versionJoin the chat #alignak on freenode.netLicense AGPL v3

重要信息

此模块将一些web服务公开为alignak监视框架的rest api。事实上,它扩展了现有的API API与一些外部新服务,如:报告主机/服务检查结果,发送命令对齐,从Orack获得信息,……/P>

重要的是要考虑到此模块公开的服务目前实现了作为概念证明而开发的第一个版本,并且它们可能在没有任何升序兼容性的情况下被重构。

如果您想使用当前界面,请随时与我们联系,我们将随时向您通报当前的操作和决定;)

安装

此模块的安装将复制alignak默认配置目录中的一些配置文件(例如/usr/local/etc/alignak)。复制的文件位于用于模块的默认子目录中(例如arbiter/modules)。

来自Pypi

从pypi安装模块:

sudo pip install alignak-module-ws

从源文件

从源文件安装模块(用于开发):

git clone https://github.com/Alignak-monitoring-contrib/alignak-module-ws
cd alignak-module-ws
sudo pip install . -e

注意:使用“sudo python setup.py install”将无法正确管理包配置文件!推荐的方法是使用'pip';)

简短说明

alignak的这个模块公开了一些alignak web服务:

  • GET / will return the list of the available endpoints
  • GET /alignak_map that will return the map and status of all the Alignak running daemons
  • GET /host to get an host information
  • GET /hostgroup to get an hostgroup information
  • GET /alignak_logs to view the Alignak events history from an Alignak backend
  • POST /alignak_command that will notify an external command to the Alignak framework
  • PATCH /host/<host_name> that allows to send live state for an host and its services, update host custom variables, enable/disable host checks

配置

安装后,此模块在/usr/local/etc/alignak/arbiter/modules目录中有自己的配置文件。 默认配置文件是mod-ws.cfg。对该文件进行了注释,以帮助配置所有参数。

要配置alignak守护进程(receiver是推荐的守护进程),请使用此模块:

  • edit your daemon configuration file (eg. receiver-master.cfg)
  • add your module alias value (web-services) to the modules parameter of the daemon

注意当前此模块的ssl部分尚未测试!

文档

alignak web服务模块有an online documentation page

单击此页上的一个文档徽章浏览文档。

错误、问题和贡献

欢迎并鼓励对本项目的贡献…issues in the project repository是提出信息的常见方式。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
如何下载多个。java中的PDF文件   linux Java打开文件,形成实际用户主页~/   java如何在时间线内维护TableView选择?   java Hibernate注释@Where vs@WhereJoinTable   Java读/写访问异常FileNotFoundException(访问被拒绝)   继承在Java中是否可以扩展最后一个类?   Android HttpClient使用java使应用程序崩溃。lang.OutOfMemoryError:pthread_create   java为什么即使我在proguardproject中添加了jar文件,也会出现这种错误。txt?   如果添加JButton,swing Java FocusListener和KeyListener将无法工作   java使用solrj检索json格式的SolrDocument   使用Microsoft Visual Studio代码进行Java编程   java NoClassDefFoundError:org/apache/log4j/Logger   哈希集中包含相等对象的java   java中的参数化构造函数是否需要有一个主体?   java类似于NetBeans不必要的代码检测器   Java实践问题   java Blackberry“[projectname].调试文件丢失”和“I/O错误:找不到程序”jar