By the way, there is already similar monitoring functionality. You can enable it using "Configure network checks". Basicly it tries to ping various hosts, and if it fails, reboots the unit. However you can change the script according to your need. The script is in /usr/sbin/checkping and changes to it will be saved during standard backup procedure.

wispdist wrote:
On another subject.... from time to time one of the radio cards stops
responding resulting in an error msg that fills the /var/log/messages file

the error msg contains: "kernel: netcs1: prism2_interrupt: hw not ready;
skipping events 0x0000"

This only happens with a card in AP mode and only when I am using both
pcmcia slots ( 2-slot soekris boards )

I wrote a monitoring script that checks the /var/log/messages file once per
minute for this error msg "prism2_interrupt: hw not ready; skipping events"
and does the following if it is found

cardctl suspend
sleep 1
cardctl resume
sleep 1

sleep 10
echo . > /var/log/messages

this last line clears the log file so this monitoring script does not go
into a loop.


This power-cycles the radio cards and everything starts working again.  This
without having to reboot the unit.

J.


--
Best Regards,
Vladimir
Systems Engineer (RHCE)



-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to