Hello, it is an old topic but currently interesting for me. I try to use monit. Do you have an example of your rule you use to watch weewx for me? Thank you!
drich schrieb am Freitag, 13. Juni 2014 um 17:27:29 UTC+2: > I'm a big fan of monit (mmonit.com/monit) that does much of the same > thing. It can restart the processes for you and notify you if config files > change w/o your knowledge. I have it running most servers on my home > servers, but I haven't set it up for weewx yet (waiting for my Vantage Pro > to come back from a tune-up at Davis). > > I'll probably get it up and running this weekend, if I do I'll post the > config file here. It should be really straight-forward to setup. > > > > --- > Dan Rich <dr...@employees.org> | http://www.employees.org/~drich/ > | "Step up to red alert!" "Are you sure, sir? > | It means changing the bulb in the sign..." > | - Red Dwarf (BBC) > > On 2014-06-13 04:33, Flabbergast wrote: > > Hi, > > RaspberryPi got a watchdog that can be used to monitor status of different > things. I set mine up to look for changes in the weewx log file and if > there is no change for 10 minutes it will reboot the system. > This is what I did: > > Install the watchdog module: > > > sudo modprobe bcm2708_wdog > > > In /etc/modules add: > bcm2708_wdog > > Install watchdog daemon: > sudo apt-get install watchdog chkconfig > > > Edit /etc/watchdog.conf to your liking. > To watch for changes in the weewx log file like I did, uncomment the lines > starting with "file" and "change", mine looks like this: > file = /var/weewx/log/weewx.log > change = 600 > You might have your log file in a different location and also you might > have to take a look at the timestamps in it to set a good "change" value. > > Also uncomment the line starting with "watchdog-device" and edit it to be: > watchdog-device = /dev/watchdog > > Enable more checks if you want. > > > Add the watchdog daemon to the system services: > watchdog-device = /dev/watchdog > > And start it: > sudo service watchdog start > Enjoy! > > > > -- > You received this message because you are subscribed to the Google Groups > "Weewx user's group" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to weewx-user+...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > > -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/dff4adc4-ca2e-4ee4-ab67-f186fffba2a5n%40googlegroups.com.