Business Activity¶
Overview¶
Object name: BA
Show¶
In order to list available business activities, use SHOW action:
[root@centreon ~]# ./centreon -u admin -p centreon -o BA -a SHOW
id;name;description;level_w;level_c
1;ba1;ba1;80;70
2;ba2;ba2;80;70
[...]
Columns are the following:
Column |
Description |
---|---|
BA ID |
Business activity id |
BA name |
Business activity name |
Ba description |
Business activity description |
level_w |
Warning threshold |
level_c |
Critical threshold |
Add¶
In order to add a business activity use ADD action:
[root@centreon ~]# ./centreon -u admin -p centreon -o BA -a ADD -v 'ba1;ba1;90;80;5'
Required columns are the following:
Column |
Description |
---|---|
Name |
Business activity name |
Description |
Business activity description |
Warning threshold |
Warning threshold |
Critical threshold |
Critical threshold |
Notification interval |
Notification interval (minutes) |
Del¶
If you want to remove a business activity use DEL action:
[root@centreon ~]# ./centreon -u admin -p centreon -o BA -a DEL -v 'ba1'
Setparam¶
If you want to change a specific parameters for a business view, use the SETPARAM command:
[root@centreon ~]# ./centreon -u admin -p centreon -o BA -a SETPARAM -v 'ba1;enable;1'
[root@centreon ~]# ./centreon -u admin -p centreon -o BA -a SETPARAM -v 'ba1;comment;new comments'
[root@centreon ~]# ./centreon -u admin -p centreon -o BA -a SETPARAM -v 'ba1;notification_options;r,w,c'
Parameters that you can change are the following:
Parameter |
Description |
---|---|
name |
Business activity name |
description |
Business activity description |
level_w |
Warning threshold |
level_c |
Critical threshold |
reporting_period |
reporting period |
comment |
Comments |
notifications_enabled |
Enable notifications (0 or 1) |
notification_options |
Notification options (r,w,c,f) |
notification_period |
Notification period |
notification_interval |
Notification interval |
icon |
Business activity icon |
inherit_kpi_downtimes |
Inherit planned downtimes from KPIs (0 or 1) |
enable |
Enable (0 or 1) |
Setbv¶
If you want to set business view to a business activity, use the SETBV command:
[root@centreon ~]# ./centreon -u admin -p centreon -o BA -a SETBV -v 'ba1;bv1'
[root@centreon ~]# ./centreon -u admin -p centreon -o BA -a SETBV -v 'ba1;bv1|bv2'
Required columns are the following:
Column |
Description |
---|---|
Ba name |
Business activity name |
Bv name |
Business view name (multiple with | seperator) |
Addbv¶
If you want to add business view to a business activity, use the ADDBV command:
[root@centreon ~]# ./centreon -u admin -p centreon -o BA -a ADDBV -v 'ba1;bv1'
[root@centreon ~]# ./centreon -u admin -p centreon -o BA -a ADDBV -v 'ba1;bv2|bv3'
Required columns are the following:
Column |
Description |
---|---|
Ba name |
Business activity name |
Bv name |
Business view name (multiple with | seperator) |
Delbv¶
If you want to delete a business view from a business activity, use the DELBV command:
[root@centreon ~]# ./centreon -u admin -p centreon -o BA -a DELBV -v 'ba1;bv1'
Required columns are the following:
Column |
Description |
---|---|
Ba name |
Business activity name |
Bv name |
Business view name (multiple with | seperator) |
Setcontactgroup¶
If you want to set contact group to a business activity, use the SETCONTACTGROUP command:
[root@centreon ~]# ./centreon -u admin -p centreon -o BA -a SETCONTACTGROUP -v 'ba1;Guest'
[root@centreon ~]# ./centreon -u admin -p centreon -o BA -a SETCONTACTGROUP -v 'ba1;Guest|Supervisors'
Required columns are the following:
Column |
Description |
---|---|
Ba name |
Business activity name |
Contact group name |
Contact group name (multiple with | seperator) |
Addcontactgroup¶
If you want to add contact group to a business activity, use the ADDCONTACTGROUP command:
[root@centreon ~]# ./centreon -u admin -p centreon -o BA -a ADDCONTACTGROUP -v 'ba1;Guest'
Required columns are the following:
Column |
Description |
---|---|
Ba name |
Business activity name |
Contact group name |
Contact group name (multiple with | seperator) |
Delcontactgroup¶
If you want to delete a contact group from a business activity, use the DELCONTACTGROUP command:
[root@centreon ~]# ./centreon -u admin -p centreon -o BA -a DELCONTACTGROUP -v 'ba1;Guest'
Required columns are the following:
Column |
Description |
---|---|
Ba name |
Business activity name |
Contact group name |
Contact group name (multiple with | seperator) |
Setextrareportingperiod¶
If you want to set extra reporting periods for centreon-bi, use the SETEXTRAREPORTINGPERIOD command:
[root@centreon ~]# ./centreon -u admin -p centreon -o BA -a SETEXTRAREPORTINGPERIOD -v 'ba1;workhours'
Required columns are the following:
Column |
Description |
---|---|
Ba name |
Business activity name |
Extra reporting period |
Extra reporting period (multiple with | seperator) |
Addextrareportingperiod¶
If you want to add extra reporting periods for centreon-bi, use the ADDEXTRAREPORTINGPERIOD command:
[root@centreon ~]# ./centreon -u admin -p centreon -o BA -a ADDEXTRAREPORTINGPERIOD -v 'ba1;workhours'
Required columns are the following:
Column |
Description |
---|---|
Ba name |
Business activity name |
Extra reporting period |
Extra reporting period (multiple with | seperator) |
Delextrareportingperiod¶
If you want to delete extra reporting periods from business activity, use the DELEXTRAREPORTINGPERIOD command:
[root@centreon ~]# ./centreon -u admin -p centreon -o BA -a DELEXTRAREPORTINGPERIOD -v 'ba1;workhours'
Required columns are the following:
Column |
Description |
---|---|
Ba name |
Business activity name |
Extra reporting period |
Extra reporting period (multiple with | seperator) |
Setpoller¶
If you want to set poller where ba is calculated (in addition to central), use the SETPOLLER command:
[root@centreon ~]# ./centreon -u admin -p centreon -o BA -a SETPOLLER -v 'ba1;poller1'
Required columns are the following:
Column |
Description |
---|---|
Ba name |
Business activity name |
Poller name |
Poller name where business activity is calculated |
Delpoller¶
If you want to delete poller where ba is calculated, use the DELPOLLER command:
[root@centreon ~]# ./centreon -u admin -p centreon -o BA -a DELPOLLER -v 'ba1;poller1'
Required columns are the following:
Column |
Description |
---|---|
Ba name |
Business activity name |
Poller name |
Poller name where business activity is calculated |