I have an issue where my bots ping timeout (think its due somehow to MYSQL). When the bot drops it can take 5-15 minutes before it comes back. I have a cron job setup:
* * * * * /home/intel/eggdrop/BOT.botchk >/dev/null 2>&1
but like I said it can take 5-15 min and that is just way to long. I need it back ASAP.
So a good script that will detect the ping timeout and restart would be great.
Do yo get any Timer spun or drift log messages?
Apart from "stoned servers", the only reason for eggdrop's pinging out like that would be scripts that block for long periods of time. Unfortunately, that means there is nothing eggdrop (nor it's scripts) currently can do to detect this.
You could try using a watchdog, I believe I posted a watchdog-enabled botchk set of scripts here a long time ago. Might be able to find the post with a search..
That said, killing/restarting your bot isn't really a good solution - better to try and track down the issue and try to fix it.
I think it has something to do with the MYSQL on my PC. MY hard drive light comes on and stays on for about 3-5 minutes and the bots drops (sometimes).
I will look for the watchdog script.
Do you use MySQL with your eggdrop? Otherwize, the only way your mysqld would be able to cause this, is if it uses 100% cpu, preventing pretty much any other programs from working. In that case, it's doubtful even a watchdog script will help...
In most cases, the issue is caused by a script loaded in the eggdrop - most often some stats-script, or script triggering pisg.