VMware Cloud Community
ebailey
Enthusiast
Enthusiast

curious issue running a script with an alert

I have made an alert for a process that fires the alert when availability is 0 and then I set the script tab to run a script in response to the alert. I am getting the following error message in the alert detail view after the alert fires.

Script: Cannot run program "/opt/hq-plugins/puppet.sh": java.io.IOException: error=2, No such file or directory

I have verified that the script is present so I don't understand the alert. Has anyone seen this error before? Am setting up the alert correctly? Can the script tab be used in an alert setup?

Thanks

Ed
0 Kudos
3 Replies
admin
Immortal
Immortal

Hi,

I had the same problem and worked around it using the details here: http://support.hyperic.net/display/DOC/User-defined+Control+Actions . (Add script as Fileserver File then in alert configure Control action using Fileserver File and selecting that script.)
I would still be curious how the script response works.

HTH
0 Kudos
ebailey
Enthusiast
Enthusiast

I finally found out that the reason I am getting this error is that the script action only works on the HQ server. The path must point to a script that lives on the HQ server. I put in a request to get the option extended to the client.

I will take a look at your suggestion and see how it works. Thanks for the idea. I need to see if this service can be triggers by conditions from another service. For example, certain file system fuill alerts can be automatically resolved if I can trigger the fileserver file service from the file system full alert.

Thanks again

Ed
0 Kudos
mcmesser
Hot Shot
Hot Shot

You know, we don't make this clear at all in the docs:

http://support.hyperic.com/display/DOCSHQ32/ui-Alert.Script

Sorry about that Ed. I'll make sure this gets updated.
0 Kudos