Quantcast
Channel: THWACK: All Content - Server & Application Monitor
Viewing all articles
Browse latest Browse all 12281

Bash scripting - Can't identify dynamic column definitions from script output.

$
0
0

I am heading up a project to move from up.time monitoring over to Solarwinds. The last thing I have before project completion is to write three different linux bash scripts. They're very simple, but when I copy them over in to the Linux/Unix Script Monitor, they all return the same thing: Can't identify dynamic column definitions from script output. I need some direction. What is Solarwinds looking for when it gives me this error? Here is the script that up.time uses:

 

#!/bin/sh

echo "matchCount `netstat -an | grep 50000 | wc -l | sed 's/ //g'`"

 

The script returns the number of IP addresses that are connected at port 50000. If I run netstat -an | grep 50000 | wc -l | sed 's/ //g' from the command line without invoking the script, it returns a value. How do I convert this to something that Solarwinds can use?

 

Please, any help is appreciated.


Viewing all articles
Browse latest Browse all 12281

Trending Articles



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