[Commotion-dev] collectd number of users

Sean McIntyre boxysean at gmail.com
Thu Nov 22 03:49:14 UTC 2012


Cool, ty Ben and Seamus. Do you guys have working /etc/collectd.conf
with collectd-mod-iptables? I'm researching it, but seems like I'm
going to have to get a bit more up-to-speed with iptables and the mod
to get something working.

Sean

On Wed, Nov 21, 2012 at 9:45 AM, Seamus Tuohy <s2e at opentechinstitute.org> wrote:
> Yea, from my search Ben is right on track. No better way with CollectD.
>
> s2e
>
>
> On 11/21/2012 09:25 AM, Benjamin Chodoroff wrote:
>> On Tue 20 Nov 2012 10:00:30 PM EST, Sean McIntyre wrote:
>>> Hey list,
>>>
>>> I'm trying to figure out what collectd mod to use to keep track of the
>>> number of users on a node. I think some of you have talked in other
>>> channels saying that keeping track of DHCP leases is the way to go. It
>>> also sounds like one of you (Seamus?) has done this before.
>>>
>>> I installed the iptables mod from pre-built packages here
>>> <http://downloads.openwrt.org/snapshots/trunk/ar71xx/packages/> but
>>> for some reason am not getting any data out of it. Here's the relevant
>>> config lines in /etc/collectd.conf.
>>>
>>> LoadPlugin iptables
>>> <Plugin "iptables">
>>>   Chain "filter" "FORWARD"
>>>   Chain6 "filter" "OUTPUT"
>>> </Plugin>
>>>
>>> Let me know if you see anything / if you've made this work before. I'm
>>> kinda wondering if a special collectd mod needs to be made for this
>>> purpose...? (hope not!)
>>>
>>> Sean
>>
>> Just spent a minute looking around for a dhcp lease count collectd
>> plugin, but didn't find one. Iptables is one way of doing it, or
>> another option is to write a shell script collectd plugin using
>> https://collectd.org/wiki/index.php/Plugin:Exec that runs "cat
>> /var/dhcpd.leases | wc -l"
>>
>> iptables will give a more accurate picture of instantaneous # of users,
>> i think.
>>
>> -b
>>
>>
>>
>> _______________________________________________
>> Commotion-dev mailing list
>> Commotion-dev at lists.chambana.net
>> http://lists.chambana.net/mailman/listinfo/commotion-dev
>>
>
> _______________________________________________
> Commotion-dev mailing list
> Commotion-dev at lists.chambana.net
> http://lists.chambana.net/mailman/listinfo/commotion-dev


More information about the Commotion-dev mailing list