Skip to content

Question to author/community - Changes and improvements #21

@aholiveira

Description

@aholiveira

Hello @romainsi and all,
First of all let me thank you @romainsi for your great work on this. It was very useful and prompted me to give back to the project in the spirit of open source, sharing the changes I had done to it.

I have two questions regarding future changes on this template:
1 - There could be a possibility to completely remove the need to manually alter the script to adjust the configuration. Instead this configuration could be done using macros on the template, which would then send the values to the script.
This way both the template and the script would not need to be modified on each installation.
However, this would make the "master items" look really ugly (veeam.info[JobsInfo,{$VEEAM_DB_SERVER},{$VEEAM_DB_INSTANCE},{$VEEAM_DB_USERNAME},{$VEEAM_DB_PASSWORD},{$VEEAM_DB_INTEGRATED},{$VEEAM_DB_VEEAMDB}]) and would also require that at least the password to be base64 encoded on the macro (because of the characters Zabbix accepts on an item key).
Do you see value in making this change to the script/template?

2 - On the macro {$VEEAM_JOB_HOURS_WARN} the last version (2.8) of the template is using JOBNAME as context ({$VEEAM_JOB_HOURS_WARN:"{#JOBNAME}"} instead of JOBID (which was used in the previous version).
JOBID is in GUID format and only available on the database (you can't see it on Veeam's GUI). You can obtain it from the trigger expression on the host, but when you're looking at the macros on the host you can't really tell which job each macro relates to.
However, the job ID does not change if the job is renamed.
Using JOBNAME on the context macro, makes it easier to identify the job that the macro is associated to but if you rename the job, you also need to rename the context macro.
Which one do you think should be used for the context macro, JOBID or JOBNAME?

Please comment with your thoughts on this. Thanks.

Regards,

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions