mirror of https://gitlab.crans.org/nounous/nixos
on avait oublié qq eaton par ci par là (on renome tout en ups)
parent
c14721d7cb
commit
403b54e30a
|
|
@ -3,11 +3,11 @@
|
|||
{
|
||||
bird = ./bird.nix;
|
||||
ceph = ./ceph.nix;
|
||||
eaton = ./eaton.nix;
|
||||
ilo = ./ilo.nix;
|
||||
jitsi = ./jitsi.nix;
|
||||
node = ./node.nix;
|
||||
postgresql = ./postgresql.nix;
|
||||
switch = ./switch.nix;
|
||||
unbound = ./unbound.nix;
|
||||
ups = ./ups.nix;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{ critical, warning, ... }:
|
||||
|
||||
{
|
||||
alerts.EatonBatteryFailure = {
|
||||
alerts.UpsBatteryFailure = { # s'appelait eatonBatteryFailure avant
|
||||
expr = ''
|
||||
xupsBatteryFailure{xupsBatteryFailure="yes"} == 1
|
||||
'';
|
||||
|
|
@ -9,7 +9,7 @@
|
|||
labels = critical;
|
||||
};
|
||||
|
||||
alerts.EatonBatteryLow = {
|
||||
alerts.UpsBatteryLow = { # idem
|
||||
expr = ''
|
||||
xupsBatTimeRemaining < 1800
|
||||
'';
|
||||
|
|
@ -17,15 +17,6 @@
|
|||
targets = import ./targets/ceph.nix {};
|
||||
};
|
||||
|
||||
eaton = {
|
||||
path = "/snmp";
|
||||
params.module = [ "eaton" "uptime" ];
|
||||
params.auth = [ "eaton" ];
|
||||
replacementAddress = "127.0.0.1:9116";
|
||||
replacementTarget = "$1";
|
||||
targets = import ./targets/eaton.nix {};
|
||||
};
|
||||
|
||||
ilo = {
|
||||
path = "/snmp";
|
||||
params = {
|
||||
|
|
@ -108,6 +99,15 @@
|
|||
targets = import ./targets/unbound.nix {};
|
||||
};
|
||||
|
||||
ups = {
|
||||
path = "/snmp";
|
||||
params.module = [ "ups" "uptime" ];
|
||||
params.auth = [ "ups" ];
|
||||
replacementAddress = "127.0.0.1:9116";
|
||||
replacementTarget = "$1";
|
||||
targets = import ./targets/ups.nix {};
|
||||
};
|
||||
|
||||
# victoria-metrics = { # pour le jour où on aura deux victoriametrics pour se surveiller l'un l'autre
|
||||
# replacementAddress = "$1:8428";
|
||||
# targets = [
|
||||
|
|
|
|||
|
|
@ -11,23 +11,23 @@
|
|||
priv_protocol = "AES";
|
||||
priv_password = "\${ILO_PRIV}";
|
||||
};
|
||||
eaton = {
|
||||
ups = {
|
||||
version = 1;
|
||||
community = "prometheus";
|
||||
};
|
||||
## Tenté, échoue sur 10.201.3.1 (celui dans le local serveurs de EDC). :(
|
||||
#eaton = {
|
||||
#ups = {
|
||||
# version = 3;
|
||||
# username = "prometheus";
|
||||
# security_level = "authPriv";
|
||||
# auth_protocol = "SHA";
|
||||
# password = "\${EATON_AUTH}";
|
||||
# password = "\${ups_AUTH}";
|
||||
# priv_protocol = "AES";
|
||||
# priv_password = "\${EATON_PRIV}";
|
||||
# priv_password = "\${ups_PRIV}";
|
||||
#};
|
||||
};
|
||||
|
||||
modules.eaton = {
|
||||
modules.ups = {
|
||||
walk = [
|
||||
"xupsInput"
|
||||
"xupsOutput"
|
||||
|
|
|
|||
Loading…
Reference in New Issue