forked from Zitrax/Alive
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TODO.txt
24 lines (15 loc) · 783 Bytes
/
TODO.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
Currently mail can be sent when we switch state, we should allow for a arbitrary actions or commands to be run at this point. This should be configurable in a config file.
F.ex:
[site.com]
down = no
time = 1296924119
du = action_one()
ud = reboot(123.45.67.89)
Where 'du' are the actions to perform when site goes from down to up.
Actions can be configured in a separate file (actions.cfg):
[reboot_server]
command = ssh %param1% shutdown -r now
where %param1% is the parameter in () in the site configuration.
Preferably the actions could be both an external command or some additional python code.
Update: Triggers has now been added, but in a simple form that allows for a single shell command to be run
* Should allow to configure the email notification in the cfg file