mirror of
https://github.com/munin-monitoring/contrib.git
synced 2025-07-22 02:51:03 +00:00
Improve incorrect or unspecific output for "autoconf"
Some plugins emit wrongly formatted "no" messages or lack the "yes" message on success.
This commit is contained in:
parent
e4cd049b01
commit
2ec4e4c1f7
20 changed files with 68 additions and 99 deletions
|
@ -122,12 +122,12 @@ if ( defined($ARGV[0]) && $ARGV[0] eq "config" ) {
|
|||
|
||||
if ( defined($ARGV[0]) && $ARGV[0] eq "autoconf" ) {
|
||||
if (! -f $stat_file) {
|
||||
printf "Unable to file bind stat file on %s",$stat_file;
|
||||
exit 1;
|
||||
printf "no (Unable to file bind stat file on %s)",$stat_file;
|
||||
exit 0;
|
||||
}
|
||||
if (! -f $rndc) {
|
||||
printf "Unable to file rndc tool (configured : %s)",$rndc;
|
||||
exit 1;
|
||||
printf "no (Unable to file rndc tool (configured : %s))",$rndc;
|
||||
exit 0;
|
||||
}
|
||||
exit 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue