Archive for juillet, 2006
Mercredi, juillet 26th, 2006
Voici le script suivant (adapté d'après ce site) :
#!/bin/sh
# Detects which OS and if it is Linux then it will detect which Linux Distribution.
OS=`uname -s`
REV=`uname -r`
MACH=`uname -m`
GetVersionFromFile()
{
VERSION=`cat $1 | tr "\n" ' ' | sed s/.*VERSION.*=\ // `
}
if [ "${OS}" = "SunOS" ...
Posted in Shell, Système | 4 Comments »
Mercredi, juillet 26th, 2006
L'idée est d'avoir un .htaccess permettant l'authentification avec LDAP afin d'accéder à l'interface web de Nagios (version 2.0).
Extrait de mon httpd.conf (apache version 2.2) :
ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"
Options ExecCGI
AllowOverride All
Order allow,deny
Allow from all
Alias /nagios "/usr/local/nagios/share"
...
Posted in Supervision, Sécurité | No Comments »
Mardi, juillet 25th, 2006
Les fichiers de configurations de Nagios (version 2.0) sont assez fastidieux à remplir si l'on doit y ajouter fréquement des nouvelles machines. Voici deux scripts que j'utilise pour m'éviter la saisie à la main de toutes les nouvelles bornes wifi...
PS : Je répertorie ces bornes dans le fichier bornes.wifi suivant ...
Posted in Supervision | No Comments »
Mardi, juillet 18th, 2006
Lien vers le fichier "auto-extractible" :
http://www.java.com/fr/download/manual.jsp
A modifier suivant les configurations :
# Installation de JRE :
su
chmod a+x jre-1_5_0_06-linux-i586.bin
./jre-1_5_0_06-linux-i586.bin
cp -R jre-1_5_0_06/ /usr/java/
# Configuration pour Firefox :
ln -s /usr/java/jre-1_5_0_06/plugin/i386/ns7/libjavaplugin_oji.so /usr/lib/firefox-1.0.7/plugins/
# Suppression du fichier d'installation :
rm jre-1_5_0_06-linux-i586.bin
Posted in web | No Comments »