Active TCP connections

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
tigra
Posts: 4
Joined: Thu Nov 24, 2005 11:13 am

Active TCP connections

Post by tigra »

place snmp_tcp_conns.sh to <path_cacti>/scripts
import template, you will get graph for both port 80 tcp and all tcp connections (as example)

I got an idea from this post: http://forums.cacti.net/viewtopic.php?t=9097

I added to data input method snmp_community and snmp_host input fields, which by default will got from per-host device configuration.

works fine on win32 and unix(net/snmp) box w/o any changes.
Attachments
active_tcp_conns.rar
(2.46 KiB) Downloaded 735 times
muraping
Posts: 12
Joined: Wed Dec 14, 2005 3:45 am

Post by muraping »

can you tell me what do it ?
i place snmp_tcp_conns.sh to \www\htdocs\cacti\scripts
but i can`t added sn_com&sn_host in data input method
thx :D
muraping
Posts: 12
Joined: Wed Dec 14, 2005 3:45 am

Re: Active TCP connections

Post by muraping »

tigra wrote:place snmp_tcp_conns.sh to <path_cacti>/scripts
import template, you will get graph for both port 80 tcp and all tcp connections (as example)

I got an idea from this post: http://forums.cacti.net/viewtopic.php?t=9097

I added to data input method snmp_community and snmp_host input fields, which by default will got from per-host device configuration.

works fine on win32 and unix(net/snmp) box w/o any changes.
i config this script that you said
Data Source Debug

/usr/local/rrdtool/bin/rrdtool create \
/www/htdocs/cacti/rra/219_235_226_34www_tcp_conns_43.rrd \
--step 300 \
DS:tcp_conns:GAUGE:600:0:U \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MIN:0.5:1:600 \
RRA:MIN:0.5:6:700 \
RRA:MIN:0.5:24:775 \
RRA:MIN:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
RRA:LAST:0.5:1:600 \
RRA:LAST:0.5:6:700 \
RRA:LAST:0.5:24:775 \
RRA:LAST:0.5:288:797 \

but why no drawing?please tell me,thx :oops:
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest