[UPDATE] - man page not local

This commit is contained in:
Prof Isen 2022-03-21 14:07:12 +01:00
parent ffc9ad66ed
commit 8fd4776f92
9 changed files with 30 additions and 44 deletions

Binary file not shown.

View File

@ -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 # SYNOPSIS
=====
** monithor-client ** - service
SYNOPSIS
=====
`/usr/local/bin/monithor-client [start/stop]` `/usr/local/bin/monithor-client [start/stop]`
`/etc/init.d/monithor-c [start/stop]` `/etc/init.d/monithor-c [start/stop]`
DESCRIPTION # DESCRIPTION
=====
monithor-client(1) permet de surveiller votre système d'information 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 - 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 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` `/etc/init.d/monithor-c start`
CONFIGURATION SERVICE # CONFIGURATION SERVICE
=====
- Le fichier responsable de la gestion IP/PORT est : service.cfg - 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 * 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 : - La configuration des sondes est stocké dans le répertoires :

Binary file not shown.

View File

@ -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
...
# SYNOPSIS
NAME
=====
** monithor-server ** - service
SYNOPSIS
======
`/usr/local/bin/monithor-server [start/stop]` `/usr/local/bin/monithor-server [start/stop]`
`/etc/init.d/monithor-c [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 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` `/etc/init.d/monithor-c start`
CONFIGURATION SERVICE # CONFIGURATION SERVICE
=====
- Le fichier responsable de la gestion IP/PORT est : service.cfg - 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é * 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 : - 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 é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 : les scripts sont tous stocké dans le répertoire :
/usr/local/bin/monithor-server.d/ /usr/local/bin/monithor-server.d/
Exemple # Exemple
======
* Configuration server : * Configuration server :

View File

@ -62,11 +62,11 @@ ManPage() {
pandoc -s -t man ${Wai}/doc/monithor-${1}.md -o ${Wai}/doc/monithor-${1}.1 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 [[ -f ${Wai}/doc/monithor-${1}.1.gz ]] && rm -f ${Wai}/doc/monithor-${1}.1.gz
gzip ${Wai}/doc/monithor-${1}.1 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 fi
if [[ $2 == "delete" ]] if [[ $2 == "delete" ]]
then 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 rm ${Wai}/doc/monithor-${1}.1.gz
fi fi
} }
@ -84,6 +84,6 @@ ManPage client create
ManPage server create ManPage server create
BuildDeb client $NewTag BuildDeb client $NewTag
BuildDeb server $NewTag BuildDeb server $NewTag
#ManPage client delete ManPage client delete
#ManPage server delete ManPage server delete
CleanTemp CleanTemp

View File

@ -1,8 +1,8 @@
#!/bin/bash #!/bin/bash
echo "Update man page" 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" echo "Fin d'installation"
mkdir /var/cache/man/oldlocal/fr -p

View File

@ -1,8 +1,8 @@
#!/bin/bash #!/bin/bash
echo "Update man page" echo "Update man page"
#mkdir /var/cache/man/oldlocal/fr -p
#mandb 2>&1 > /dev/null #mandb 2>&1 > /dev/null
echo "Fin d'installation" echo "Fin d'installation"
mkdir /var/cache/man/oldlocal/fr -p