View Full Version : monitoring bandwidth on remote freebsd
Hi,
I need to monitor the bandwidth of a remote set of freebsd servers.
My first guess was to use snmp, but it seems I would need the calculate the bandwidth using a formula based on a set of snmp data fields... and I think I can't do it in zabbix...
Other try was to install a zabbix native agent on that machines, but seems that the freebsd agent won't support the netload function...
Any ideas?
Thanks,
Edgar
siebrand
08-12-2004, 13:41
I'm doing this as follows:
- install port net-snmp (/usr/ports/net-mgmt/net-snmp) on the FreeBSD host you want to monitor (assuming you have also installed a zabbix client on it)
- have snmpd listen only on local loopback
- create custom settings in zabbix_agentd.conf to read out the snmp values
- monitor through zabbix client with a delta.
cat /usr/local/share/snmp/snmpd.conf
rocommunity cms 127.0.0.1
agentaddress 127.0.0.1
syslocation "Location of system"
syscontact user@domain.tld
zabbix_agentd.conf example:
UserParameter=net[bge0in],/usr/local/bin/snmpget -v 1 -c cms -Oqv localhost IF-MIB::ifInOctets.1
UserParameter=net[plip0in],/usr/local/bin/snmpget -v 1 -c cms -Oqv localhost IF-MIB::ifInOctets.2
UserParameter=net[lo0in],/usr/local/bin/snmpget -v 1 -c cms -Oqv localhost IF-MIB::ifInOctets.3
UserParameter=net[bge0out],/usr/local/bin/snmpget -v 1 -c cms -Oqv localhost IF-MIB::ifOutOctets.1
UserParameter=net[plip0out],/usr/local/bin/snmpget -v 1 -c cms -Oqv localhost IF-MIB::ifOutOctets.2
UserParameter=net[lo0out],/usr/local/bin/snmpget -v 1 -c cms -Oqv localhost IF-MIB::ifOutOctets.3
Zabbix webUI example:
Desc: MONITORED_HOSTNAME bge0 in
Host: host with zabbix client and snmpd running
Type: zabbix_agent
Key: net[bge0in]
Units: bps
Multiplier: -
...
Type: Numeric
Store value: Delta
Another useful value:
UserParameter=cpu[idle],/usr/local/bin/snmpget -v 1 -c cms -Oqv localhost UCD-SNMP-MIB::ssCpuIdle.0
Hope this helps. Good luck!
________
Colorado marijuana dispensaries (http://colorado.dispensaries.org/)