Perl plugins: No output from plugin

Chester R. Hosey Chester.Hosey at gianteagle.com
Tue Aug 23 17:32:45 CEST 2005


On Tue, 2005-08-23 at 10:29 -0500, Dennis Hopp wrote:
> I don't get a file in /tmp...
> 
> 
> # 'check_linux_load' command definition
> define command{
>         command_name    check_linux_load
>         command_line    $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C
> public -w $ARG1$ -c $ARG2$ -L > /tmp/plugin_output.tmp |echo $?
> 
> #       command_line    $USER1$/check_snmp_load.pl -h
> }
> 
> --Dennis

Try using the 'tee' command in your definition -- even if the command
generates no output, tee will at least create a 0-length file.

command_line    $USER1$/check_snmp_load.pl -H $HOSTADDRESS$ -C public -w
$ARG1$ -c $ARG2$ -L | /usr/bin/tee /tmp/plugin_output.tmp

(Verify path to 'tee', of course.)

Chet


-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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