diff --git a/doc/monithor-client.1.gz b/doc/monithor-client.1.gz deleted file mode 100644 index 99f65fe..0000000 Binary files a/doc/monithor-client.1.gz and /dev/null differ diff --git a/doc/monithor-client.md b/doc/monithor-client.md index a2e7a71..f048aec 100644 --- a/doc/monithor-client.md +++ b/doc/monithor-client.md @@ -1,21 +1,18 @@ -% MONITHOR-CLIENT(1) Version 1.12 | client bash de monitoring +--- +title: monithor-server +section: 1 +author: Guillaume Astier Ruiz +date: 20220320 +... -NAME -===== - -** monithor-client ** - service - - -SYNOPSIS -===== +# SYNOPSIS `/usr/local/bin/monithor-client [start/stop]` `/etc/init.d/monithor-c [start/stop]` -DESCRIPTION -===== +# DESCRIPTION monithor-client(1) permet de surveiller votre système d'information @@ -25,8 +22,7 @@ monithor-client(1) permet de surveiller votre système d'information - un serveur web en python est lancé sur votre machine de monitoring -INIT.D -====== +# INIT.D le service peut être démarré et arrêté via system V @@ -38,8 +34,7 @@ le service peut être démarré et arrêté via system V `/etc/init.d/monithor-c start` -CONFIGURATION SERVICE -===== +# CONFIGURATION SERVICE - Le fichier responsable de la gestion IP/PORT est : service.cfg @@ -69,8 +64,7 @@ CONFIGURATION SERVICE * WebPort : correpond au port utilisé pour lancer le serveur web python -CONFIGURATION SONDE -===== +# CONFIGURATION SONDE - La configuration des sondes est stocké dans le répertoires : diff --git a/doc/monithor-server.1.gz b/doc/monithor-server.1.gz deleted file mode 100644 index 4ebb7f5..0000000 Binary files a/doc/monithor-server.1.gz and /dev/null differ diff --git a/doc/monithor-server.md b/doc/monithor-server.md index a50dc4e..eee2b57 100644 --- a/doc/monithor-server.md +++ b/doc/monithor-server.md @@ -1,22 +1,18 @@ -% MONITHOR-SERVER(1) Version 1.12 | server bash de monitoring +--- +title: monithor-server +section: 1 +author: Guillaume Astier Ruiz +date: 20220320 +... - - -NAME -===== - -** monithor-server ** - service - -SYNOPSIS -====== +# SYNOPSIS `/usr/local/bin/monithor-server [start/stop]` `/etc/init.d/monithor-c [start/stop]` -DESCRIPTION -===== +# DESCRIPTION monithor-server(1) permet d'accépter des requêtes venant d'un instance monithor-client @@ -36,8 +32,7 @@ le service peut être démarré et arrêté via system V `/etc/init.d/monithor-c start` -CONFIGURATION SERVICE -===== +# CONFIGURATION SERVICE - Le fichier responsable de la gestion IP/PORT est : service.cfg @@ -57,8 +52,7 @@ CONFIGURATION SERVICE * Crypted : si la valeur est à "yes" le binnaire crypcat est utilisé, si non netcat est utilisé -CONFIGURATION SONDE -===== +# CONFIGURATION SONDE - La configuration des sondes est stocké dans le répertoires : @@ -72,15 +66,13 @@ Chaque sonde est composé de cette manière : * SCRIPT : Script éxecuté sur l'instance avec le(s) argument(s) reçu(s) de monithor client -SCRIPT -======= +# SCRIPT les scripts sont tous stocké dans le répertoire : /usr/local/bin/monithor-server.d/ -Exemple -====== +# Exemple * Configuration server : diff --git a/generate.sh b/generate.sh index 4a2d810..04601b9 100755 --- a/generate.sh +++ b/generate.sh @@ -62,11 +62,11 @@ ManPage() { pandoc -s -t man ${Wai}/doc/monithor-${1}.md -o ${Wai}/doc/monithor-${1}.1 [[ -f ${Wai}/doc/monithor-${1}.1.gz ]] && rm -f ${Wai}/doc/monithor-${1}.1.gz gzip ${Wai}/doc/monithor-${1}.1 - cp ${Wai}/doc/monithor-${1}.1.gz ${Wai}/monithor-${1}/usr/local/man/fr/man1/ + cp ${Wai}/doc/monithor-${1}.1.gz ${Wai}/monithor-${1}/usr/share/man/man1/ fi if [[ $2 == "delete" ]] then - rm ${Wai}/monithor-${1}/usr/local/man/fr/man1/* + rm ${Wai}/monithor-${1}/usr/share/man/man1/*gz rm ${Wai}/doc/monithor-${1}.1.gz fi } @@ -84,6 +84,6 @@ ManPage client create ManPage server create BuildDeb client $NewTag BuildDeb server $NewTag -#ManPage client delete -#ManPage server delete +ManPage client delete +ManPage server delete CleanTemp diff --git a/monithor-client/DEBIAN/postinst b/monithor-client/DEBIAN/postinst index 897330e..a28a5ba 100755 --- a/monithor-client/DEBIAN/postinst +++ b/monithor-client/DEBIAN/postinst @@ -1,8 +1,8 @@ #!/bin/bash echo "Update man page" -#mandb 2>&1 > /dev/null +mkdir /var/cache/man/oldlocal/fr -p +mandb 2>&1 > /dev/null echo "Fin d'installation" -mkdir /var/cache/man/oldlocal/fr -p diff --git a/monithor-client/usr/local/man/fr/man1/monithor-client.1.gz b/monithor-client/usr/local/man/fr/man1/monithor-client.1.gz deleted file mode 100644 index 99f65fe..0000000 Binary files a/monithor-client/usr/local/man/fr/man1/monithor-client.1.gz and /dev/null differ diff --git a/monithor-server/DEBIAN/postinst b/monithor-server/DEBIAN/postinst index 897330e..544a0d5 100755 --- a/monithor-server/DEBIAN/postinst +++ b/monithor-server/DEBIAN/postinst @@ -1,8 +1,8 @@ #!/bin/bash echo "Update man page" +#mkdir /var/cache/man/oldlocal/fr -p #mandb 2>&1 > /dev/null echo "Fin d'installation" -mkdir /var/cache/man/oldlocal/fr -p diff --git a/monithor-server/usr/local/man/fr/man1/monithor-server.1.gz b/monithor-server/usr/local/man/fr/man1/monithor-server.1.gz deleted file mode 100644 index 4ebb7f5..0000000 Binary files a/monithor-server/usr/local/man/fr/man1/monithor-server.1.gz and /dev/null differ