Nowe posty

xx Problem ze sterownikami. (5)
2024-04-13, 21:25:16
xx Instalacja xfce4 (2)
2024-04-13, 16:20:17
xx Serie kompilacji bez instalacji dla “emerge” w Gentoo (2)
2024-04-08, 18:40:04
xx Plasma 6 w Neonie ssie trochę mniej ... (17)
2024-04-05, 10:03:46
xx Problem z Linux Lite po instalacji (3)
2024-04-03, 14:23:40
xx Jak właczyć num locka przy starcie systemu debian 12? (12)
2024-04-02, 17:43:54
xx Brak dźwieku w systemie. (5)
2024-04-02, 16:13:41
xx Dystrybucja pod HP Omen (7)
2024-03-29, 11:33:05
xx [Poradnik] Wyszukiwanie Sterowników (2)
2024-03-27, 21:08:23
xx Ile pingwinów? (1)
2024-03-27, 08:59:24

Autor Wątek: [watchdog] problem z konfiguracją...  (Przeczytany 2824 razy)

nawasaqi

  • Gość
[watchdog] problem z konfiguracją...
« dnia: 2012-07-02, 17:07:06 »
Witam wszystkich userów...
Mam problem z konfiguracją watchdog'a mianowicie chciałbym aby co jakiś czas np. raz na 5 minut sprawdzał czy jest połączenie z Internetem poprzez pingowanie adresu załóżmy np. dla testu adres IP routera 192.168.101.1 jesli by nie było to żeby restartował się serwer.

Gdy skonfiguruję jak poniżej serwer mi się cały czas zapętla i non stop restartuje, nawet system nie jest wstanie się uruchomić bo wchodzi w ciągły reset.

Kiedyś było to opisane fajnie na blogu: http://az.linux.pl/2011/08/watchdog.html ale niestety nie działa a mi się zapomniało jak to poustawiać.

Z góry dziękuję za pomoc

ping         = 192.168.101.1
#ping         = 172.26.1.255
interface      = eth0
#file         = /var/log/messages
#change         = 1407

# Uncomment to enable test. Setting one of these values to '0' disables it.
# These values will hopefully never reboot your machine during normal use
# (if your machine is really hung, the loadavg will go much higher than 25)
#max-load-1      = 24
#max-load-5      = 18
#max-load-15      = 12

# Note that this is the number of pages!
# To get the real size, check how large the pagesize is on your machine.
#min-memory      = 1

#repair-binary      = /usr/sbin/repair
#repair-timeout      =
#test-binary      =
#test-timeout      =

#watchdog-device   = /dev/watchdog

# Defaults compiled into the binary
#temperature-device   =
#max-temperature   = 120

# Defaults compiled into the binary
#admin         = root
#interval      = 1
#logtick                = 1
#log-dir      = /var/log/watchdog

# This greatly decreases the chance that watchdog won't be scheduled before
# your machine is really loaded
realtime      = yes
priority      = 1

# Check if syslogd is still running by enabling the following line
#pidfile      = /var/run/syslogd.pid

Ksanderon

  • Gość
[watchdog] problem z konfiguracją...
« Odpowiedź #1 dnia: 2012-07-03, 18:19:51 »
po prostu napisz skrypt do crona, jeśli naprawdę to konieczne aby robić w ten sposób.