Skip to content

Commit

Permalink
increase number of cycles from 5 to 20 for all homematic relevant
Browse files Browse the repository at this point in the history
service port restart jobs. This should increase the max time from 65
seconds to 260 seconds before a service (e.g. ReGaHss) is forced
restarted due to being assumed to be dead. This change should help
large installations with lots of devices and functions/rooms to not
exceed waiting limits and thus risk to get ReGaHss force restarted.
(refs
#2975 (comment))
  • Loading branch information
jens-maus committed Jan 11, 2025
1 parent ac4bd09 commit 27c1077
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 33 deletions.
22 changes: 11 additions & 11 deletions buildroot-external/overlay/base-raspmatic/etc/monitrc
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ check process eq3configd with pidfile /var/run/eq3configd.pid
stop = "/etc/init.d/S50eq3configd stop"
restart = "/etc/init.d/S50eq3configd restart"
if not exist for 1 cycles then restart
if failed port 43439 type udp for 5 cycles then restart
if failed port 43439 type udp for 20 cycles then restart
if 1 restart within 1 cycles then
exec "/bin/triggerAlarm.tcl 'eq3configd restarted' 'WatchDog: eq3configd-restart' true"
if filedescriptors > 95% for 5 cycles then
Expand Down Expand Up @@ -206,7 +206,7 @@ check process ssdpd with pidfile /var/run/ssdpd.pid
stop = "/etc/init.d/S50ssdpd stop"
restart = "/etc/init.d/S50ssdpd restart"
if not exist for 1 cycles then restart
if failed port 1900 type udp for 5 cycles then restart
if failed port 1900 type udp for 20 cycles then restart
if 1 restart within 1 cycles then
exec "/bin/triggerAlarm.tcl 'ssdpd restarted' 'WatchDog: ssdpd-restart' true"
if filedescriptors > 95% for 5 cycles then
Expand Down Expand Up @@ -237,7 +237,7 @@ check process hs485d with pidfile /var/run/hs485dLoader.pid
stop = "/etc/init.d/S60hs485d stop"
restart = "/etc/init.d/S60hs485d restart"
if not exist for 1 cycles then restart
if failed port 32000 for 5 cycles then restart
if failed port 32000 for 20 cycles then restart
if 1 restart within 1 cycles then
exec "/bin/triggerAlarm.tcl 'hs485d restarted' 'WatchDog: hs485d-restart' true"
if filedescriptors > 95% for 5 cycles then
Expand Down Expand Up @@ -289,7 +289,7 @@ check process rfd with pidfile /var/run/rfd.pid
stop = "/etc/init.d/S61rfd stop"
restart = "/etc/init.d/S61rfd restart"
if not exist for 1 cycles then restart
if failed port 32001 for 5 cycles then restart
if failed port 32001 for 20 cycles then restart
if 1 restart within 1 cycles then
exec "/bin/triggerAlarm.tcl 'rfd restarted' 'WatchDog: rfd-restart' true"
if filedescriptors > 95% for 5 cycles then
Expand All @@ -307,10 +307,10 @@ check process HMIPServer with pidfile /var/run/HMIPServer.pid
stop = "/etc/init.d/S62HMServer stop"
restart = "/etc/init.d/S62HMServer restart"
if not exist for 1 cycles then restart
#if failed port 9293 for 5 cycles then restart
#if failed port 32010 for 5 cycles then restart
if failed port 39292 for 5 cycles then restart
#if failed port 43438 type udp for 5 cycles then restart
#if failed port 9293 for 20 cycles then restart
#if failed port 32010 for 20 cycles then restart
if failed port 39292 for 20 cycles then restart
#if failed port 43438 type udp for 20 cycles then restart
if 1 restart within 1 cycles then
exec "/bin/triggerAlarm.tcl 'HMIPServer restarted' 'WatchDog: hmipserver-restart' true"
if filedescriptors > 95% for 5 cycles then
Expand All @@ -324,9 +324,9 @@ check process ReGaHss with pidfile /var/run/ReGaHss.pid
stop = "/etc/init.d/S70ReGaHss stop"
restart = "/etc/init.d/S70ReGaHss restart"
if not exist for 1 cycles then restart
if failed port 8183 protocol http for 5 cycles then restart
if failed port 31999 for 5 cycles then restart
if failed port 1998 type udp for 5 cycles then restart
if failed port 8183 protocol http for 20 cycles then restart
if failed port 31999 for 20 cycles then restart
if failed port 1998 type udp for 20 cycles then restart
if 1 restart within 1 cycles then
exec "/bin/triggerAlarm.tcl 'ReGaHss restarted' 'WatchDog: regahss-restart' true"
if filedescriptors > 95% for 5 cycles then
Expand Down
22 changes: 11 additions & 11 deletions buildroot-external/overlay/base-raspmatic_lxc/etc/monitrc
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ check process eq3configd with pidfile /var/run/eq3configd.pid
stop = "/etc/init.d/S50eq3configd stop"
restart = "/etc/init.d/S50eq3configd restart"
if not exist for 1 cycles then restart
if failed port 43439 type udp for 5 cycles then restart
if failed port 43439 type udp for 20 cycles then restart
if 1 restart within 1 cycles then
exec "/bin/triggerAlarm.tcl 'eq3configd restarted' 'WatchDog: eq3configd-restart' true"
if filedescriptors > 95% for 5 cycles then
Expand Down Expand Up @@ -81,7 +81,7 @@ check process ssdpd with pidfile /var/run/ssdpd.pid
stop = "/etc/init.d/S50ssdpd stop"
restart = "/etc/init.d/S50ssdpd restart"
if not exist for 1 cycles then restart
if failed port 1900 type udp for 5 cycles then restart
if failed port 1900 type udp for 20 cycles then restart
if 1 restart within 1 cycles then
exec "/bin/triggerAlarm.tcl 'ssdpd restarted' 'WatchDog: ssdpd-restart' true"
if filedescriptors > 95% for 5 cycles then
Expand Down Expand Up @@ -112,7 +112,7 @@ check process hs485d with pidfile /var/run/hs485dLoader.pid
stop = "/etc/init.d/S60hs485d stop"
restart = "/etc/init.d/S60hs485d restart"
if not exist for 1 cycles then restart
if failed port 32000 for 5 cycles then restart
if failed port 32000 for 20 cycles then restart
if 1 restart within 1 cycles then
exec "/bin/triggerAlarm.tcl 'hs485d restarted' 'WatchDog: hs485d-restart' true"
if filedescriptors > 95% for 5 cycles then
Expand Down Expand Up @@ -164,7 +164,7 @@ check process rfd with pidfile /var/run/rfd.pid
stop = "/etc/init.d/S61rfd stop"
restart = "/etc/init.d/S61rfd restart"
if not exist for 1 cycles then restart
if failed port 32001 for 5 cycles then restart
if failed port 32001 for 20 cycles then restart
if 1 restart within 1 cycles then
exec "/bin/triggerAlarm.tcl 'rfd restarted' 'WatchDog: rfd-restart' true"
if filedescriptors > 95% for 5 cycles then
Expand All @@ -182,10 +182,10 @@ check process HMIPServer with pidfile /var/run/HMIPServer.pid
stop = "/etc/init.d/S62HMServer stop"
restart = "/etc/init.d/S62HMServer restart"
if not exist for 1 cycles then restart
#if failed port 9293 for 5 cycles then restart
#if failed port 32010 for 5 cycles then restart
if failed port 39292 for 5 cycles then restart
#if failed port 43438 type udp for 5 cycles then restart
#if failed port 9293 for 20 cycles then restart
#if failed port 32010 for 20 cycles then restart
if failed port 39292 for 20 cycles then restart
#if failed port 43438 type udp for 20 cycles then restart
if 1 restart within 1 cycles then
exec "/bin/triggerAlarm.tcl 'HMIPServer restarted' 'WatchDog: hmipserver-restart' true"
if filedescriptors > 95% for 5 cycles then
Expand All @@ -199,9 +199,9 @@ check process ReGaHss with pidfile /var/run/ReGaHss.pid
stop = "/etc/init.d/S70ReGaHss stop"
restart = "/etc/init.d/S70ReGaHss restart"
if not exist for 1 cycles then restart
if failed port 8183 protocol http for 5 cycles then restart
if failed port 31999 for 5 cycles then restart
if failed port 1998 type udp for 5 cycles then restart
if failed port 8183 protocol http for 20 cycles then restart
if failed port 31999 for 20 cycles then restart
if failed port 1998 type udp for 20 cycles then restart
if 1 restart within 1 cycles then
exec "/bin/triggerAlarm.tcl 'ReGaHss restarted' 'WatchDog: regahss-restart' true"
if filedescriptors > 95% for 5 cycles then
Expand Down
22 changes: 11 additions & 11 deletions buildroot-external/overlay/base-raspmatic_oci/etc/monitrc
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ check process eq3configd with pidfile /var/run/eq3configd.pid
stop = "/etc/init.d/S50eq3configd stop"
restart = "/etc/init.d/S50eq3configd restart"
if not exist for 1 cycles then restart
if failed port 43439 type udp for 5 cycles then restart
if failed port 43439 type udp for 20 cycles then restart
if 1 restart within 1 cycles then
exec "/bin/triggerAlarm.tcl 'eq3configd restarted' 'WatchDog: eq3configd-restart' true"
if filedescriptors > 95% for 5 cycles then
Expand Down Expand Up @@ -97,7 +97,7 @@ check process ssdpd with pidfile /var/run/ssdpd.pid
stop = "/etc/init.d/S50ssdpd stop"
restart = "/etc/init.d/S50ssdpd restart"
if not exist for 1 cycles then restart
if failed port 1900 type udp for 5 cycles then restart
if failed port 1900 type udp for 20 cycles then restart
if 1 restart within 1 cycles then
exec "/bin/triggerAlarm.tcl 'ssdpd restarted' 'WatchDog: ssdpd-restart' true"
if filedescriptors > 95% for 5 cycles then
Expand Down Expand Up @@ -128,7 +128,7 @@ check process hs485d with pidfile /var/run/hs485dLoader.pid
stop = "/etc/init.d/S60hs485d stop"
restart = "/etc/init.d/S60hs485d restart"
if not exist for 1 cycles then restart
if failed port 32000 for 5 cycles then restart
if failed port 32000 for 20 cycles then restart
if 1 restart within 1 cycles then
exec "/bin/triggerAlarm.tcl 'hs485d restarted' 'WatchDog: hs485d-restart' true"
if filedescriptors > 95% for 5 cycles then
Expand Down Expand Up @@ -180,7 +180,7 @@ check process rfd with pidfile /var/run/rfd.pid
stop = "/etc/init.d/S61rfd stop"
restart = "/etc/init.d/S61rfd restart"
if not exist for 1 cycles then restart
if failed port 32001 for 5 cycles then restart
if failed port 32001 for 20 cycles then restart
if 1 restart within 1 cycles then
exec "/bin/triggerAlarm.tcl 'rfd restarted' 'WatchDog: rfd-restart' true"
if filedescriptors > 95% for 5 cycles then
Expand All @@ -198,10 +198,10 @@ check process HMIPServer with pidfile /var/run/HMIPServer.pid
stop = "/etc/init.d/S62HMServer stop"
restart = "/etc/init.d/S62HMServer restart"
if not exist for 1 cycles then restart
#if failed port 9293 for 5 cycles then restart
#if failed port 32010 for 5 cycles then restart
if failed port 39292 for 5 cycles then restart
#if failed port 43438 type udp for 5 cycles then restart
#if failed port 9293 for 20 cycles then restart
#if failed port 32010 for 20 cycles then restart
if failed port 39292 for 20 cycles then restart
#if failed port 43438 type udp for 20 cycles then restart
if 1 restart within 1 cycles then
exec "/bin/triggerAlarm.tcl 'HMIPServer restarted' 'WatchDog: hmipserver-restart' true"
if filedescriptors > 95% for 5 cycles then
Expand All @@ -215,9 +215,9 @@ check process ReGaHss with pidfile /var/run/ReGaHss.pid
stop = "/etc/init.d/S70ReGaHss stop"
restart = "/etc/init.d/S70ReGaHss restart"
if not exist for 1 cycles then restart
if failed port 8183 protocol http for 5 cycles then restart
if failed port 31999 for 5 cycles then restart
if failed port 1998 type udp for 5 cycles then restart
if failed port 8183 protocol http for 20 cycles then restart
if failed port 31999 for 20 cycles then restart
if failed port 1998 type udp for 20 cycles then restart
if 1 restart within 1 cycles then
exec "/bin/triggerAlarm.tcl 'ReGaHss restarted' 'WatchDog: regahss-restart' true"
if filedescriptors > 95% for 5 cycles then
Expand Down

0 comments on commit 27c1077

Please sign in to comment.