50 lines
3.4 KiB
YAML
50 lines
3.4 KiB
YAML
id: app-apache
|
|
name: Apache HTTP Server
|
|
category: application
|
|
status: verified
|
|
plugin: centreon_apache_serverstatus.pl
|
|
description: Supervision d'un serveur Apache via la page mod_status (charge CPU, requetes, slots, temps de reponse).
|
|
host_template:
|
|
name: App-Apache-custom
|
|
alias: Applicatif Apache
|
|
parents: [generic-active-host-custom]
|
|
macros:
|
|
- {name: APACHEPORT, value: "80", description: "Port d'ecoute"}
|
|
- {name: APACHEPROTO, value: "http", description: "Protocole (http ou https)"}
|
|
- {name: APACHEURLPATH, value: "/server-status/?auto", description: "Chemin de la page mod_status"}
|
|
- {name: APACHEEXTRAOPTIONS, value: "", description: "Options supplementaires passees au plugin"}
|
|
services:
|
|
- name: Cpu-Load
|
|
alias: Cpu-Load
|
|
description: Charge CPU declaree par Apache
|
|
line: "$CENTREONPLUGINS$/centreon_apache_serverstatus.pl --plugin=apps::apache::serverstatus::plugin --mode=cpuload --hostname=$HOSTADDRESS$ --port='$_HOSTAPACHEPORT$' --proto='$_HOSTAPACHEPROTO$' --urlpath='$_HOSTAPACHEURLPATH$' --warning='$_SERVICEWARNING$' --critical='$_SERVICECRITICAL$' $_HOSTAPACHEEXTRAOPTIONS$ $_SERVICEEXTRAOPTIONS$"
|
|
macros:
|
|
- {name: WARNING, value: "80", description: "Seuil warning en %"}
|
|
- {name: CRITICAL, value: "90", description: "Seuil critical en %"}
|
|
- {name: EXTRAOPTIONS, value: "", description: "Options supplementaires"}
|
|
- name: Requests
|
|
alias: Requests
|
|
description: Requetes et debit par seconde
|
|
line: "$CENTREONPLUGINS$/centreon_apache_serverstatus.pl --plugin=apps::apache::serverstatus::plugin --mode=requests --hostname=$HOSTADDRESS$ --port='$_HOSTAPACHEPORT$' --proto='$_HOSTAPACHEPROTO$' --urlpath='$_HOSTAPACHEURLPATH$' --warning='$_SERVICEWARNING$' --critical='$_SERVICECRITICAL$' $_HOSTAPACHEEXTRAOPTIONS$ $_SERVICEEXTRAOPTIONS$"
|
|
macros:
|
|
- {name: WARNING, value: "", description: "Seuil warning"}
|
|
- {name: CRITICAL, value: "", description: "Seuil critical"}
|
|
- {name: EXTRAOPTIONS, value: "", description: "Options supplementaires"}
|
|
- name: Slot-States
|
|
alias: Slot-States
|
|
description: Occupation des slots de traitement
|
|
line: "$CENTREONPLUGINS$/centreon_apache_serverstatus.pl --plugin=apps::apache::serverstatus::plugin --mode=slotstates --hostname=$HOSTADDRESS$ --port='$_HOSTAPACHEPORT$' --proto='$_HOSTAPACHEPROTO$' --urlpath='$_HOSTAPACHEURLPATH$' --warning-busy='$_SERVICEWARNING$' --critical-busy='$_SERVICECRITICAL$' $_HOSTAPACHEEXTRAOPTIONS$ $_SERVICEEXTRAOPTIONS$"
|
|
macros:
|
|
- {name: WARNING, value: "80", description: "Seuil warning slots occupes (%)"}
|
|
- {name: CRITICAL, value: "90", description: "Seuil critical slots occupes (%)"}
|
|
- {name: EXTRAOPTIONS, value: "", description: "Options supplementaires"}
|
|
- name: Response-Time
|
|
alias: Response-Time
|
|
description: Temps de reponse de la page de statut
|
|
default: false
|
|
line: "$CENTREONPLUGINS$/centreon_apache_serverstatus.pl --plugin=apps::apache::serverstatus::plugin --mode=responsetime --hostname=$HOSTADDRESS$ --port='$_HOSTAPACHEPORT$' --proto='$_HOSTAPACHEPROTO$' --urlpath='$_HOSTAPACHEURLPATH$' --warning='$_SERVICEWARNING$' --critical='$_SERVICECRITICAL$' $_HOSTAPACHEEXTRAOPTIONS$ $_SERVICEEXTRAOPTIONS$"
|
|
macros:
|
|
- {name: WARNING, value: "1", description: "Seuil warning en secondes"}
|
|
- {name: CRITICAL, value: "3", description: "Seuil critical en secondes"}
|
|
- {name: EXTRAOPTIONS, value: "", description: "Options supplementaires"}
|