|
View previous topic :: View next topic |
Author |
Message |
Stan White
Joined: 23 Jul 2014 Posts: 10 Location: United States
|
Posted: Thu Sep 04, 2014 4:12 pm Post subject: Receiving data from SQL Server (sqlcmd) in Hostmon |
|
|
Hi,
I would like to know how Hostmon receives data returned from SQL Server. I am using a powershell script to check the size of some table that grow rapidly and would like to show the size in hostmon.
Thanks |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
Posted: Thu Sep 04, 2014 4:24 pm Post subject: |
|
|
You may use Shell Script test:
http://www.ks-soft.net/hostmon.eng/mframe.htm#tests.htm#chkShell
Your powershell script should echo text in the following format:
ScriptRes:<test status>:<Reply text>
e.g:
ScriptRes:Ok:My reply text or value
ScriptRes:Bad:100 Mb
ScriptRes:Host is alive:My reply text or value
ScriptRes:No answer:My reply text or value
ScriptRes:Unknown:My reply text or value
ScriptRes:Unknown host:My reply text or value
ScriptRes:Bad contents:My reply text or value
Please note, you may check powershell script examples in Script Manager. |
|
Back to top |
|
|
KS-Soft Europe
Joined: 16 May 2006 Posts: 2832
|
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|