![]() |
![]() |
Subject: | Executing command from notification seems not to do anything |
Author: | [Not Specified] |
Posted: | 2015-07-01 07:29 |
Hi
i recently moved from 4.2 to 5.0.3 and i'm very happy with it.
small problem : i can't make the command execution to work, nothing seems to happen. i didn't find anything in the logs of zenoss (/opt/zenoss/logs in the docker container )
i tried
- $ZENHOME/scripts/reboot.sh ${evt/device}
- /opt/zenoss/scripts/reboot.sh ${evt/device}
i also tried putting the script in /usr/local/bin/reboot.sh on the host machine itself..
i put those script in the container, commited it, even restarted the whole machine.. nothing seems to work
also tried something i saw on the forums here :
ssh root@${evt/device} touch /tmp/zenoss_cmd after adding the private key in .ssh/id_dsa in the host machine
i read documentation and searched the forums, there's no example nowhere...
if someone could help it would be greatly appreciated :)
thanks
Subject: | what's the log output for |
Author: | Andrew Kirch |
Posted: | 2015-07-20 12:22 |
what's the log output for zenactiond look like
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: | I've spoken with support. |
Author: | Andrew Kirch |
Posted: | 2015-07-20 12:24 |
I've spoken with support. Export an empty skeleton zenpack and stick them in the libexec folder.
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: | Hi |
Author: | [Not Specified] |
Posted: | 2015-07-28 06:21 |
Hi
thanks for replying and sorry for the late answer :)
weirdly enough the logs don't seem to get updated... i entered the docker container, but the last log for zenactiond is from 2 months ago
[root@8ae6967e033e log]# cat zenactiond.log
2015-05-26 19:09:25,894 INFO zen.ZenActionD: current pid: 5135
2015-05-26 19:09:26,114 INFO zen.maintenance: Performing periodic maintenance
2015-05-26 19:09:26,124 INFO zen.zenactiond: starting zenactiond consumer.
2015-05-26 19:09:26,154 INFO zen.queueconsumer: Queue consumer ready.
2015-05-26 19:10:26,124 INFO zen.maintenance: Performing periodic maintenance
2015-05-26 19:10:40,863 INFO zen.ZenActionD: Deleting PID file /opt/zenoss/var/zenactiond-localhost.pid ...
2015-05-26 19:10:40,864 INFO zen.ZenActionD: Daemon ZenActionD shutting down
2015-05-26 19:10:40,864 INFO zen.zenactiond: Shutting down...
2015-05-26 19:10:40,866 INFO zen.protocols.twisted: Connection to queue closed
2015-05-26 19:10:40,866 INFO zen.protocols.twisted: Disconnecting AMQP Client.
for the empty skeleton zenpack, i have no idea how to do that... if you have a man page or howto i'll read it :)
what will it do to add an empty zenpack
thanks for your help
Subject: | check the log in CC. It |
Author: | Andrew Kirch |
Posted: | 2015-07-29 09:01 |
check the log in CC. It should be directing to logstash. Go to advanced > ZenPacks and you should see the option. I'll get you screenshots if needed, but am currently remote.
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: | ah yes i keep forgetting |
Author: | [Not Specified] |
Posted: | 2015-07-29 09:48 |
ah yes i keep forgetting about the ccenter :)
i found the logs, i see the command trying to execute but fails trying to find the script...
2015-07-29 14:38:56,544 INFO zen.zenactiond: Event:'qabl90||/Status/Ping|5|qabl90 is DOWN!' Trigger:qabl_down Action:command Status:SUCCESS Target:dann Info:
2015-07-29 14:38:56,546 ERROR zen.actions: Command executed: cd /opt/zenoss/scripts/ ; ./qabl_reboot.sh qabl90
stderr: /bin/sh: line 0: cd: /opt/zenoss/scripts/: No such file or directory
2015-07-29 14:38:56,554 ERROR zen.actions: Command qabl_restart failed (exit code A process has ended with a probable error condition: process ended with exit code 127.) -- 127: stdout:
stderr: /bin/sh: line 0: cd: /opt/zenoss/scripts/: No such file or directory
/bin/sh: ./qabl_reboot.sh: No such file or directory
/bin/sh: ./qabl_reboot.sh: No such file or directory
2015-07-29 14:38:56,554 ERROR zen.actions: Command executed: cd /opt/zenoss/scripts/ ; ./qabl_reboot.sh qabl90
2015-07-29 14:38:56,546 ERROR zen.actions: Command qabl_restart failed (exit code A process has ended with a probable error condition: process ended with exit code 127.) -- 127: stdout:
so where should i put my script for zenoss to see it
for the zenpack i knew where it was but there's no export function. Even if i try to create one i got an error message saying that now i need to use :
ZenPacks can no longer be added via the UI. Please use the CLI to add the zenpack. For example: > serviced service run zope zenpack create ZenPacks.awesome.Extension
thanks :)
Subject: | you're going to have to |
Author: | Andrew Kirch |
Posted: | 2015-07-30 11:19 |
you're going to have to export a zenpack (see above) and add it to the /libexec folder. Take a look here for an example: https://github.com/trelane/ZenPacks.trelane.Postfix
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
< |
Previous jmx help |
Next v5 core LDAP |
> |