The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Nagios::Cmd::Read

DESCRIPTION

This module is mostly for testing Nagios::Cmd programs and the module itself. It makes it trivial to set up a consumer of Nagios commands.

Example:

 > mkfifo -m 600 /var/tmp/my_test_fifo
 > perl -I./lib -MNagios::Cmd::Read <<EOF
 > my \$reader = Nagios::Cmd::Read->new( "/var/tmp/my_test_fifo" );
 > while (1) { print \$reader->readcmd() }
 > EOF

 ... a test to see if it's working before blaming your Nagios::Cmd script
 > echo "[000000000000] FOO_BAR_COMMAND;yes" >>/var/tmp/my_test_fifo

 > rm -f /var/tmp/my_test_fifo

LICENSE

GPL

AUTHOR

Al Tobey <tobeya@tobert.org>

WARNINGS

See AUTHOR.