For Zabbix I think that should be relatively straightforward.  What 
you'd be looking to do is set up a custom trigger, not a specific item.

Under configuration->hosts-> triggers create a new trigger.

Choose whatever name is appropriate and then click Add by expression.
Select the relevant interface, and under function choose "Sum of values 
for period of time T > N"
Last of (t) would be...
60*60*24*31 = 2678400 seconds (I believe it can go that high) then set 
the N to whatever value is appropriate, then Insert, and choose an 
appropriate severity level so that it will alert as necessary.

For that to work you'll need to be logging the Deltas (zabbix can handle 
that for you, but I think that may fail if the counter is reset.  Might 
see that as a huge -ve delta, I'd suggest testing first!)

Paul

On 4/18/2011 7:20 PM, Dan Foster wrote:
> Friends from university days asked me an intriguing question the other day.
>
> How would you configure either Nagios or Zabbix to monitor how much data
> has flowed through a particular Ethernet interface for, say, the past 31
> days?
>
> I guess the idea is to set an alarm if they start to approach 85% (or
> whatever number) of that threshold to avoid need to pay excess bandwidth
> charges.
>
> I assist, free of charge, on my own time as they provide a valuable
> service free to the community. And, well, they're good guys, too. :)
>
> But how to do that? I haven't looked closely yet but still mulling it over.
>
> The standard bandwidth monitoring plugins in both monitoring systems
> appears to be a snapshot / moment-in-time, e.g. xx Mbps, rather than a
> total byte count over x days.
>
> Total byte count over x days also implies need to track state and counts...
>
> SNMP is a logical approach but the major flaw is that when snmpd is
> restarted (whether by reboot or otherwise), interface counters are reset.
>
> Any easy way to do that, or are these folks looking at a more involved
> solution of some sort?
>
> Any comments (snarky or otherwise :-) ) immensely appreciated!
>
> -Dan
>
> P.S. I'm very familiar with writing Nagios plugins, mostly in sh but
> sometimes perl. Zabbix, not as familiar, but have set it up before.
> _______________________________________________
> Tech mailing list
> [email protected]
> https://lists.lopsa.org/cgi-bin/mailman/listinfo/tech
> This list provided by the League of Professional System Administrators
>   http://lopsa.org/
>

_______________________________________________
Tech mailing list
[email protected]
https://lists.lopsa.org/cgi-bin/mailman/listinfo/tech
This list provided by the League of Professional System Administrators
 http://lopsa.org/

Reply via email to