Here's what I'm trying to do (zabbix 4.4.4):
I have a directory on the zabbix server (though it could be any host potentially). In it are a bunch of flexlm license.dat files (basically just pointers to the actual running license servers).
What I want to do is:
1. Have a discover that finds all of these license files
2. For each license file, run a script that gets the raw output of 'lmutil lmstat -c license.dat -a'. Actually for this, I've massaged the output into an array of 'feature' => [ 'used' => 10, 'total' => 100]
3. For each feature, I want an item created for 'used' and 'total'
So I'm thinking I need a discovery of a discovery. Is that possible? I was playing with a host prototype. Maybe create a pseudo host out of each license and that would then pull the raw data and then do a discovery of that inside that new host. But I didn't know if I could pass a macro from the previous discovery. Early attempts at this have not been successful. Is there another route entirely for monitoring a bunch of flexlm licenses aside from manually entering them? That would be maybe a generic template and then one template per license file, each with a macro set for which license file to use?
Any help is appreciated.
I have a directory on the zabbix server (though it could be any host potentially). In it are a bunch of flexlm license.dat files (basically just pointers to the actual running license servers).
What I want to do is:
1. Have a discover that finds all of these license files
2. For each license file, run a script that gets the raw output of 'lmutil lmstat -c license.dat -a'. Actually for this, I've massaged the output into an array of 'feature' => [ 'used' => 10, 'total' => 100]
3. For each feature, I want an item created for 'used' and 'total'
So I'm thinking I need a discovery of a discovery. Is that possible? I was playing with a host prototype. Maybe create a pseudo host out of each license and that would then pull the raw data and then do a discovery of that inside that new host. But I didn't know if I could pass a macro from the previous discovery. Early attempts at this have not been successful. Is there another route entirely for monitoring a bunch of flexlm licenses aside from manually entering them? That would be maybe a generic template and then one template per license file, each with a macro set for which license file to use?
Any help is appreciated.
Comment