mirror of https://github.com/jimsalterjrs/sanoid
Remove unnecessary (and warning-causing) prototypes
This commit is contained in:
parent
5487c38350
commit
8896059fe4
8
sanoid
8
sanoid
|
|
@ -70,7 +70,7 @@ exit 0;
|
||||||
####################################################################################
|
####################################################################################
|
||||||
####################################################################################
|
####################################################################################
|
||||||
|
|
||||||
sub monitor_health() {
|
sub monitor_health {
|
||||||
my ($config, $snaps, $snapsbytype, $snapsbypath) = @_;
|
my ($config, $snaps, $snapsbytype, $snapsbypath) = @_;
|
||||||
my %pools;
|
my %pools;
|
||||||
my @messages;
|
my @messages;
|
||||||
|
|
@ -93,13 +93,13 @@ sub monitor_health() {
|
||||||
print "$message\n";
|
print "$message\n";
|
||||||
exit $errlevel;
|
exit $errlevel;
|
||||||
|
|
||||||
} # end monitor_health()
|
}
|
||||||
|
|
||||||
####################################################################################
|
####################################################################################
|
||||||
####################################################################################
|
####################################################################################
|
||||||
####################################################################################
|
####################################################################################
|
||||||
|
|
||||||
sub monitor_snapshots() {
|
sub monitor_snapshots {
|
||||||
|
|
||||||
# nagios plugin format: exit 0,1,2,3 for OK, WARN, CRITICAL, or ERROR.
|
# nagios plugin format: exit 0,1,2,3 for OK, WARN, CRITICAL, or ERROR.
|
||||||
|
|
||||||
|
|
@ -172,7 +172,7 @@ sub monitor_snapshots() {
|
||||||
|
|
||||||
print "$msg\n";
|
print "$msg\n";
|
||||||
exit $errorlevel;
|
exit $errorlevel;
|
||||||
} # end monitor()
|
}
|
||||||
|
|
||||||
####################################################################################
|
####################################################################################
|
||||||
####################################################################################
|
####################################################################################
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue