<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/12861" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2007-04-07T07:47:39-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/12861</id>

		<entry>
		<author><name><![CDATA[TMM]]></name></author>
		<updated>2007-04-07T07:47:39-04:00</updated>

		<published>2007-04-07T07:47:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=71871#p71871</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=71871#p71871"/>
		<title type="html"><![CDATA[MRTG Eggdrop Channel Count v1.0 TEST by wiak &amp; Rats]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=71871#p71871"><![CDATA[
<blockquote class="uncited"><div>Hey!<br><br>Nice script. Is there any way to use this thing with multiple channels?</div></blockquote>By using arrays instead of the current method, that would be possible, yes. But there's another problems with this tcl since it only loads the function one time, and then stops update the log, and I presume that it's real purpose is to log the channel all the time, to the logfile?<br><br>This is what I changed, to make it work:<br><br>At the top of the tcl:<div class="codebox"><p>Code: </p><pre><code># Seconds to loop before next update (instead of the regular timer)set mrtglooptimer 60</code></pre></div><br>In the end of proc LogUsers:<br><div class="codebox"><p>Code: </p><pre><code># Clean up duplicatesforeach tmr [utimers] {if {[lindex $tmr 1]=="LogUsers"} {killutimer [lindex $tmr 2]}}# Reload timerutimer 1 reloadLogUsers</code></pre></div>Added this<div class="codebox"><p>Code: </p><pre><code># Fixing some visual bugs for utimer, like this (when a timer expires during the cleanup):# [13:41] &lt;BotNick&gt; [13:41] Tcl error in script for 'timer2985':proc reloadLogUsers { } {global mrtglooptimerutimer $mrtglooptimer LogUsers}</code></pre></div>And finally<br><br>Replace ...<br><div class="codebox"><p>Code: </p><pre><code>timer 1 LogUsers</code></pre></div>... with ...<br><div class="codebox"><p>Code: </p><pre><code>## Initialize Loggerutimer $mrtglooptimer LogUsers</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8884">TMM</a> — Sat Apr 07, 2007 7:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[__henke]]></name></author>
		<updated>2007-03-06T08:41:02-04:00</updated>

		<published>2007-03-06T08:41:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=71036#p71036</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=71036#p71036"/>
		<title type="html"><![CDATA[MRTG Eggdrop Channel Count v1.0 TEST by wiak &amp; Rats]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=71036#p71036"><![CDATA[
Hey!<br><br>Nice script. Is there any way to use this thing with multiple channels?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8367">__henke</a> — Tue Mar 06, 2007 8:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[wiak]]></name></author>
		<updated>2006-12-23T09:16:33-04:00</updated>

		<published>2006-12-23T09:16:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69189#p69189</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69189#p69189"/>
		<title type="html"><![CDATA[MRTG Eggdrop Channel Count v1.0 TEST by wiak &amp; Rats]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69189#p69189"><![CDATA[
<blockquote class="uncited"><div>I take it this wont work with windrop ..?</div></blockquote>it might as you can use .bat file (win) insted of .sh file (unix) <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>but i havent tested it  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><br><br>this might work<br>download <a href="http://unxutils.sourceforge.net/" class="postlink">http://unxutils.sourceforge.net/</a> and get cat.exe put that in system32 folder and then use this bat<div class="codebox"><p>Code: </p><pre><code>cat C:\path\to\mrtg.log</code></pre></div>ps: you wont get uptime + domain but atleast it works <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>=)<br><br>the code isnt 100% working, as it wont update at the same time as mrtg, do anyone know howto get it to update using a trigger? from shell script ?<br>mrtg &gt; .sh script sends cmd to get count&gt; tcl &gt; eggdrop &gt; &lt;returns's count back&lt; #channel count <br>or something like that  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_exclaim.gif" width="15" height="15" alt=":!:" title="Exclamation"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8523">wiak</a> — Sat Dec 23, 2006 9:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[smash]]></name></author>
		<updated>2006-12-23T06:31:02-04:00</updated>

		<published>2006-12-23T06:31:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69185#p69185</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69185#p69185"/>
		<title type="html"><![CDATA[MRTG Eggdrop Channel Count v1.0 TEST by wiak &amp; Rats]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69185#p69185"><![CDATA[
I take it this wont work with windrop ..?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8041">smash</a> — Sat Dec 23, 2006 6:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[wiak]]></name></author>
		<updated>2006-12-23T04:28:38-04:00</updated>

		<published>2006-12-23T04:28:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69181#p69181</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69181#p69181"/>
		<title type="html"><![CDATA[MRTG Eggdrop Channel Count v1.0 TEST by wiak &amp; Rats]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69181#p69181"><![CDATA[
170<br>170<br>25 days, 3 mins<br>nwgat.net<br><br>gives the shell script ^^<br><br>so it needs only 2 lines<br>but the other are good to have<br><br>the uptime &amp; domain will give this output from mrtg on a webpage <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";-)" title="Wink"><br><br>IRC Users @ HDBits<br>The statistics were last updated Saturday, 23 December 2006 at 9:26,<br>at which time 'nwgat.net' had been up for 25 days, 5 mins. <br>`Daily' Graph (5 Minute Average)<br><br>ps: rats did tcl i did the rest  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8523">wiak</a> — Sat Dec 23, 2006 4:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2006-12-23T04:06:57-04:00</updated>

		<published>2006-12-23T04:06:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69179#p69179</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69179#p69179"/>
		<title type="html"><![CDATA[MRTG Eggdrop Channel Count v1.0 TEST by wiak &amp; Rats]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69179#p69179"><![CDATA[
Neat..  Just a couple of questions for ya. Why use open r+ instead of a(ppend) for logging in the tcl script, and is it really supposed to log 2 lines of the same data?  There's 2 puts'  in the tcl file (I'm not familiar with mrtg, so maybe it does need 2 lines for comparing..)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Sat Dec 23, 2006 4:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2006-12-23T02:43:58-04:00</updated>

		<published>2006-12-23T02:43:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69172#p69172</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69172#p69172"/>
		<title type="html"><![CDATA[MRTG Eggdrop Channel Count v1.0 TEST by wiak &amp; Rats]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69172#p69172"><![CDATA[
This looks very interesting and no doubt will be useful to many.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Sat Dec 23, 2006 2:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[wiak]]></name></author>
		<updated>2006-12-23T09:47:23-04:00</updated>

		<published>2006-12-23T02:24:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69171#p69171</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69171#p69171"/>
		<title type="html"><![CDATA[MRTG Eggdrop Channel Count v1.0 TEST by wiak &amp; Rats]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69171#p69171"><![CDATA[
ps: sorry i triple posted earlier <div class="codebox"><p>Code: </p><pre><code>------------------------------------------------------------------------------------------------# MRTG Eggdrop Channel Count v1.0# by wiak &lt;tommarnk@gmail.com&gt; &amp; Rats# Only Tested on FreeBSD 6.0-RELEASE------------------------------------------------------------------------------------------------</code></pre></div>this tcl script outputs a readable format for mrtg so it can make a graph of total users in a channel using eggdrop,tcl,shell script &amp; mrtg<br><div class="codebox"><p>Code: </p><pre><code>channel user count &gt; eggdrop &gt; tcl script &gt; count.log &gt; shell script that reads count.log &gt; mrtg &gt; ircusers.html with stats!</code></pre></div>this is how it looks like <br><img src="http://hdbits.org/mrtg/ircusers-day.png" class="postimage" alt="Image"><br><br>Download:<br><a href="http://nwgat.net/mrtg-irccount/" class="postlink">http://nwgat.net/mrtg-irccount/</a><br><br>PS: i need someone to test this<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8523">wiak</a> — Sat Dec 23, 2006 2:24 am</p><hr />
]]></content>
	</entry>
	</feed>
