Quantcast
Channel: VMware Communities : Popular Discussions - Hyperic User Forums
Viewing all articles
Browse latest Browse all 52618

Script Plugin - Hyperic Not Displaying Result Value?

$
0
0
I have followed the Hyperic instructions on how to create a custom script and have Hyperic run it and obtain the result as specified here - http://support.hyperic.com/display/hypcomm/Executing+Custom+Shell+Scripts+with+Hyperic+HQ

However, even though running my script form a command line with the exact command line path and arguments as given to Hyperic does in fact return a numeric result (decimal), Hyperic constantly says "no metric data available" for the Utilization / Result metric. It is running the command, because the return code is 0 (availability 100%), and the execution time looks correct. I have even written a new dummy script, which is just a bash script, and all it does is echo a number to STDOUT. Hyperic still refuses to display it as a result.

Reading the full documentation on the Script Service - http://support.hyperic.com/display/DOC/Script+Plugin - the example for obtaining a result value from the output contains a key / value pair separated with a colon. I don't know if this is enforced, or if Hyperic is actually supposed to just look for the first number it sees, but even when I output "Result: 4", Hyperic still doesn't see it. I am checking by using the Metric Data panel in the script service that I am looking at, and by turning on all indicators including those that do not have data (the Result Value has no data).

I don't really want to go the whole hog with and XML specification file as there is only 1 value output by the script and I'm not interested in other values at this point but I don't really understand why this simple script isn't working. I've simplified the example about as much as possible, so I'm hoping someone on here can point out what I'm missing.

Viewing all articles
Browse latest Browse all 52618

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>