Skip to content
GitLab
Explorer
Connexion
Navigation principale
Rechercher ou aller à…
Projet
docker_nagios
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Analyse
Données d'analyse des chaînes de valeur
Analyse des contributeurs
Données d'analyse du dépôt
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté GitLab
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
Le Filament
Ansible Roles
docker_nagios
Validations
08b3b979
Valider
08b3b979
rédigé
Il y a 5 mois
par
Théo - Le Filament
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
feat: PSI metrics
parent
3570754b
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Modifications
2
Afficher les modifications d'espaces
En ligne
Côte à côte
Affichage de
2 fichiers modifiés
templates/templates.cfg.j2
+31
-0
31 ajouts, 0 suppression
templates/templates.cfg.j2
templates/vps.cfg.j2
+24
-0
24 ajouts, 0 suppression
templates/vps.cfg.j2
avec
55 ajouts
et
0 suppression
templates/templates.cfg.j2
+
31
−
0
Voir le fichier @
08b3b979
...
@@ -119,6 +119,12 @@ define servicegroup{
...
@@ -119,6 +119,12 @@ define servicegroup{
members {{ groups.all | default([]) | map('extract', hostvars, ['inventory_hostname']) | sort | join(',Charge RAM,') }},Charge RAM
members {{ groups.all | default([]) | map('extract', hostvars, ['inventory_hostname']) | sort | join(',Charge RAM,') }},Charge RAM
}
}
define servicegroup{
servicegroup_name psi
alias PSI
members {{ groups.full_maintenance | default([]) | map('extract', hostvars, ['inventory_hostname']) | sort | join(',PSI CPU,') }},PSI CPU,{{ groups.full_maintenance | default([]) | map('extract', hostvars, ['inventory_hostname']) | sort | join(',PSI IO,') }},PSI IO,{{ groups.full_maintenance | default([]) | map('extract', hostvars, ['inventory_hostname']) | sort | join(',PSI memory,') }},PSI memory
}
{% endif %}
{% endif %}
{% if 'full_maintenance' in groups %}
{% if 'full_maintenance' in groups %}
define servicegroup{
define servicegroup{
...
@@ -200,6 +206,31 @@ define service{
...
@@ -200,6 +206,31 @@ define service{
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
}
}
define service{
name often-checked-service ; The 'name' of this service template
active_checks_enabled 1 ; Active service checks are enabled
passive_checks_enabled 1 ; Passive service checks are enabled/accepted
parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems)
obsess_over_service 1 ; We should obsess over this service (if necessary)
check_freshness 0 ; Default is to NOT check service 'freshness'
notifications_enabled 1 ; Service notifications are enabled
event_handler_enabled 1 ; Service event handler is enabled
flap_detection_enabled 1 ; Flap detection is enabled
process_perf_data 1 ; Process performance data
retain_status_information 1 ; Retain status information across program restarts
retain_nonstatus_information 1 ; Retain non-status information across program restarts
is_volatile 0 ; The service is not volatile
check_period 24x7 ; The service can be checked at any time of the day
max_check_attempts 3 ; Re-check the service up to 3 times in order to determine its final (hard) state
check_interval 1 ; Check the service every 10 minutes under normal conditions
retry_interval 2 ; Re-check the service every two minutes until a hard state can be determined
contact_groups admins ; Notifications get sent out to everyone in the 'admins' group
notification_options w,u,c,r ; Send notifications about warning, unknown, critical, and recovery events
notification_interval 120 ; Re-notify about service problems every two hours
notification_period heures-ouvres ; Notifications can be sent out at any time during working hours
register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE!
}
# Daily service definition template - This is NOT a real service, just a template!
# Daily service definition template - This is NOT a real service, just a template!
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
templates/vps.cfg.j2
+
24
−
0
Voir le fichier @
08b3b979
...
@@ -211,6 +211,30 @@ define service{
...
@@ -211,6 +211,30 @@ define service{
check_command check_nrpe!check_mem
check_command check_nrpe!check_mem
}
}
# Define a service to check cpu PSI on the local machine.
define service{
use often-checked-service,graphed-service
host_name {{ groups['full_maintenance'] | map('extract', hostvars, ['inventory_hostname']) | sort | join(',') }}
service_description PSI CPU
check_command check_nrpe!check_psi_cpu
}
# Define a service to check io PSI on the local machine.
define service{
use often-checked-service,graphed-service
host_name {{ groups['full_maintenance'] | map('extract', hostvars, ['inventory_hostname']) | sort | join(',') }}
service_description PSI IO
check_command check_nrpe!check_psi_io
}
# Define a service to check memory PSI on the local machine.
define service{
use often-checked-service,graphed-service
host_name {{ groups['full_maintenance'] | map('extract', hostvars, ['inventory_hostname']) | sort | join(',') }}
service_description PSI memory
check_command check_nrpe!check_psi_memory
}
# SSH
# SSH
define service{
define service{
use generic-service
use generic-service
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter