Xymon Mailing List Archive search

Separate column for network interface stats?

list Jeremy Laidman
Thu, 26 Jul 2012 13:10:56 +1000
Message-Id: <CAAnki7AdiRsLntZPNkwYg3WPdtNAj7MPS25tU-=user-b14d95abcafe@xymon.invalid>

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 <user-e95f1ec2f147@xymon.invalid>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: +XX (X)XXXX XXXXXX
Plymouth University, UK      Fax: +XX (X)XXXX XXXXXX