Quantcast
Channel: VMware Communities : All Content - vRealize Operations Manager
Viewing all articles
Browse latest Browse all 5485

Using script to collect Data

$
0
0

Hi,

 

I would like to use the new script feature to collect a metric.

 

I see that the script should return a value like key:value

 

This is my script :

 

#!/bin/bash

val=$(netstat -ntaupe |grep httpd | grep ESTABLISHED | wc -l)

echo "res=$val"

 

The script return some result like :

 

res=18

 

But the return result value metric in my script object is always 0

I see that script is executed , but tha's all.

 

Something I have missed here ?

 

Thans


Viewing all articles
Browse latest Browse all 5485

Trending Articles



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