egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Detect Ping Timeout and restart bot

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests
View previous topic :: View next topic  
Author Message
intel
Halfop


Joined: 26 Feb 2008
Posts: 57

PostPosted: Sun Feb 28, 2010 10:00 pm    Post subject: Detect Ping Timeout and restart bot Reply with quote

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
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Mon Mar 01, 2010 6:36 am    Post subject: Reply with quote

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, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
intel
Halfop


Joined: 26 Feb 2008
Posts: 57

PostPosted: Mon Mar 01, 2010 10:00 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Mon Mar 01, 2010 10:04 am    Post subject: Reply with quote

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, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Requests All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber