mirror of https://gitlab.crans.org/nounous/nixos
119 lines
2.7 KiB
Nix
119 lines
2.7 KiB
Nix
{ ... }:
|
|
|
|
{
|
|
|
|
bird = {
|
|
replacementAddress = "$1:9324";
|
|
targets = [
|
|
#"infra-1.back.infra.auro.re"
|
|
#"infra-2.back.infra.auro.re"
|
|
#"edge-1.back.infra.auro.re"
|
|
#"edge-2.back.infra.auro.re"
|
|
];
|
|
};
|
|
|
|
ceph = {
|
|
replacementAddress = "$1:9283";
|
|
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 = {
|
|
module = [
|
|
"uptime"
|
|
"ilo_memory"
|
|
"ilo_power"
|
|
"ilo_temp_fans"
|
|
];
|
|
auth = [ "ilo" ];
|
|
};
|
|
replacementAddress = "127.0.0.1:9116";
|
|
# Some get-bulk requests are left unanswered when using IPv6,
|
|
# so we force IPv4
|
|
replacementTarget = "udp4://$1";
|
|
targets = import ./targets/ilo.nix {};
|
|
};
|
|
|
|
jitsi = {
|
|
replacementAddress = "$1:9700";
|
|
targets = [ "jitsi.adm.crans.org" ];
|
|
};
|
|
|
|
#kea = { # pour quand on en aura un
|
|
# replacementAddress = "$1:9547";
|
|
# targets = [
|
|
# "dhcp-1.isp.infra.auro.re"
|
|
# "dhcp-2.isp.infra.auro.re"
|
|
# ];
|
|
#};
|
|
|
|
node = {
|
|
replacementAddress = "$1:9100";
|
|
targets = import ./targets/node.nix {};
|
|
};
|
|
|
|
postgresql = {
|
|
replacementAddress = "$1:9187";
|
|
targets = import ./targets/postgresql.nix {};
|
|
};
|
|
|
|
#procurve = {
|
|
# path = "/snmp";
|
|
# params = {
|
|
# module = [ "switch" "uptime" ];
|
|
# auth = [ "procurve" ];
|
|
# };
|
|
# Procurve switches are cheap…
|
|
# interval = "2m";
|
|
# timeout = "30s";
|
|
# replacementAddress = "127.0.0.1:9116";
|
|
# replacementTarget = "$1";
|
|
# targets = import ./targets/procurve.nix {};
|
|
#};
|
|
|
|
#quanta = {
|
|
# path = "/snmp";
|
|
# params = {
|
|
# module = [ "switch" "uptime" "quanta" ];
|
|
# auth = [ "quanta" ];
|
|
# };
|
|
# replacementAddress = "127.0.0.1:9116";
|
|
# replacementTarget = "$1";
|
|
# # Quanta switches are cheap…
|
|
# interval = "3m";
|
|
# timeout = "45s";
|
|
# targets = import ./targets/quanta.nix {};
|
|
#};
|
|
|
|
#snmp-exporter = { # pour le jour où on aura deux victoriametrics pour se surveiller l'un l'autre
|
|
# replacementAddress = "$1:9116";
|
|
# targets = [
|
|
# "prometheus-1.monit.infra.auro.re"
|
|
# "prometheus-2.monit.infra.auro.re"
|
|
# ];
|
|
#};
|
|
|
|
unbound = {
|
|
replacementAddress = "$1:9167";
|
|
targets = import ./targets/unbound.nix {};
|
|
};
|
|
|
|
# victoria-metrics = { # pour le jour où on aura deux victoriametrics pour se surveiller l'un l'autre
|
|
# replacementAddress = "$1:8428";
|
|
# targets = [
|
|
# "victoriametrics.adm.crans.org"
|
|
# # "prometheus-2.monit.infra.auro.re"
|
|
# ];
|
|
# };
|
|
}
|