Hi Guys,
I would like to run a check on a specific file - its a text file that contains the software vendors info, and the version number.
I can clean it up to become an environment variable that gives me exactly the number I want:
The above is an example, but this is exactly what I have, just with different values for the software version file, etc.
How can I get this variable to show up in Zabbix? I just want to be able to check this version number periodically.
Can anyone help me? A link to a similar question, what to search (google or this forum), anything would be appreciated. I have poked around on this forum and not found anything that suits my query - unless I am searching for the wrong things.
I would like to run a check on a specific file - its a text file that contains the software vendors info, and the version number.
I can clean it up to become an environment variable that gives me exactly the number I want:
Code:
root@lane-8304:~#software_version=$(cat /path/to/fileIwanttocheck.txt | head -n 1| cut -b 16,17,18,19,20) root@lane-8304:~#echo $software_version 1.2.3
How can I get this variable to show up in Zabbix? I just want to be able to check this version number periodically.
Can anyone help me? A link to a similar question, what to search (google or this forum), anything would be appreciated. I have poked around on this forum and not found anything that suits my query - unless I am searching for the wrong things.
Comment