TECHZEN Zenoss User Community ARCHIVE  

Zenoss 5 -> User commands

Subject: Zenoss 5 -> User commands
Author: [Not Specified]
Posted: 2015-03-19 12:03

Hi,

On Zenoss 5, where do I install a package (fping for example) or put my own scripts to be used as a User command

I tried do attach and install in Zenoss.Core but doesn't seems to work. Where is the right place to do this

Thanks,
Bruno Macedo



Subject: To make changes run the
Author: Andrew Kirch
Posted: 2015-03-20 11:39

To make changes run the following:
# serviced service shell -s thingtocommit -i zope/0 bash
make the changes (yum -y install fping)
then exit and commit with the following:
# serviced snapshot commit thingtocommit

I've filed a bug to get this added to the Admin Guide

Andrew Kirch

akirch@gvit.com

Need Zenoss support, consulting or custom development Look no further. Email or PM me!

Ready for Distributed Topology (collectors) for Zenoss 5 Coming May 1st from GoVanguard



Subject: How do we know where to install needed packages in Zenoss Core 5
Author: Ken Jenkins
Posted: 2015-03-24 21:26

Where "zope/0" is referenced ... is there a list of other containers we would want to install and commit into

serviced service shell -s thingtocommit -i zope/0 bash

Please let me know.

Thanks,
Ken



Subject: Sorry for ressurect...
Author: [Not Specified]
Posted: 2015-06-11 08:18

Sorry for ressurect...

# serviced service shell -s Fping -i zope/0 bash
service not found

# serviced service shell -s Fping -i Zope bash
I0611 10:11:59.796719 06536 server.go:341] Connected to the control center at port xxxx:4979
I0611 10:11:59.964756 06536 server.go:435] Acquiring image from the dfs...
I0611 10:11:59.966637 06536 server.go:437] Acquired! Starting shell
Trying to connect to logstash server... 127.0.0.1:5042
Connected to logstash server.

# wget ftp://fr2.rpmfind.net/linux/dag/redhat/el7/en/x86_64/dag/RPMS/fping-3.10...
# rpm -ivh fping-3.10-1.el7.rf.x86_64.rpm
Preparing... ################################# [100%]
Updating / installing...
1:fping-3.10-1.el7.rf ################################# [100%]
# exit
# serviced snapshot commit Fping

Still /usr/sbin/fping not found if used on a Zenoss command.



Subject: Also
Author: [Not Specified]
Posted: 2015-06-11 08:23

# serviced service shell -i Zope bash
I0611 10:22:16.208988 13259 server.go:341] Connected to the control center at port 189.127.48.18:4979
I0611 10:22:16.404898 13259 server.go:435] Acquiring image from the dfs...
I0611 10:22:16.406499 13259 server.go:437] Acquired! Starting shell
Trying to connect to logstash server... 127.0.0.1:5042
Connected to logstash server.

# fping 10.10.254.224
10.10.254.224 is alive



Subject: Did you ever find a solution
Author: [Not Specified]
Posted: 2015-10-29 07:59

Did you ever find a solution to this



Subject: After installing fping...
Author: [Not Specified]
Posted: 2016-01-07 11:29

To get the changes picked up in the gui I had to restart zope.



Subject: Hi All,
Author: [Not Specified]
Posted: 2016-04-29 10:34

Hi All,

I am having a very similar problem to this.

In Zenoss 4 we had a Notification Command that worked great to call a script that updated a SQL table, such as:

cd /opt/zenoss/libexec/
bash isqlscript.sh "'${evt/firstTime}'" "'${evt/device}'" "'${evt/component}'" "'${evt/component}'" 0

Now in Zenoss 5 I have attempted to commit the Docker change like:
# serviced service shell -s SQLScript -i zope/0 bash
make the changes, install ODBCconnectivity, SQL script testing.....
then exit and commit with the following:
# serviced snapshot commit SQLScript

But then I am not sure how this gets called from the Edit Notification Command. The process is always returning: command not found.



< Previous
Zenoss Core 5.0 - Unable to get Google Maps to work
  Next
Zenoss Core 5.0 Virtual Appliance is now live!
>