mirror of https://github.com/mikaku/Monitorix.git
added a caveat in 'serv.pm' and its doc about to have different logfiles when a service is defined multiple times
This commit is contained in:
parent
1a56eff83b
commit
bba651d270
|
@ -259,6 +259,11 @@ sub serv_update {
|
|||
$sc[3] = "\".\"" unless $sc[3] ne "\"\""; # set "." as a minimal regex
|
||||
my @regex = split('\+', $sc[3]);
|
||||
my $IN;
|
||||
|
||||
# FIXME
|
||||
# $seek_pos does not distinguish between different
|
||||
# logfiles when a service is defined multiple times.
|
||||
|
||||
my $seek_pos = $config->{serv_hist}->{$seek_str} || 0;
|
||||
if($logfile =~ m/^file:.+/) {
|
||||
$logfile =~ s/^file://;
|
||||
|
|
|
@ -3212,6 +3212,8 @@ You can create multiple definitions of the same service with different values, s
|
|||
.RE
|
||||
.P
|
||||
You can define as much entries as you want.
|
||||
.P
|
||||
Caveat: it does not distinguish between different logfiles when a service is defined multiple times.
|
||||
.RE
|
||||
.P
|
||||
.BI mode
|
||||
|
|
Loading…
Reference in New Issue