monitoring: ignore sshfs filesystems
This commit is contained in:
parent
8469b8d4a8
commit
60c663db4a
@ -7,11 +7,13 @@ let
|
|||||||
|
|
||||||
nginxCfg = config.services.nginx;
|
nginxCfg = config.services.nginx;
|
||||||
buildFSChecker = fsList:
|
buildFSChecker = fsList:
|
||||||
(concatStringsSep "\n" (attrValues (mapAttrs (f: _: ''
|
(concatStringsSep "\n" (attrValues (mapAttrs (f: v:
|
||||||
check filesystem ${replaceStrings [ "/" ] [ "_" ] f} with path ${f}
|
if v.fsType != "sshfs" then ''
|
||||||
if space usage > 90% then alert
|
check filesystem ${replaceStrings [ "/" ] [ "_" ] f} with path ${f}
|
||||||
if inode usage > 90% then alert
|
if space usage > 90% then alert
|
||||||
'') fsList)));
|
if inode usage > 90% then alert
|
||||||
|
'' else
|
||||||
|
"") fsList)));
|
||||||
buildNginxChecker = vhostList:
|
buildNginxChecker = vhostList:
|
||||||
(concatStringsSep "\n" (attrValues (mapAttrs (f: v: ''
|
(concatStringsSep "\n" (attrValues (mapAttrs (f: v: ''
|
||||||
check host ${f} with address ${f}
|
check host ${f} with address ${f}
|
||||||
|
Loading…
Reference in New Issue
Block a user