mirror of https://github.com/mikaku/Monitorix.git
added a warning message in 'disk.pm' that if some of the disk devices defined is not present in the system the initialization will be aborted
This commit is contained in:
parent
5d419494ca
commit
fd953c2264
|
@ -59,6 +59,7 @@ sub disk_init {
|
||||||
logger("$myself: ERROR: invalid or inexistent device name '$d'.");
|
logger("$myself: ERROR: invalid or inexistent device name '$d'.");
|
||||||
if(lc($disk->{accept_invalid_disk}) ne "y") {
|
if(lc($disk->{accept_invalid_disk}) ne "y") {
|
||||||
logger("$myself: 'accept_invalid_disk' option is not set.");
|
logger("$myself: 'accept_invalid_disk' option is not set.");
|
||||||
|
logger("$myself: WARNING: initialization aborted.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue