I have a template which monitors some backup scripts I wrote. One of the files in my scripts has a Version number of the script, so I know which host has a old outaged script.
My template has a Macro Named: {$WPS.BASH.BACKUP.VERSION}
I created a trigger with the expressions
This checks and makes sure the version of my script is correct. Works great.
but this is not my intention. I was trying to check if the script has a minimum version >=
this does not work. I am assuming because the template macro is a string and the Item is a float, but i am not sure. I tried using macro functions, but that doesnt seems to work.
Any ideas on how i can accomplish this?
My template has a Macro Named: {$WPS.BASH.BACKUP.VERSION}
I created a trigger with the expressions
Code:
last(/WPS - Bash Backup Script - Version Check/vfs.file.contents[/wps/bash-backup-scripts/VERSION])<>{$WPS.BASH.BACKUP.VERSION}
but this is not my intention. I was trying to check if the script has a minimum version >=
Code:
last(/WPS - Bash Backup Script - Version Check/vfs.file.contents[/wps/bash-backup-scripts/VERSION])>= {$WPS.BASH.BACKUP.VERSION}
this does not work. I am assuming because the template macro is a string and the Item is a float, but i am not sure. I tried using macro functions, but that doesnt seems to work.
Any ideas on how i can accomplish this?
Comment