Hi
I'm using Zabbix to do my monitoring .. with pmacct to get ip accounting statistics for port traffic.
the server im running this on is our vpn server / firewall.
I would like to be able to pass, the interface that I wish pmacct to monitor via the configuration in zabbix, thus I dont need to create a new config for each interface for pmacct and items for each interface.
Here is my current pmacctd config for eth0
!
! pmacct: In + Out
!
debug: false
daemonize: true
interface: eth0
plugin_buffer_size: 2048
plugin_pipe_size: 2048000
plugins: memory
aggregate: src_port,dst_port
imt_path: /tmp/traf.pipe
pidfile: /var/run/pmacctd.pid
my perl script that zabbix exicutes to get the data.
#!/usr/bin/perl
use strict;
my $port = @ARGV[0]; # is the port number as passed from zabbix
my $result = `pmacct -c src_port,dst_port -N "*,$port;$port,*" -S -p /tmp/traf.pipe -r`;
print "$result"; # the number of bytes since last read.
my zabbix item ..
Any ideas would be grate.
I'm using Zabbix to do my monitoring .. with pmacct to get ip accounting statistics for port traffic.
the server im running this on is our vpn server / firewall.
I would like to be able to pass, the interface that I wish pmacct to monitor via the configuration in zabbix, thus I dont need to create a new config for each interface for pmacct and items for each interface.
Here is my current pmacctd config for eth0
!
! pmacct: In + Out
!
debug: false
daemonize: true
interface: eth0
plugin_buffer_size: 2048
plugin_pipe_size: 2048000
plugins: memory
aggregate: src_port,dst_port
imt_path: /tmp/traf.pipe
pidfile: /var/run/pmacctd.pid
my perl script that zabbix exicutes to get the data.
#!/usr/bin/perl
use strict;
my $port = @ARGV[0]; # is the port number as passed from zabbix
my $result = `pmacct -c src_port,dst_port -N "*,$port;$port,*" -S -p /tmp/traf.pipe -r`;
print "$result"; # the number of bytes since last read.
my zabbix item ..
| Description | |
| Type | ZABBIX agent ZABBIX agent (active) Simple check SNMPv1 agent SNMPv2 agent SNMPv3 agent ZABBIX trapper ZABBIX internal ZABBIX aggregate |
| Key | |
| Type of information | Numeric (integer 64bit) Numeric (float) Character Log Text |
| Units | |
| Use multiplier | Do not use Custom multiplier |
| Update interval (in sec) | |
| Keep history (in days) | |
| Keep trends (in days) | |
| Status | Monitored Disabled Not supported |
| Store value | As is Delta (speed per second) Delta (simple change) |
| Applications | -None- |
Any ideas would be grate.
--
Gregory Machin
[EMAIL PROTECTED]
www.linuxpro.co.za
_______________________________________________ pmacct-discussion mailing list http://www.pmacct.net/#mailinglists
