Wiki » Historique » Version 4
Patrice Nadeau, 2014-09-14 11:07
| 1 | 1 | Patrice Nadeau | %{font-size:18pt}check_domain_expiration% |
|---|---|---|---|
| 2 | |||
| 3 | 3 | Patrice Nadeau | Vérifie la date d'expiration d'un domaine internet. |
| 4 | |||
| 5 | 1 | Patrice Nadeau | --- |
| 6 | |||
| 7 | {{toc}} |
||
| 8 | |||
| 9 | h1. Explications |
||
| 10 | 3 | Patrice Nadeau | |
| 11 | Ce script _Bash_ vérifie la date d'expiration d'un domaine internet. |
||
| 12 | Les TLD(Top Level Domain) suivants sont reconnus : |
||
| 13 | * biz |
||
| 14 | * ca |
||
| 15 | * co |
||
| 16 | * com |
||
| 17 | * edu |
||
| 18 | * info |
||
| 19 | * me |
||
| 20 | * mobi |
||
| 21 | * net |
||
| 22 | * org |
||
| 23 | * tv |
||
| 24 | * us |
||
| 25 | * xxx |
||
| 26 | 1 | Patrice Nadeau | |
| 27 | 2 | Patrice Nadeau | h1. Utilisation |
| 28 | 4 | Patrice Nadeau | |
| 29 | Je prends pour acquis une installation sous openSUSE. |
||
| 30 | |||
| 31 | Installer le programme _whois_ (si il n'est pas deja installer) |
||
| 32 | <pre><code class="bash"> |
||
| 33 | # Verify if installed |
||
| 34 | rpm -qa | grep whois |
||
| 35 | # Install |
||
| 36 | zypper install whois |
||
| 37 | </code></pre> |
||
| 38 | |||
| 39 | Copier le fichier dans _/usr/lib/nagios/plugins_ |
||
| 40 | |||
| 41 | Rendre le fichier exécutable |
||
| 42 | <pre><code class="bash"> |
||
| 43 | chmod +x /usr/lib/nagios/plugins/check_domain_expiration.sh |
||
| 44 | </code></pre> |