This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Detect Ping Timeout and restart bot

Requests for complete scripts or modifications/fixes for scripts you didn't write. Response not guaranteed, and no thread bumping!
Post Reply
i
intel
Halfop
Posts: 57
Joined: Tue Feb 26, 2008 11:51 pm

Detect Ping Timeout and restart bot

Post by intel »

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.


TIA
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

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.
NML_375
i
intel
Halfop
Posts: 57
Joined: Tue Feb 26, 2008 11:51 pm

Post by intel »

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.

Thanx.
n
nml375
Revered One
Posts: 2860
Joined: Fri Aug 04, 2006 2:09 pm

Post by nml375 »

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.
NML_375
Post Reply