Proforming MS-SQL Querys

Thomas Earl tearl at cacdhh.org
Wed Apr 27 13:55:31 CEST 2005


Greetings to all, 

I'm trying to find the best way to write a module to do a couple of
MS-SQL querys and then compare the results... i.e.

$a = SELECT from CALLERS where are_logged_in
$b = SELECT from CALLERS where on_calls

If $a = $b
  report to nagios 
[else]
  exit

Of course the syntax of the above example is no where near what it needs
to be, but you get the idea... 

I was reading something about sqsh, but I'm not running sybase so I
don't know that is the right way... So I default to the experts... 

Any ideas would be great!

Thanks, 

Tom
--
Thomas Earl
Network Engineer & Designer
Communication Access Center



-------------------------------------------------------
SF.Net email is sponsored by: Tell us your software development plans!
Take this survey and enter to win a one-year sub to SourceForge.net
Plus IDC's 2005 look-ahead and a copy of this survey
Click here to start!  http://www.idcswdc.com/cgi-bin/survey?id=105hix
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list