Posting to mssql

Andreas Ericsson ae at op5.se
Sun Jul 11 02:20:39 CEST 2004


Jack Doyle wrote:
> I'm going to use a host/service event handler to post data to Microsoft
> SQL 2000 Server database.
>  
> I've created a web page that reads the contents of a form posted to it
> and puts that data into the SQL database.  Then my eventhandler uses
> wget with the --post-data= option to post the data from the nagios
> macros to that web page.  I'm new, sue me.
>  

There's also sqsh, freely available from www.sqsh.org.

> Anways, I need my macros to be url-encoded.  Anyone know of a simple
> linux command, etc, that can url-encode this data?
>  

Isn't wget capable of doing that for you? If not, use perl. It's the 
kind of quick'n dirty hack it was designed for, after all.

> Jack Doyle, LGC Information Systems 	
> Systems Operations Specialist 	
> 540.776.2025 	
>  

-- 
Sourcerer / Andreas Ericsson
OP5 AB
+46 (0)733 709032
andreas.ericsson at op5.se


-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 - 
digital self defense, top technical experts, no vendor pitches, 
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
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