🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.privacy.anon-server
8 messages
8 total messages Started by Nomen Nescio Sat, 08 Nov 2014 17:20
hermetix.org needing electro-shock therapy
#270944
Author: Nomen Nescio
Date: Sat, 08 Nov 2014 17:20
2 lines
824 bytes
  hermetix.org in cardiac arrest. Immediate defibrillation required.
Re: hermetix.org needing electro-shock therapy
#270941
Author: anonymous
Date: Sat, 08 Nov 2014 18:53
4 lines
1254 bytes
Nomen Nescio explained :
>   hermetix.org in cardiac arrest. Immediate defibrillation required.

  hermetix has started eating again.  down to only 4 messages.
Re: hermetix.org needing electro-shock therapy
#270948
Author: Dave U. Random
Date: Sat, 08 Nov 2014 21:46
33 lines
1687 bytes
> 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
Re: hermetix.org needing electro-shock therapy
#270952
Author: elvis-85503
Date: Sat, 08 Nov 2014 23:39
22 lines
1695 bytes
> #!/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


I don't think the [[]] test works and it uses cat where it means echo.
Re: hermetix.org needing electro-shock therapy
#270954
Author: Nomen Nescio
Date: Sun, 09 Nov 2014 00:25
30 lines
1598 bytes
> #!/bin/bash
> # mixcheck.sh
> # Script to see if mixmaster is running
> #

> #test if mixmaster running
> cat "Mixmaster not running!" | mail -s "Mixmaster not running!"
> you@youremail.net
> fi

> #test if mixmaster hung
> 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
>I don't think the [[]] test works and it uses cat where it means echo.

  The double [] may not be necesary, but just do this to see that 
it does:

if [[ ! $(ps -ef) =~ "./mixmaster -D" ]]; then
echo "mixmaster not found"
else
echo "mixmaster found"
fi

cat will give you the message also in an email.
Re: hermetix.org needing electro-shock therapy
#270955
Author: Anonymous Remailer (austria)
Date: Sun, 09 Nov 2014 01:44
44 lines
2018 bytes
> #!/bin/bash
> # mixcheck.sh
> # Script to see if mixmaster is running
> #

> #test if mixmaster running
> cat "Mixmaster not running!" | mail -s "Mixmaster not running!"
> you@youremail.net
> fi

> #test if mixmaster hung
> 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

  Dang!  Your right.  I am so used to 'cat'ing a file rather than a 
string, I forgot and used incorrectly cat "data".  That is what I 
get for typing it from memory.

Script:
#!/bin/bash
# mixcheck.sh
# Script to see if mixmaster is running
#

#test if mixmaster running
if [ ! $(ps -ef) =~ "./mixmaster -D" ]; then
   echo "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
   echo "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
Re: hermetix.org needing electro-shock therapy
#270968
Author: 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
> 
Re: hermetix.org needing electro-shock therapy
#270972
Author: Dave U. Random
Date: Sun, 09 Nov 2014 15:47
54 lines
2307 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
> cat "Mixmaster not running!" | mail -s "Mixmaster not running!"
> you@youremail.net
> fi

> #test if mixmaster hung
> 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

 Monit is good, but I don't think that it will be able to do the 
(test if mixmaster hung) check.  I use this which is no longer 
listed on the main page but is still available.

http://inwtx.net/serverstats.txt
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads