View Issue Details

IDProjectCategoryView StatusLast Update
0000152bareos-coredirectorpublic2015-03-25 19:18
Reporterpstorz Assigned To 
PrioritynormalSeverityfeatureReproducibilityhave not tried
Status closedResolutionfixed 
PlatformLinuxOSanyOS Version3
Product Version12.4.2 
Summary0000152: report if number of subscribed clients is exceeded.
DescriptionAs the bareos subscription is calculated by number, it would be good to have the possibility to configure "licensed clients" or something in the director.

If the number of clients exceeds this configured limit, the administrator should be informed that the subscriptions are exhausted.
TagsNo tags attached.

Activities

maik

maik

2013-05-10 16:36

administrator   ~0000415

Just an idea: maybe we can wrap a nagios-plugin around
pstorz

pstorz

2013-05-10 16:59

administrator   ~0000416

This query should do the job:

SELECT COUNT(clientid) FROM client;
pstorz

pstorz

2013-05-15 13:44

administrator   ~0000423

After doing some evaluation, we agree that the easiest way is to count the number of client ressources on startup and store that in the director config.

The number of Clients can change only at startup or reload anyway.
mvwieringen adm

mvwieringen adm

2013-08-13 03:12

administrator   ~0000584

Fix committed to bareos bareos-12.4 branch with changesetid 925.
maik

maik

2014-02-06 21:06

administrator   ~0000808

Documentation missing
pstorz

pstorz

2014-02-21 16:10

administrator   ~0000819

documentation is in wiki in "status subscriptions"
mvwieringen

mvwieringen

2015-03-25 16:51

developer   ~0001370

Fix committed to bareos2015 bareos-13.2 branch with changesetid 4207.
joergs

joergs

2015-03-25 19:18

developer   ~0001525

Due to the reimport of the Github repository to bugs.bareos.org, the status of some tickets have been changed. These tickets will be closed again.
Sorry for the noise.

Related Changesets

bareos: master 951e255f

2013-05-15 16:24

pstorz


Committer: mvwieringen adm

Ported: N/A

Details Diff
Number of subscriptions can be checked

The number of subscribed clients can be set in
the director ressource, e.g.

Subscriptions = 2

When the number of clients is bigger than the
configured limit, each job gets the following
message:

JobId 7: Warning: Subscriptions exceeded: (used/total) (3/2)

Also, the status of the subscriptions can be checked via
* status subscriptions
Warning! No available subscriptions: -1 (3/2) (used/total)

Nothing else than the warning is issued, no enforcement on
backup, restore or any other operation will happen.

Fixes 0000152: report if number of subscribed clients is exceeded.

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
Affected Issues
0000152
mod - src/dird/ua_status.c Diff File
mod - src/dird/ua_cmds.c Diff File
mod - src/dird/job.c Diff File
mod - src/dird/dird_conf.h Diff File
mod - src/dird/dird_conf.c Diff File
mod - src/dird/dird.c Diff File

bareos: bareos-12.4 59608873

2013-05-15 16:24

pstorz


Committer: mvwieringen adm

Ported: N/A

Details Diff
Number of subscriptions can be checked

The number of subscribed clients can be set in
the director ressource, e.g.

Subscriptions = 2

When the number of clients is bigger than the
configured limit, each job gets the following
message:

JobId 7: Warning: Subscriptions exceeded: (used/total) (3/2)

Also, the status of the subscriptions can be checked via
* status subscriptions
Warning! No available subscriptions: -1 (3/2) (used/total)

Nothing else than the warning is issued, no enforcement on
backup, restore or any other operation will happen.

Fixes 0000152: report if number of subscribed clients is exceeded.

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
Affected Issues
0000152
mod - src/dird/dird.c Diff File
mod - src/dird/dird_conf.c Diff File
mod - src/dird/dird_conf.h Diff File
mod - src/dird/job.c Diff File
mod - src/dird/ua_cmds.c Diff File
mod - src/dird/ua_status.c Diff File

bareos2015: bareos-12.4 16742e99

2013-05-15 18:24

pstorz


Committer: mvwieringen

Ported: N/A

Details Diff
Number of subscriptions can be checked

The number of subscribed clients can be set in
the director ressource, e.g.

Subscriptions = 2

When the number of clients is bigger than the
configured limit, each job gets the following
message:

JobId 7: Warning: Subscriptions exceeded: (used/total) (3/2)

Also, the status of the subscriptions can be checked via
* status subscriptions
Warning! No available subscriptions: -1 (3/2) (used/total)

Nothing else than the warning is issued, no enforcement on
backup, restore or any other operation will happen.

Fixes 0000152: report if number of subscribed clients is exceeded.

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
Affected Issues
0000152
mod - src/dird/dird.c Diff File
mod - src/dird/dird_conf.c Diff File
mod - src/dird/dird_conf.h Diff File
mod - src/dird/job.c Diff File
mod - src/dird/ua_cmds.c Diff File
mod - src/dird/ua_status.c Diff File

bareos2015: bareos-13.2 5232d006

2013-05-15 18:24

pstorz


Committer: mvwieringen

Ported: N/A

Details Diff
Number of subscriptions can be checked

The number of subscribed clients can be set in
the director ressource, e.g.

Subscriptions = 2

When the number of clients is bigger than the
configured limit, each job gets the following
message:

JobId 7: Warning: Subscriptions exceeded: (used/total) (3/2)

Also, the status of the subscriptions can be checked via
* status subscriptions
Warning! No available subscriptions: -1 (3/2) (used/total)

Nothing else than the warning is issued, no enforcement on
backup, restore or any other operation will happen.

Fixes 0000152: report if number of subscribed clients is exceeded.

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
Affected Issues
0000152
mod - src/dird/dird.c Diff File
mod - src/dird/dird_conf.c Diff File
mod - src/dird/dird_conf.h Diff File
mod - src/dird/job.c Diff File
mod - src/dird/ua_cmds.c Diff File
mod - src/dird/ua_status.c Diff File

Issue History

Date Modified Username Field Change
2013-04-15 15:06 pstorz New Issue
2013-05-10 16:34 pstorz Assigned To => pstorz
2013-05-10 16:34 pstorz Status new => assigned
2013-05-10 16:36 maik Note Added: 0000415
2013-05-10 16:59 pstorz Note Added: 0000416
2013-05-15 13:44 pstorz Note Added: 0000423
2013-05-16 09:32 mvwieringen Changeset attached => bareos master 1a5defbc
2013-05-16 09:32 mvwieringen Assigned To pstorz => mvwieringen
2013-05-16 09:32 mvwieringen Status assigned => resolved
2013-05-16 09:32 mvwieringen Resolution open => fixed
2013-05-16 09:32 mvwieringen Changeset attached => bareos Branch-12.4 45807bf4
2013-05-18 11:16 mvwieringen Status resolved => closed
2013-05-18 11:16 mvwieringen Assigned To mvwieringen =>
2013-05-18 11:24 pstorz View Status private => public
2013-05-24 12:53 pstorz Assigned To => pstorz
2013-05-24 12:53 pstorz Status closed => resolved
2013-06-21 17:09 joergs Status resolved => closed
2013-08-13 03:12 mvwieringen adm Changeset attached => bareos master 951e255f
2013-08-13 03:12 mvwieringen adm Changeset attached => bareos bareos-12.4 59608873
2013-08-13 03:12 mvwieringen adm Note Added: 0000584
2013-08-13 03:12 mvwieringen adm Assigned To pstorz => mvwieringen adm
2013-08-13 03:12 mvwieringen adm Status closed => resolved
2013-08-13 09:41 mvwieringen adm Assigned To mvwieringen adm =>
2013-08-13 09:41 mvwieringen adm Status resolved => closed
2014-02-06 21:06 maik Note Added: 0000808
2014-02-06 21:06 maik Status closed => feedback
2014-02-06 21:06 maik Resolution fixed => reopened
2014-02-21 16:10 pstorz Note Added: 0000819
2014-02-21 16:10 pstorz Status feedback => new
2014-02-21 16:16 mvwieringen Assigned To => mvwieringen
2014-02-21 16:16 mvwieringen Status new => acknowledged
2014-02-21 19:47 mvwieringen Status acknowledged => closed
2014-02-21 19:47 mvwieringen Resolution reopened => fixed
2015-01-19 19:36 mvwieringen adm Assigned To mvwieringen =>
2015-03-25 16:51 mvwieringen Changeset attached => bareos2015 bareos-12.4 16742e99
2015-03-25 16:51 mvwieringen Changeset attached => bareos2015 bareos-13.2 5232d006
2015-03-25 16:51 mvwieringen Note Added: 0001370
2015-03-25 16:51 mvwieringen Status closed => resolved
2015-03-25 19:18 joergs Note Added: 0001525
2015-03-25 19:18 joergs Status resolved => closed