Changes between Version 12 and Version 13 of Documentation/Manuals/ARCNativeAPELClients
- Timestamp:
- Jul 11, 2013 6:25:30 PM (11 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Documentation/Manuals/ARCNativeAPELClients
v12 v13 34 34 == Configuration == 35 35 36 Configure ARC CE to call installed BLAH logger. In the {{{/etc/arc.conf}}} add the following configuration and restart A-REX:36 ''1.'' Configure ARC CE to call installed BLAH logger. In the {{{/etc/arc.conf}}} add the following configuration and restart A-REX: 37 37 {{{ 38 authplugin="FINISHED timeout=10,onfailure=pass /usr/libexec/arc/arc-blahp-logger /var/log/arc/accounting/blahp.log- %W %C %I %u ce.fqdn:2811/nordugrid-torque-"38 authplugin="FINISHED timeout=10,onfailure=pass /usr/libexec/arc/arc-blahp-logger -I %I -U %u -L %C/job.%I.local -P %C/job.%I.proxy" 39 39 }}} 40 40 41 Edit APEL parser configuration file ({{{/etc/apel/parser.cfg}}}) and specify DB access settings, batch system ''accounting'' logs path, and ARC CE BLAH plugin logs path: 41 By default BLAH log is written to {{{/var/log/arc/accounting/blahp.log-YYYYMMDD}}}. The log prefix (without {{{-YYYYMMDD}}}) can be redefined with optional {{{-p}}} option. 42 43 CE ID is generated automatically and has a format {{{host.fqdn:2811/nordugrid-torque-queue}}}. Queue is added in runtime anyway, but prefix can be redefined with optional {{{-c}}} option. 44 45 To debug logger execution you can add {{{-d 5}}} option and see all ARC logger output from all subsystems used. 46 47 ''2.'' Edit APEL parser configuration file ({{{/etc/apel/parser.cfg}}}) and specify DB access settings, batch system ''accounting'' logs path, and ARC CE BLAH plugin logs path: 42 48 {{{ 43 49 [db] … … 75 81 76 82 If everything is OK, it's time to configure APEL client and broker network to use. 77 Edit the {{{/etc/apel/client.cfg}}}: 83 84 ''3.'' Configure APEL broker network client. Edit the {{{/etc/apel/client.cfg}}}: 78 85 {{{ 79 86 [db] … … 147 154 - check http://goc-accounting.grid-support.ac.uk/rss/GOCBD-SITE-NAME_Sync.html and http://goc-accounting.grid-support.ac.uk/rss/GOCBD-SITE-NAME_Pub.html in a few days. 148 155 149 Finally you need to create a CRON job to parse logs and sent records regularly. It can be simply {{{/etc/cron.daily/apel}}} that contains:156 ''4.'' Finally you need to create a CRON job to parse logs and sent records regularly. It can be simply {{{/etc/cron.daily/apel}}} that contains: 150 157 {{{ 151 158 #!/bin/sh