* Re: [Comm] ping daemon?
2005-11-02 10:11 [Comm] ping daemon? Valentin Lavrinenko
@ 2005-11-02 10:19 ` Nick S. Grechukh
2005-11-02 11:04 ` Valentin Lavrinenko
2005-11-02 10:20 ` Alexandr A. Alexandrov
` (3 subsequent siblings)
4 siblings, 1 reply; 8+ messages in thread
From: Nick S. Grechukh @ 2005-11-02 10:19 UTC (permalink / raw)
To: ALT Linux Community
В сообщении от Среда, 02-Ноя-2005 12:11 Valentin Lavrinenko написал(a):
> Здравствуйте все!
>
> Господа, не подскажете ли утилитку, которая могла бы в режиме демона
> попинговывать
> время от времени некоторый адрес, и, если он не пингуется, выпонять
> некоторую команду?
>
> "Внешняя" задача выглядит так: я хочу, чтобы на машине было постоянное
> ppp соединение
> (в данном случае GPRS, хотя это, вроде, неважно). Однако, бывают
> ситуации, когда соединение
> по всем характеристикам вроде живо, т. е., ifconfig показывает ppp0,
> pppd не отваливается по
> пропаже несущей, и т.п. Но при этом пакетики, судя по всему, не ходят,
> визически связи нет.
> В этой ситуации (а отследить ее, кроме как пингом, вроде бы и нечем)
> надо разорвать соединение
> и установить его заново.
monit.
# check host myserver with address 192.168.1.1
# if failed icmp type echo with timeout 3 seconds then alert
# if failed port 3306 then alert
# if failed port 80 protocol http then alert
# if failed port 443 type tcpssl protocol http
# with timeout 15 seconds then alert
# if failed host virtual.web.org port 80 protocol http
# and request "/help/info.html" then alert
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Comm] ping daemon?
2005-11-02 10:19 ` Nick S. Grechukh
@ 2005-11-02 11:04 ` Valentin Lavrinenko
0 siblings, 0 replies; 8+ messages in thread
From: Valentin Lavrinenko @ 2005-11-02 11:04 UTC (permalink / raw)
To: ALT Linux Community
Hi!
Nick S. Grechukh wrote:
>monit.
>
># check host myserver with address 192.168.1.1
># if failed icmp type echo with timeout 3 seconds then alert
># if failed port 3306 then alert
># if failed port 80 protocol http then alert
># if failed port 443 type tcpssl protocol http
># with timeout 15 seconds then alert
># if failed host virtual.web.org port 80 protocol http
># and request "/help/info.html" then alert
>
>
Спасибо! Похоже, именно то, что нужно. Щаз буду пробовать.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Comm] ping daemon?
2005-11-02 10:11 [Comm] ping daemon? Valentin Lavrinenko
2005-11-02 10:19 ` Nick S. Grechukh
@ 2005-11-02 10:20 ` Alexandr A. Alexandrov
2005-11-02 10:26 ` [Comm] " Denis Kirienko
` (2 subsequent siblings)
4 siblings, 0 replies; 8+ messages in thread
From: Alexandr A. Alexandrov @ 2005-11-02 10:20 UTC (permalink / raw)
To: Valentin Lavrinenko; +Cc: community
Доброго времени суток!
Wednesday, November 2, 2005, 1:11:17 PM, вы писали:
VL> Господа, не подскажете ли утилитку, которая могла бы в режиме демона
VL> попинговывать
VL> время от времени некоторый адрес, и, если он не пингуется, выпонять
VL> некоторую команду?
Утилитка называется sh. :-)
VL> "Внешняя" задача выглядит так: я хочу, чтобы на машине было постоянное
VL> ppp соединение
VL> (в данном случае GPRS, хотя это, вроде, неважно). Однако, бывают
VL> ситуации, когда соединение
VL> по всем характеристикам вроде живо, т. е., ifconfig показывает ppp0,
VL> pppd не отваливается по
VL> пропаже несущей, и т.п. Но при этом пакетики, судя по всему, не ходят,
VL> визически связи нет.
VL> В этой ситуации (а отследить ее, кроме как пингом, вроде бы и нечем)
VL> надо разорвать соединение
VL> и установить его заново.
VL> Спасибо за внимание!
--
С уважением,
Александр mailto:aaa@inrecolan.com
Девиз дня: Как жаль мне женщин, бросивших меня!..
^ permalink raw reply [flat|nested] 8+ messages in thread
* [Comm] Re: ping daemon?
2005-11-02 10:11 [Comm] ping daemon? Valentin Lavrinenko
2005-11-02 10:19 ` Nick S. Grechukh
2005-11-02 10:20 ` Alexandr A. Alexandrov
@ 2005-11-02 10:26 ` Denis Kirienko
2005-11-02 12:00 ` Alexandr A. Alexandrov
2005-11-02 14:24 ` [Comm] " Eugene A. Suchkov
2005-11-03 6:28 ` Александр Никольников
4 siblings, 1 reply; 8+ messages in thread
From: Denis Kirienko @ 2005-11-02 10:26 UTC (permalink / raw)
To: community
Valentin Lavrinenko wrote:
> Здравствуйте все!
>
> Господа, не подскажете ли утилитку, которая могла бы в режиме демона
> попинговывать
> время от времени некоторый адрес, и, если он не пингуется, выпонять
> некоторую команду?
Утилитка называется cron
Вот, например, что у меня в crontab написано для пинга всех точек
доступа и сообщения, что какая-то из них недоступна:
0 9 * * * for f in 2 3 4 5 6 7 8 9 ; do \
ping -c 10 192.168.4.$f &>/dev/null || \
echo "Wi-Fi точка $f недоступна" ; done
Уберите цикл и замените echo на то, что вам нужно.
--
Денис
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Comm] Re: ping daemon?
2005-11-02 10:26 ` [Comm] " Denis Kirienko
@ 2005-11-02 12:00 ` Alexandr A. Alexandrov
0 siblings, 0 replies; 8+ messages in thread
From: Alexandr A. Alexandrov @ 2005-11-02 12:00 UTC (permalink / raw)
To: Denis Kirienko; +Cc: community
Доброго времени суток!
Wednesday, November 2, 2005, 1:26:29 PM, вы писали:
>> Господа, не подскажете ли утилитку, которая могла бы в режиме демона
>> попинговывать
>> время от времени некоторый адрес, и, если он не пингуется, выпонять
>> некоторую команду?
DK> Утилитка называется cron
Таки работает именно shell :-)
DK> Вот, например, что у меня в crontab написано для пинга всех точек
DK> доступа и сообщения, что какая-то из них недоступна:
DK> 0 9 * * * for f in 2 3 4 5 6 7 8 9 ; do \
DK> ping -c 10 192.168.4.$f &>/dev/null || \
DK> echo "Wi-Fi точка $f недоступна" ; done
DK> Уберите цикл и замените echo на то, что вам нужно.
--
С уважением,
Александр mailto:aaa@inrecolan.com
Девиз дня: Что вы бегаете как собака, высунув хвост? (армейский)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Comm] ping daemon?
2005-11-02 10:11 [Comm] ping daemon? Valentin Lavrinenko
` (2 preceding siblings ...)
2005-11-02 10:26 ` [Comm] " Denis Kirienko
@ 2005-11-02 14:24 ` Eugene A. Suchkov
2005-11-03 6:28 ` Александр Никольников
4 siblings, 0 replies; 8+ messages in thread
From: Eugene A. Suchkov @ 2005-11-02 14:24 UTC (permalink / raw)
To: ALT Linux Community
В сообщении от Среда 02 Ноябрь 2005 13:11 Valentin Lavrinenko написал(a):
> "Внешняя" задача выглядит так: я хочу, чтобы на машине было постоянное
> ppp соединение
> (в данном случае GPRS, хотя это, вроде, неважно). Однако, бывают
> ситуации, когда соединение
> по всем характеристикам вроде живо, т. е., ifconfig показывает ppp0,
> pppd не отваливается по
> пропаже несущей, и т.п. Но при этом пакетики, судя по всему, не ходят,
> визически связи нет.
Вы слышали о dormant mode?
--
With best regards
Eugene A. Suchkov (a.k.a CityHawk)
ICQ 177787156
http://www.livejournal.com/users/suchkoff/
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: [Comm] ping daemon?
2005-11-02 10:11 [Comm] ping daemon? Valentin Lavrinenko
` (3 preceding siblings ...)
2005-11-02 14:24 ` [Comm] " Eugene A. Suchkov
@ 2005-11-03 6:28 ` Александр Никольников
4 siblings, 0 replies; 8+ messages in thread
From: Александр Никольников @ 2005-11-03 6:28 UTC (permalink / raw)
To: ALT Linux Community
On Wed, Nov 02, 2005 at 12:11:17PM +0200, Valentin Lavrinenko wrote:
> Здравствуйте все!
>
> Господа, не подскажете ли утилитку, которая могла бы в режиме демона
> попинговывать
> время от времени некоторый адрес, и, если он не пингуется, выпонять
> некоторую команду?
>
> "Внешняя" задача выглядит так: я хочу, чтобы на машине было постоянное
> ppp соединение
> (в данном случае GPRS, хотя это, вроде, неважно). Однако, бывают
> ситуации, когда соединение
> по всем характеристикам вроде живо, т. е., ifconfig показывает ppp0,
> pppd не отваливается по
> пропаже несущей, и т.п. Но при этом пакетики, судя по всему, не ходят,
> визически связи нет.
> В этой ситуации (а отследить ее, кроме как пингом, вроде бы и нечем)
> надо разорвать соединение
> и установить его заново.
>
> Спасибо за внимание!
>
>
Может вам настроить LCP для pppd?
Какраз проверяет проходимость пакетов.
--
Саша
^ permalink raw reply [flat|nested] 8+ messages in thread