You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The installation of this module will copy some configuration files in the Alignak default configuration directory (eg. */usr/local/etc/alignak*). The copied files are located in the default sub-directory used for the modules (eg. *arbiter/modules*).
34
+
35
+
From PyPI
36
+
~~~~~~~~~
37
+
To install the module from PyPI:
38
+
::
39
+
40
+
sudo pip install alignak-module-ws
41
+
42
+
43
+
From source files
44
+
~~~~~~~~~~~~~~~~~
45
+
To install the module from the source files (for developing purpose):
**Note:** *using `sudo python setup.py install` will not correctly manage the package configuration files! The recommended way is really to use `pip`;)*
34
53
35
54
36
55
Short description
@@ -43,28 +62,33 @@ This module for Alignak exposes some Alignak Web Services:
43
62
* POST /alignak_command that will notify an external command to the Alignak framework
44
63
45
64
46
-
47
-
Installation
65
+
Web Services
48
66
------------
49
67
50
-
From PyPI
51
-
~~~~~~~~~
52
-
To install the module from PyPI:
68
+
Get Alignak state
69
+
~~~~~~~~~~~~~~~~~
70
+
To get Alignak daemons states, GET on the `alignak_map` endpoint:
53
71
::
54
72
55
-
pip install alignak-module-web-services
73
+
$wget http://demo.alignak.net:8888/alignak_map
56
74
75
+
$cat alignak_map
57
76
58
-
From source files
59
-
~~~~~~~~~~~~~~~~~
60
-
To install the module from the source files:
77
+
78
+
Send external command
79
+
~~~~~~~~~~~~~~~~~~~~~
80
+
To send an external command, JSON post on the `command` endpoint:
$curl -X POST -H "Content-Type: application/json" -d '{
84
+
"command": "PROCESS_HOST_CHECK_RESULT",
85
+
"element": "always_down",
86
+
"parameters": "0;Host is UP and running"
87
+
}' "http://demo.alignak.net:8888/command"
88
+
89
+
{"_status": "ok", "_result": "PROCESS_HOST_CHECK_RESULT;always_down;0;Host is UP and running"}
67
90
91
+
**Note:** for the available external commands, see the `Alignak documentation chapter on the external commands <http://alignak-doc.readthedocs.io/en/latest/20_annexes/external_commands_list.html>`_.
68
92
69
93
Configuration
70
94
-------------
@@ -79,16 +103,8 @@ To configure an Alignak daemon to use this module:
79
103
80
104
**Note** that currently the SSL part of this module as not yet been tested!
81
105
106
+
82
107
Bugs, issues and contributing
83
108
-----------------------------
84
109
85
-
Please report any issue using the project `GitHub repository: <https://github.com/Alignak-monitoring-contrib/alignak-module-ws/issues>`_.
86
-
87
-
License
88
-
-------
89
-
90
-
Alignak Module External commands is available under the `GPL version 3 license`_.
91
-
92
-
.. _GPL version 3 license: http://opensource.org/licenses/GPL-3.0
Contributions to this project are welcome and encouraged ... `issues in the project repository <https://github.com/alignak-monitoring-contrib/alignak-module-ws/issues>`_ are the common way to raise an information.
0 commit comments