graph IDP activity with cacti / rrdtools

Garick Hamlin ghamlin at isc.upenn.edu
Mon Apr 30 12:05:13 BST 2012


On Mon, Apr 30, 2012 at 12:56:19PM +0200, procaccia wrote:
> Hello,
> 
> I want to produce graph usage stats from my IDPs
> I found 
> https://wiki.shibboleth.net/confluence/display/SHIB2/IdP+Audit+Log+Analysis+Tool
> whitch does a very good job for text formatted stats
> has anyone wrote something to parse from loganalysis.py the values to 
> feed to a rrd archive ?
> any cacti template ?
> If not, have you an idea on how to get only the last 5mn part of the 
> idp-audit.log !?

I do this kind of analysis for munin.  I originally wrote code to
read the file backward then realized: if I used the 'tac' gnu coreutils 
tool, the script is trivial.  

1) Make a timestamp five minutes in the past.  
2) Read the file backwards with tac until the timestamp read is less 
   than your 'five minutes ago timestamp'.
3) Output your counters.

Garick


More information about the users mailing list