Hi,
Sorry, the online documentation of v3 is still incomplete,
but you can find examples in /etc/robinhood.d/templates/example.conf.
In v3, alerts are now implemented as a standard policy.
Example of such an alert policy:
%include "includes/alerts.inc"
FileClass largedir {
definition { type == directory and dircount > 3000 }
}
alert_rules {
# don't check entries more frequently than daily
ignore { last_check < 1d }
# don't check entries while they are modified
ignore { last_mod < 1h }
rule raise_alert {
## List all fileclasses that would raise alerts HERE:
target_fileclass = largedir;
# customize alert title:
action_params { title = "entry matches '{fileclass}' ({rule})"; }
# apply to all matching fileclasses
condition = true;
}
# clear alert status
rule default {
action = none;
action_params { alert = clear; }
# apply to all entries that don't match 'alert_check'
condition = true;
}
}
# check alerts hourly
alert_trigger {
trigger_on = periodic;
check_interval = 1h;
}
Then, you can run the alert check in the robinhood daemon.
In /etc/sysconfig/robinhood, add this to RBH_OPT:
"--run=alert"
and restart the service.
Or manually trigger alert checks:
robinhood --run=alert --once
HTH
Thomas
On 08/02/16 08:57, Wissam Ali wrote:
Hello Robinhood Support,
I have robinhood version 3 release 0.rc1 installed on CentOS 7.2. Our
lustre filesystem version is 2.5. My scratch.conf has the following to
configure Alerts based on directory count:
EntryProcessor
{
nb_threads = 9 ;
max_pending_operations = 10000 ;
match_classes = TRUE;
Alert Large_Directory {
type == directory
and
dircount > 3000
}
}
We also have enabled the lustre 2.0 change log feature in robinhood.
I ran a scan of the filesystem but the alerts.log file reported no
directories with file count exceeding 3000. I am sure there are many
directories with large number of files. Is there something that i am
missing in the conf file to get the software to report the alert? Also
to verify the change log feature will report any future alerts that
exceed the parameter specified in the conf file correct?
Regards,
--
*Wissam Ali
*HPC System Administrator
Office Tel (UAE): +971-2-628-4751
Mobile Tel (UAE): +971-50-106-9689
Time Zone: GMT+4hrs
Weekends: Friday + Saturday
For HPC support please create a ticket at https://nyu.service-now.com
NYU Abu Dhabi, Saadiyat Campus
Computational Research Building A2
P.O. Box 129188
Abu Dhabi, United Arab Emirates
------------------------------------------------------------------------------
_______________________________________________
robinhood-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/robinhood-support
------------------------------------------------------------------------------
_______________________________________________
robinhood-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/robinhood-support