What about adding these line into analysis.cfg to each server you want to monitor:
DS ifstat ifstat.eth0.rrd:bytesSent >50000000 COLOR=yellow
"TEXT=eth0 &V bytes out is higher than threshold &U" DS ifstat ifstat.eth0.rrd:bytesReceived >50000000 COLOR=yellow "TEXT=eth0 &V bytes in is higher than threshold &U" DS ifstat ifstat.eth0.rrd:bytesSent >70000000 COLOR=red "TEXT=eth0 &V bytes out is higher than threshold &U" DS ifstat ifstat.eth0.rrd:bytesReceived >70000000 COLOR=red "TEXT=eth0 &V bytes in is higher than threshold &U"
J
On Mon, Jul 23, 2012 at 10:57 PM, John Horne <john.horne at plymouth.ac.uk>wrote:
On Fri, 2012-07-20 at 10:30 +1000, Jeremy Laidman wrote:
John
You need three things to make this happen: a) the ifstat page needs to exist, b) svcstatus.cgi needs to know that graphs exist, and c) an [ifstat] graph definition must exist in graphs.cfg.
Hello,
Thanks for this. However, I should have thought it through a bit more. What I actually want is to monitor the network interface(s) so that if the bandwidth gets to, say, 70% utilised then we get a yellow status, at 90% we get red. Similar to the 'cpu' and 'disk' monitoring and the LOAD/DISK entries in the analysis.cfg file. I was hoping that something similar was available for the network interfaces (and that we could have a separate column for 'ifstat' as well).
I suspect I'll need to write a short script to detect the bandwidth being used by the clients and send the relevant status back to the server.
John.
-- John Horne Tel: +44 (0)1752 587287 Plymouth University, UK Fax: +44 (0)1752 587001
Xymon mailing list Xymon at xymon.com http://lists.xymon.com/mailman/listinfo/xymon