![]() |
![]() |
Subject: | Data Source Command in Core 5 |
Author: | [Not Specified] |
Posted: | 2016-02-23 12:44 |
I want to make a data source command to run a script. Is there a specific container that I need to put the script in for the command to find it
Subject: | Isn't there a folder within |
Author: | [Not Specified] |
Posted: | 2016-02-24 19:51 |
Isn't there a folder within ZenPacks to hold binaries used by the ZenPack
Also, used to be (in Zenoss 4) that you could use the following TALES expression:
${here/ZenPackManager/packsZenPacks.org.service/path}/libexec/ to reference the libexec folder of the ZenPack. I would use that all the time, I think you could put your script in there and launch it with the appropriate TALES expression. This would also have the benefit of you packaging your stuff neatly in a ZenPack.
I have not tried this yet in Zenoss 5, so someone else might chime in to confirm/deny that this still works in 5.x
Manuel
Subject: | After establishing a |
Author: | [Not Specified] |
Posted: | 2016-02-24 20:46 |
After establishing a connection to an analytical data source, you can use an AdomdCommand object to run commands against and return results from that data source.
Subject: | Data Source Command in Core 5 |
Author: | [Not Specified] |
Posted: | 2016-07-15 12:24 |
Identify the service to attach:
serviced service status
Attach to the service for updates:
serviced service shell -s myupdate01 -i zencommand bash
Pull the script from host and make links:
su - zenoss
scp zen_host@172.17.0.1:/opt/zenoss_extensions/my_db_datasource.py /opt/zenoss/var/ext/
chmod a+x /opt/zenoss/var/ext/my_db_datasource.py
cd /opt/zenoss/libexec/
ln -s /opt/zenoss/var/ext/my_db_datasource.py my_db_datasource
exit
Exit from container:
exit
Commit changes:
serviced snapshot commit myupdate01
Restart the service:
serviced service restart zencommand
NOTE: the files in /opt/zenoss/var/ext/ will get preserved across upgrades while the libexec link will have to be re-created
< |
Previous Zenoss 5 - 95th Percentile on network graphs |
Next Zenoss API - Setting icon on multiple devices - Need help |
> |