mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 08:40:24 +00:00
Merge pull request #1480 from ypapouin/deadman-logic-system-monitoring
New setting to be compatible with external services monitoring cron jobs and similar periodic processes
This commit is contained in:
@@ -47,6 +47,7 @@ print &ui_table_row($text{'sched_warn'},
|
||||
&ui_radio("warn", int($config{'sched_warn'}),
|
||||
[ [ 1, $text{'sched_warn1'} ],
|
||||
[ 0, $text{'sched_warn0'} ],
|
||||
[ 3, $text{'sched_warn3'} ],
|
||||
[ 2, $text{'sched_warn2'} ] ]), 3);
|
||||
|
||||
# Send email to
|
||||
|
||||
@@ -160,6 +160,7 @@ sched_offset=with offset
|
||||
sched_warn=Send email when
|
||||
sched_warn1=When a service changes status
|
||||
sched_warn0=When a service goes down
|
||||
sched_warn3=As long as the service is up
|
||||
sched_warn2=Any time service is down
|
||||
sched_single=Send one email per service?
|
||||
sched_hours=Run monitor during hours
|
||||
|
||||
@@ -160,6 +160,7 @@ sched_offset=avec un décalage
|
||||
sched_warn=Envoyer un message électronique quand
|
||||
sched_warn1=Un service change d'état
|
||||
sched_warn0=Un service s'arrête
|
||||
sched_warn3=Tant que le service est actif
|
||||
sched_warn2=Chaque fois qu'un service s'arrête
|
||||
sched_single=Envoyer un message électronique par service ?
|
||||
sched_hours=Exécuter le moniteur aux heures suivantes
|
||||
|
||||
@@ -168,6 +168,11 @@ foreach $serv (@services) {
|
||||
$suffix = "isdown";
|
||||
$out = &run_on_command($serv, $serv->{'ondown'}, $r);
|
||||
}
|
||||
elsif ($warn == 3 && $up == 1) {
|
||||
# Service is up now
|
||||
$suffix = "isup";
|
||||
$out = &run_on_command($serv, $serv->{'onup'}, $r);
|
||||
}
|
||||
|
||||
# If something happened, notify people
|
||||
if ($suffix &&
|
||||
|
||||
Reference in New Issue
Block a user