[Nagiosplug-devel] How to write Expect plugin

Horvath Tamas zsitfa at t-online.hu
Fri Sep 1 19:49:10 CEST 2006

Hi Sean!

Thank you your reply. I've just tried it but it did not work. And -n did not
work also.

When I start my script in the background it runs and do its work (read and
send data from/to PIX, and read and write tempfiles), but it does not exit.
And its output cannot be seen in my screen (nor send_user neither send_error

After I run fg, script's data appears and script stops.

I think that the problem is with the terminal and I read Exploring Expect
book from cover to cover, and its Backgrounbd chapter again and again, but I
don't understand how to handle this issue.

My shell scripts work well with Nagios. I just do printf or echo and my
output appeara in Nagios Web interface as $OUTPUT$ and in PerfParse as

Can anyone tell me how to handle this "background" issue. (I set TERM, but
it does not solve the problem.)

Thanks in advance, Tamas!

More information about the Devel mailing list