KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Receiving data from SQL Server (sqlcmd) in Hostmon

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
Stan White



Joined: 23 Jul 2014
Posts: 10
Location: United States

PostPosted: Thu Sep 04, 2014 4:12 pm    Post subject: Receiving data from SQL Server (sqlcmd) in Hostmon Reply with quote

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
View user's profile Send private message AIM Address
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Thu Sep 04, 2014 4:24 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
KS-Soft Europe



Joined: 16 May 2006
Posts: 2832

PostPosted: Thu Sep 04, 2014 4:42 pm    Post subject: Reply with quote

On the other hand, you may use ODBC query test to retrieve data using SQL queries:
http://www.ks-soft.net/hostmon.eng/mframe.htm#tests.htm#odbc
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
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

KS-Soft Forum Index