🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.privacy.anon-server
Article #270968

Re: hermetix.org needing electro-shock therapy

#270968
From: Nomen Nescio
Date: Sun, 09 Nov 2014 13:13
50 lines
2257 bytes
Have a look at monit.

https://mmonit.com/monit/

quote
Monit is a small Open Source utility for managing and monitoring Unix systems. Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations.
end quote
It can monit services like apache, postfix and others, an of course mixmaster.

Its in the debian repos or can be built from source.




Dave U. Random <anonymous@anonymitaet-im-inter.net> wrote:

> > hermetix.org in cardiac arrest. Immediate defibrillation required.
> 
>   This is a cron job I run every hour to see if mixmaster is 
> running or if it might be hung.
> 
> 
> Cronjob:
> 
> # Every 60 minutes chk if mixmaster running
> */60 * * * * /etc/mixcheck.sh
> 
> 
> Script:
> #!/bin/bash
> # mixcheck.sh
> # Script to see if mixmaster is running
> #
> 
> #test if mixmaster running
> if [[ ! $(ps -ef) =~ "./mixmaster -D" ]]; then
>    cat "Mixmaster not running!" | mail -s "Mixmaster not running!" 
> you@youremail.net
> fi
> 
> #test if mixmaster hung
> if [ $(find /home/mix/Mix/pool/ -mmin -60 | wc -l) -eq 0 ]; then
>    cat "Mixmaster - no new pool messages after 60 minutes - 
> mixmaster hung?" | mail -s "Mixmaster - no new pool messages - 
> mixmaster hung?" you@youremail.net
> fi
> 
> exit 0
> 
Technical Details
Message-ID: <f6ac06a967d58fb8f2ab5f6ee452108c@dizum.com>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141209.mbox.gz!border2.nntp.dca1.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!sewer!news.dizum.net!not-for-mail
References: <2c5c9a5284584359d56577785d7c7fbd@anonymitaet-im-inter.net>

Show Full Headers
Complete Article Headers
Message-ID: <f6ac06a967d58fb8f2ab5f6ee452108c@dizum.com>
Subject: Re: hermetix.org needing electro-shock therapy
Date: Sun, 09 Nov 2014 13:13:35 +0000
From: Nomen Nescio <nobody@dizum.com>
References: <2c5c9a5284584359d56577785d7c7fbd@anonymitaet-im-inter.net>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.privacy.anon-server.20141209.mbox.gz!border2.nntp.dca1.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!news2.arglkargh.de!sewer!news.dizum.net!not-for-mail
Mime-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Newsgroups: alt.privacy.anon-server
Organization: dizum.com - The Internet Problem Provider
X-Abuse: abuse@dizum.com
Injection-Info: sewer.dizum.com - 194.109.206.211
Lines: 49