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 

Pinging Out Problem

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Eggdrop Help
View previous topic :: View next topic  
Author Message
Zorb
Voice


Joined: 17 Oct 2006
Posts: 22

PostPosted: Tue Jul 24, 2007 2:38 am    Post subject: Pinging Out Problem Reply with quote

For some reason it seems that some of my bots get ping timeout when I'm away. Is there any known reasons why an eggdrop may ping out?
Back to top
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Tue Jul 24, 2007 6:24 am    Post subject: Reply with quote

Could be a problem from the IRC server or from your Eggdrop's ISP.
_________________
Follow me on GitHub

- Opposing

Public Tcl scripts
Back to top
View user's profile Send private message Visit poster's website
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Tue Jul 24, 2007 9:41 am    Post subject: Reply with quote

One possibility might be some tcl-script or module that does some heavy data-processing without handing control back to eggdrop.
(Running ie. pisg from withing eggdrop can cause this if you're not careful, and have large logfiles)
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
awyeah
Revered One


Joined: 26 Apr 2004
Posts: 1580
Location: Switzerland

PostPosted: Tue Jul 24, 2007 8:42 pm    Post subject: Reply with quote

Try using tcl script which pings the server continuously, say with a frequency of say 2-5mins/ping to the server. You can find a pinging script on egghelp's tcl archive.

Also this script with a public trigger can help you check your bots lag:

Code:

bind pub - !lagcheck lagcheck
bind raw - 421 laganswer

proc lagcheck {n u h c t} {
    set ::laganswer([set ticks [clock clicks -milliseconds]]) $c
    putserv "$ticks"
}

proc laganswer {f k t} {
    if {[info exists ::laganswer([set ticks [lindex [split $t] 1]])]} {
        putserv "PRIVMSG $::laganswer($ticks) :Lag: [expr [clock clicks -milliseconds] - $ticks] ms"
    }
}

_________________
·­awyeah·

==================================
Facebook: jawad@idsia.ch (Jay Dee)
PS: Guys, I don't accept script helps or requests personally anymore.
==================================
Back to top
View user's profile Send private message Send e-mail Visit poster's website Yahoo Messenger MSN Messenger
YooHoo
Owner


Joined: 13 Feb 2003
Posts: 939
Location: Redwood Coast

PostPosted: Sat Jul 28, 2007 7:27 pm    Post subject: Reply with quote

this might be way too obvious, but have you tried using different servers? I know firsthand how lame some server's are, but then with a simple .jump, all is better.
_________________
Mr. Green
Johoho's TCL for beginners
Mr. Green
Back to top
View user's profile Send private message Send e-mail
pitbull
Voice


Joined: 12 Aug 2007
Posts: 13

PostPosted: Wed Aug 15, 2007 9:52 am    Post subject: Reply with quote

A friend of mine is having a similar issue with his bot. The bot (v. 1.6.18 ) is running on a home server, I believe it is connected via cable-modem. The server is running Ubuntu. The bot continually pings out (And the timeout is always 260 seconds). The bot times out at least 10-15 times per day.Shocked It doesn't seem to have any patterns on how often it disconnects, but is usually every hour or two. However, the bot never disconnects from the botnet, only the IRC server. Also, the owner also runs an IRC client on the same machine, connecting to the same IRC servers the bot uses, and doesn't experience any connectivity issues. He has tried the server ping tcl script, to no avail, and also has the realname variable set. He has tried disabling all TCL scripts, and the bot still times out.. Any ideas?

Thanks!
_________________
irc://irc.efnet.net/peakoil
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Wed Aug 15, 2007 10:18 am    Post subject: Reply with quote

Does he get any "Timer drift -- spun N minutes" messages in his logs? (where N being a positive number)
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
pitbull
Voice


Joined: 12 Aug 2007
Posts: 13

PostPosted: Wed Aug 15, 2007 10:31 am    Post subject: Reply with quote

I don't have access to the logs, but I'll mention this.. What does it mean if it deos have this?
_________________
irc://irc.efnet.net/peakoil
Back to top
View user's profile Send private message
nml375
Revered One


Joined: 04 Aug 2006
Posts: 2857

PostPosted: Wed Aug 15, 2007 10:47 am    Post subject: Reply with quote

It basically means that the eggie was "halted" for several minutes, and thus unable to interact with the irc server. Causes for this might be limited resources on the system (eggdrop got swapped out of memory for some time) or some tcl-script took long time to complete and thus blocked the eggdrop (such as calling "exec pisg" with large logfiles).
_________________
NML_375, idling at #eggdrop@IrcNET
Back to top
View user's profile Send private message
pitbull
Voice


Joined: 12 Aug 2007
Posts: 13

PostPosted: Wed Aug 15, 2007 4:18 pm    Post subject: Reply with quote

There were no Timer drift lines in the log file... Any other ideas anyone?
_________________
irc://irc.efnet.net/peakoil
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 -> Eggdrop Help 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