From f036b6784e2b621886176a00e807e4080dd7315a Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 19 Mar 2013 10:21:30 +0100 Subject: [PATCH] nrpe is bad about reading stderr --- dsa-nagios-checks/checks/dsa-check-hpacucli | 2 +- dsa-nagios-checks/debian/changelog | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/dsa-nagios-checks/checks/dsa-check-hpacucli b/dsa-nagios-checks/checks/dsa-check-hpacucli index 55d8ce7..8f62bb9 100755 --- a/dsa-nagios-checks/checks/dsa-check-hpacucli +++ b/dsa-nagios-checks/checks/dsa-check-hpacucli @@ -41,7 +41,7 @@ my %CODE = ( my $EXITCODE = 'OK'; $SIG{'__DIE__'} = sub { - print STDERR @_; + print @_; exit $CODE{'UNKNOWN'}; }; diff --git a/dsa-nagios-checks/debian/changelog b/dsa-nagios-checks/debian/changelog index d17632c..5f3ce20 100644 --- a/dsa-nagios-checks/debian/changelog +++ b/dsa-nagios-checks/debian/changelog @@ -5,6 +5,7 @@ dsa-nagios-checks (9x) UNRELEASED; urgency=low [ Peter Palfrader ] * dsa-check-packages: work better with weird multi-arch cases. + * dsa-check-hpacucli: print errors to stdout so that nrpe can read it. -- Stephen Gran Sat, 29 Dec 2012 13:28:47 +0000 -- 2.20.1