NCSA Plugin Wrapper
Benoit Panizzon
Benoit.Panizzon at imp.ch
Wed Jul 21 10:59:49 CEST 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi all
As I got no replies at all on how to report a plugin's output via NSCA I
started writing a wrapper myself but as I'm not a perl coder I have
some troubles.
I do a open(READ, "plugin args |");
and read the plugin output into $poutput;
open(WRITE, "| nsca");
print($host\t$service\t$status\t$poutput\n");
But how the hell do I read the exit code from the plugin with open which I
need to fill the $status needed for nsca?
- -Benoit-
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFA/jCFCVq2G/yL7/ARAk5yAKCdInJWz3oi6UPinLNmOKyl/QhgCQCfdJHb
eOJhZ8FKD3lIz+KYMlYiWPc=
=YNWB
-----END PGP SIGNATURE-----
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=4721&alloc_id=10040&op=click
_______________________________________________
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