projects
/
mirror
/
dsa-nagios.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ zobel@debian.org-20080929195606-7b69jqa03vx93h93]
[mirror/dsa-nagios.git]
/
dsa-nagios-nrpe-config
/
dsa-check-samhain
diff --git
a/dsa-nagios-nrpe-config/dsa-check-samhain
b/dsa-nagios-nrpe-config/dsa-check-samhain
index
b4b4046
..
c6b3f4f
100755
(executable)
--- a/
dsa-nagios-nrpe-config/dsa-check-samhain
+++ b/
dsa-nagios-nrpe-config/dsa-check-samhain
@@
-50,7
+50,7
@@
$ENV{'ENV'}='';
# -----------------------------------------------------------------[ Global ]--
$PROGNAME = "dsa-check-samhain";
# -----------------------------------------------------------------[ Global ]--
$PROGNAME = "dsa-check-samhain";
-$SAMHAIN = "
sudo
/usr/sbin/samhain";
+$SAMHAIN = "/usr/sbin/samhain";
# ----------------------------------------------------------------[ options ]--
# ----------------------------------------------------------------[ options ]--
@@
-72,7
+72,7
@@
alarm($opt_t);
# ----------------------------------------------------------[ start samhain ]--
if ( defined $SAMHAIN && -x $SAMHAIN ) {
# ----------------------------------------------------------[ start samhain ]--
if ( defined $SAMHAIN && -x $SAMHAIN ) {
- if (! open (SHPIPE, "$SAMHAIN -t check --foreground -p err -s none -l none -m none 2>&1 | " ) ) {
+ if (! open (SHPIPE, "
/usr/bin/sudo
$SAMHAIN -t check --foreground -p err -s none -l none -m none 2>&1 | " ) ) {
print "ERROR: could not popen $SAMHAIN \n";
exit $ERRORS{'UNKNOWN'};
}
print "ERROR: could not popen $SAMHAIN \n";
exit $ERRORS{'UNKNOWN'};
}