PDA

View Full Version : relayd (and hoststated) give syntax error for 'check script'


gwl
05-02-2008, 02:54 PM
Both hoststated (OpenBSD 4.2) and relayd (4.3) give a "syntax error" (nothing more) when I try to use "check script"


redirect "mysql" {
listen on $external_mysql port 3306 interface em0
tag REDIRECTED
forward to <mysqlhosts> port 3306 timeout 300 check script /opt/checkmysql

}


relayd -n
/etc/relayd.conf:68: syntax error


It's the same thing with hoststated on bsd 4.2. Before I file a bug, anyone use this before and/or what am I doing wrong?

TIA

-Gerry Lawrence
gwlperl@gmail.com

PS Yes, I know this is a public forum and emails in the clear are bad but this email address gwlperl@gmail.com is on ALL the public forums and google does a great job of dealing with all the spam -- thanks for your concern -gwl
Edit/Delete Message

ocicat
05-02-2008, 03:33 PM
Both hoststated (OpenBSD 4.2) and relayd (4.3) give a "syntax error" (nothing more) when I try to use "check script"
My suggestion would be to post to the official misc@ mailing list. Information on subscribing can be found at the following:

http://openbsd.org/mail.html

gwl
05-02-2008, 05:53 PM
Ok, I figured this out. check script needs the script to be quoted..

So this works:
forward to <mysqlhosts> port 3306 timeout 300 check script "/opt/checkmysql"