Nagios and WINE issue


Hi all and thanks for looking into my issue. I currently have Nagios installed and need notifications to be sent out via WINE EXE. I already have a windows based application and it works perfectly until its called by Nagios. What do I need to do in order to get it working? basically this is what I have.

define command{
command_name notify-by-page
command_line $USER1$/page_notify.ksh

and page_notify.ksh calls this…

wcmd /c c:\pageme.bat (wcmd runs windows code like a cmd.exe session)

as I said I can run the above command anywhere in the OS without any path statements and what not. When it launches from nagios I see it execute my page_notify.ksh, but it never calls wcmd.