WAdama / nas_ab_status

Bash script for monitoring status of device backup in Synology Active Backup for Business in PRTG
GNU General Public License v3.0
9 stars 2 forks source link

Multiple devices with same name #3

Closed pitah81 closed 3 years ago

pitah81 commented 3 years ago

Can this script somehow handle multiple devices that are using the same computer name? Unfortunately many of our customers has a generic AD20xx server name for domain controllers, same goes for RDS20xx. Would it be possible to connect the script to something else than just the name of the server as to work around this?

WAdama commented 3 years ago

Hi Peter,

I have to admit I never thought about that kind of constellation. Is ABB accepting double device names?

I will have a look into the database ABB is using. If I remember correct there was also a device id.

Regards Ingo

pitah81 commented 3 years ago

Yes, it does allow for server backups with same server name. Else we would have a real nightmare.

I would be very grateful if it would be possible to use a device ID or some other anchor which is unique that each device and disconnected from computer/sever name.

Best regards Peter

WAdama commented 3 years ago

Then I will set this as a feature request...

But it could take a few days...

pitah81 commented 3 years ago

Thanks!

And it will take whatever time it takes, as you're doing this on your spare time. I would be happy if you got it working whatever time it takes.

WAdama commented 3 years ago

One thing puzzles me a little...

If the devices all have the same name, how do you differentiate between them in ABB?

pitah81 commented 3 years ago

One thing puzzles me a little...

If the devices all have the same name, how do you differentiate between them in ABB?

By creating and applying a template for each customer, and connecting a user account for the customer to that template. You'll have to excuse the swedish, but I've included an example from physical server backup view. As you can see they all have the same "Device" name but different "Task" name as that is created from the template. I suppose I could rename the tasks to something like "Customer - Servername" if it would be possible to extract the backup status using task name as anchor.

AB-distinguish

WAdama commented 3 years ago

Then I think the easiest way may to add afilter for the templates.

I will have a look for this...

WAdama commented 3 years ago

Hi Peter,

if you feel like doing some testing: https://github.com/WAdama/nas_ab_status/tree/Test

Have also a look at the updated documentation...

pitah81 commented 3 years ago

I just tested it out, and from what I can tell it seems to work as expected. Well done!

WAdama commented 3 years ago

Thanks... Optimistic as I was, I've already moved it to master branch. Then I will close this...