Visualizza - Garr
Visualizza - Garr
Visualizza - Garr
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
Alert Condition<br />
Condizione di Alert computata da un plugin:<br />
• Per far saltare un Alert in base ad una condizione complessa,<br />
si usa un plugin per matcharla.<br />
• La funzione alert_condition viene lanciata da Nfsen dopo<br />
l’applicazione dei filtri ai flussi.<br />
• I flussi “matchati” dal filtro vengono registrati in una directory<br />
apposita ed il nome del file è passato alla subrutine nella<br />
variabile $$argref{alertfile}<br />
sub alert_condition {<br />
my $argref = shift;<br />
my $alert = $$argref{'alert'};<br />
my $alertflows = $$argref{'alertfile'};<br />
my $timeslot = $$argref{'timeslot'};<br />
syslog('info', "Alert condition called: alert: $alert, alertfile: $alertflows, timeslot: $timeslot");<br />
# Add your code here<br />
return 1;<br />
}<br />
106<br />
Nino Ciurleo, Alessandro Inzerilli, Simona Venuti<br />
GARR WS9, Roma, 15.06.2009