<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Infos-reseau.com</title>
	<atom:link href="http://infos-reseau.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://infos-reseau.com</link>
	<description>Site communautaire Teletechno.com</description>
	<lastBuildDate>Thu, 03 May 2012 12:50:16 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>PIWIK l&#8217;alternative à Google Analytics</title>
		<link>http://infos-reseau.com/piwik-lalternative-a-google-analytics/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=piwik-lalternative-a-google-analytics</link>
		<comments>http://infos-reseau.com/piwik-lalternative-a-google-analytics/#comments</comments>
		<pubDate>Thu, 03 May 2012 12:48:48 +0000</pubDate>
		<dc:creator>Antoine B</dc:creator>
				<category><![CDATA[Hébergement]]></category>
		<category><![CDATA[analyse web open source]]></category>
		<category><![CDATA[analytics]]></category>
		<category><![CDATA[compteur de visites]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[phpmyvisits]]></category>
		<category><![CDATA[piwik]]></category>
		<category><![CDATA[stat site web]]></category>
		<category><![CDATA[statistiques site]]></category>

		<guid isPermaLink="false">http://infos-reseau.com/?p=367</guid>
		<description><![CDATA[Comme beaucoup, j&#8217;utilise depuis de nombreuses années Google Analytics pour le suivi et l&#8217;analyse du trafic des sites que j&#8217;héberge. Je lui reconnais de très nombreux avantages; c&#8217;est bien présenté, et c&#8217;est très complet. Mais j&#8217;y trouve aussi des inconvénients; il est trop complet et parfois trop compliqué pour des usages basiques. La semaine dernière, [...]]]></description>
			<content:encoded><![CDATA[<p>Comme beaucoup, j&#8217;utilise depuis de nombreuses années Google Analytics pour le suivi et l&#8217;analyse du trafic des sites que j&#8217;héberge. Je lui reconnais de très nombreux avantages; c&#8217;est bien présenté, et c&#8217;est très complet. Mais j&#8217;y trouve aussi des inconvénients; il est trop complet et parfois trop compliqué pour des usages basiques.</p>
<p>La semaine dernière, je déjeunais avec un ami (<a title="INEOSCAN" href="http://ineoscan.com" target="_blank">je vous invite à visiter son site</a>)de très longue date, il me parle de PIWIK.</p>
<p>PIWIK vous avez dit PIWIK, mille milliards de mille sabords qu&#8217;est ce que c&#8217;est que ce bazar là. Il me sors son iphone4 et son Galaxy S et il existe les plugin et c&#8217;est tout beau. Au passage on a repris un petit verre de cette cote de Saint Mont &#8211; Vive le Gers.</p>
<p>Me voilà donc parti dans mes recherches sur PIWIK. Surprise !!! je découvre que c&#8217;est ce bon vieux phpmyvisite (que j&#8217;ai laché il y a 4 ans parce que pas assez beau et parce que pas assez fun et simple) qui s&#8217;est refait une jeunesse. Elle est pas belle la vie&#8230; J&#8217;appréciais à phpmyvisite sa robustesse son code PHP et sa base Mysql et bien le voilà beau et simple et OPENSOURCE.</p>
<p>Je décide donc de me lancer.</p>
<p>Téléchargement de la version 1.7.1 disponible sur <a title="PIWIK" href="http://piwik.org/" target="_blank">le site PIWIK</a>. Je regrette le format ZIP un tar serait aussi bien pour les utilisateurs linux, bref c&#8217;est pas grave.</p>
<p>Upload en FTP sur le serveur (pour le coup j&#8217;ai utiliser un répertoire dans un site existant hébergé sur un Linux EHCP).</p>
<p>J&#8217;ai créé une base Mysql dédiée.</p>
<p>Une fois l&#8217;upload terminé j&#8217;ai ouvert en http la racine du site sur le modele http://monsite.com/monrep/</p>
<p>et la magie je tombe sur une page web d&#8217;install. Tout est indiqué les corrections à apporter sur les droits dans les dossiers sur suivant c&#8217;est la connection à la base Mysql, puis le nom d&#8217;utilisateur, puis la mise en place du premier site.</p>
<p>Genial en 10 minutes chrono le système est déployé.<br />
Déjà très bon point c&#8217;est en Français dans le texte. Allons du coté des paramètres:</p>
<p>Passons à la pratique:</p>
<p><a href="http://infos-reseau.com/wp-content/uploads/2012/05/paramètres.png"><img class="size-medium wp-image-369 alignleft" title="paramètres" src="http://infos-reseau.com/wp-content/uploads/2012/05/paramètres-300x145.png" alt="" width="300" height="145" /></a></p>
<div><span style="color: #0000ee;"><span style="text-decoration: underline;"><br />
</span></span>  Comme vous pouvez le voir c&#8217;est simple. 6 onglets avec des champs qui sont clairs et sans ambiguité.&nbsp;</p>
<p>Dans l&#8217;ordre,<br />
1 &#8211; vous créez vos sites, vous vérifiez que les informations sont bien prises en compte,<br />
2 &#8211; Vouc créez vos utilisateurs, et enfin vous gérez les accès.</p>
<p><strong>Création des sites:</strong></p>
<p><a href="http://infos-reseau.com/wp-content/uploads/2012/05/site.png"><img class="alignleft  wp-image-376" title="site" src="http://infos-reseau.com/wp-content/uploads/2012/05/site.png" alt="" width="1263" height="598" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>On fait dans la simplicité, avec les options essentielles d&#8217;exclusion.</p>
<p>Une fois que votre site est créé cliquez sur le mien afficher le code et insérez la balise dans le header ou le footer de votre site</p>
<p>Faites une visite sur votre site (attention si vous avez mis des exclusions ne le faites pas à partir d&#8217;une IP exclue)<br />
pour vérifier que tout fonctionne allez dans &laquo;&nbsp;tous les sites web&nbsp;&raquo;, sélectionnez votre site et vérifiez que vous visualisez votre visite.</p>
<p><strong>Création des utilisateurs et des accès:</strong></p>
<p>Comme vous pouvez le voir c&#8217;est simple. 6 onglets avec des champs qui sont clairs et sans ambiguité.</p>
<p>Coté gestion des utilisateurs, si vous voulez mettre plusieurs sites et gérer les droits d&#8217;accès par utilisateur, je vous conseille de crééer en premier lieu tous vos utilisateur<br />
Ensuite via le menu déroulant &laquo;&nbsp;Site&nbsp;&raquo; sélectionnez votre site et au choix cliquez sur le type d&#8217;accès que vous souhaitez accorder: pas d&#8217;accès, consultation, administration.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://infos-reseau.com/piwik-lalternative-a-google-analytics/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Streaming VLC</title>
		<link>http://infos-reseau.com/streaming-vlc/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=streaming-vlc</link>
		<comments>http://infos-reseau.com/streaming-vlc/#comments</comments>
		<pubDate>Fri, 20 Apr 2012 15:49:28 +0000</pubDate>
		<dc:creator>Disciple</dc:creator>
				<category><![CDATA[Réseau]]></category>
		<category><![CDATA[Système GNU/Linux]]></category>
		<category><![CDATA[camera videosurveillance]]></category>
		<category><![CDATA[mosaic]]></category>
		<category><![CDATA[mosaique]]></category>
		<category><![CDATA[streaming multicast]]></category>
		<category><![CDATA[videolan]]></category>
		<category><![CDATA[vlc]]></category>

		<guid isPermaLink="false">http://infos-reseau.com/?p=316</guid>
		<description><![CDATA[Dans ce tutoriel je vais vous montrer comment faire du streaming sur un réseau local avec VLC Media Player. &#160; Qu&#8217;est ce que VLC ? Vlc est un projet développé par Videolan qui permet de lire des fichiers multimédias (vidéos,sons). Il permet aussi de faire de l&#8217;acquisition via une carte TV/DVB, de faire de la [...]]]></description>
			<content:encoded><![CDATA[<p>Dans ce tutoriel je vais vous montrer comment faire du streaming sur un réseau local avec VLC Media Player.</p>
<p style="text-align: center"><a href="http://infos-reseau.com/wp-content/uploads/2012/04/VLC1.jpg"><img class="alignnone size-medium wp-image-349" src="http://infos-reseau.com/wp-content/uploads/2012/04/VLC1-300x266.jpg" alt="" width="300" height="266" /></a></p>
<p>&nbsp;</p>
<p><strong>Qu&#8217;est ce que VLC ?</strong></p>
<p>Vlc est un projet développé par Videolan qui permet de lire des fichiers multimédias (vidéos,sons). Il permet aussi de faire de l&#8217;acquisition via une carte TV/DVB, de faire de la conversion et ce qui nous intéresse, de la diffusion.</p>
<p>J&#8217;utilise un serveur Ubuntu 10.04 LTS et un pc sous Windows pour faire mes test, Vlc dans sa version 1.1.13 Luggage.</p>
<p>Je me connecte via un client SSH Putty fait très bien le travail (<a title="Putty" href="http://the.earth.li/~sgtatham/putty/latest/x86/putty.exe">Putty</a>). On se connecte au serveur dont l&#8217;ip est 192.168.16.102. On rentre notre identifiant et mot de passe (Vlc ne s’exécute pas en session root)</p>
<p align="LEFT">Il nous faut maintenant mettre a jour les sources et les paquets via la commande :</p>
<blockquote>
<p style="text-align: center">apt-get update</p>
</blockquote>
<p>(les commandes apt-get ne s&#8217;exécute qu&#8217;en session root, nous changeons donc l&#8217;utilisateur qui est connecté via la commande « su root ») Il nous est demander un mot de passe root, le rentrer et appuyer sur entrer. Nous voilà en session root.</p>
<p align="CENTER"><a href="http://infos-reseau.com/wp-content/uploads/2012/04/connection-en-root.jpg"><img class="size-medium wp-image-317 aligncenter" src="http://infos-reseau.com/wp-content/uploads/2012/04/connection-en-root-300x188.jpg" alt="" width="300" height="188" /></a>Nous mettons la commande pour mettre a jour les sources</p>
<blockquote><p>&nbsp;</p></blockquote>
<p align="CENTER"><a href="http://infos-reseau.com/wp-content/uploads/2012/04/Téléchargement-des-sources.jpg"><img class="alignnone  wp-image-322" src="http://infos-reseau.com/wp-content/uploads/2012/04/Téléchargement-des-sources-300x188.jpg" alt="" width="319" height="200" /></a></p>
<p align="CENTER">Les sources se télécharges et se mettes à jour.</p>
<p align="LEFT">Nous pouvons maintenant passer a l&#8217;installation de Vlc.</p>
<p align="LEFT"><strong>II) Installation de VLC :</strong></p>
<p align="LEFT">Nous pouvons maintenant installer Vlc en y entrant la commande apt-get install vlc (toujours en session root). On valide, on met &laquo;&nbsp;y&nbsp;&raquo; pour confirmer l&#8217;installation, le téléchargement et l&#8217;installation se déroule. Vlc est installer sur le serveur.</p>
<p align="LEFT"><em>1) Diffusion d&#8217;un fichier vidéo sur le réseau &amp; transcodage.</em></p>
<p>Entrer la commande</p>
<blockquote>
<pre>cvlc -vvv video.avi --sout '#transcode{vcodec=x264,vb=300}:standard{access=http,mux=ts,dst=192.168.16.102:8085}'</pre>
</blockquote>
<p>Détails de la commande :</p>
<p><strong>cvlc</strong> : lance vlc en ligne de commande sans interface graphique.</p>
<p><strong>-vvv</strong> : lance le verbose mode pour identifier les erreurs s&#8217;il y&#8217;en a.</p>
<p><strong>–sout</strong> : active la sortie du flux transcodé.</p>
<p><strong>Transcode</strong> : active le transcodage.</p>
<p><strong>vcodec</strong> = nous choisissons ici le codec vidéo utilisé pour le transcodage.</p>
<p><strong>vb</strong> = on règle ici le bitrate vidéo du transcodage.</p>
<p><strong>standard</strong> : envoie le flux dans le protocole choisis.</p>
<p><strong>acces</strong> : on choisis ici le mode d&#8217;accès au flux, Http est très bien, c&#8217;est le seul que j&#8217;ai pu utiliser sans avoir des erreurs.</p>
<p><strong>Mux</strong> = on choisis ici le mux pour le flux streamé, ts est parfait pour le Streaming.</p>
<p><strong>dst</strong> = on règle ici l&#8217;adresse ip du destinataire du flux, en l&#8217;occurrence nous choisissons le serveur Ubuntu où nous sommes déjà connecté.</p>
<p><strong>192.168.16.102:8085</strong> : C&#8217;est l&#8217;ip du destinataire suivie de « :8085 », ce qui signifie que pour lire le flux nous devrons nous connecté via le port 8085, via la commande a entrer dans Vlc : « <a href="http://192.168.16.102:8085/">http://192.168.16.102:8085</a> ».</p>
<p>&nbsp;</p>
<p style="margin-bottom: 0cm" align="LEFT">Une fois la commande entré, la vidéo est en cours de transcodage, nous pouvons lire le flux qui en est sortie en ouvrant Vlc sur un poste Windows.</p>
<p style="margin-bottom: 0cm;text-align: center" align="LEFT"><a href="http://infos-reseau.com/wp-content/uploads/2012/04/transcodage-et-diffusion-sur-le-réseau-dune-vidéo.jpg"><img class="alignnone  wp-image-323" src="http://infos-reseau.com/wp-content/uploads/2012/04/transcodage-et-diffusion-sur-le-réseau-dune-vidéo-267x300.jpg" alt="" width="266" height="299" /></a></p>
<p style="margin-bottom: 0cm" align="CENTER">Le transcodage de la vidéo et la diffusion sont en cours.</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p style="margin-bottom: 0cm" align="LEFT"><strong>Lecture du flux :</strong></p>
<p style="margin-bottom: 0cm" align="LEFT">Ouvrir Vlc sur un pc Windows.</p>
<p style="margin-bottom: 0cm;text-align: center" align="CENTER"><a href="http://infos-reseau.com/wp-content/uploads/2012/04/ouverture-vlc1.jpg"><img class="alignnone size-full wp-image-327" src="http://infos-reseau.com/wp-content/uploads/2012/04/ouverture-vlc1.jpg" alt="" width="756" height="526" /></a>Cliquer sur Média puis sur ouvrir un flux réseau.</p>
<p>&nbsp;</p>
<p style="margin-bottom: 0cm" align="CENTER"><a href="http://infos-reseau.com/wp-content/uploads/2012/04/ouverture-flux-réseau.jpg"><img class="size-medium wp-image-320 aligncenter" src="http://infos-reseau.com/wp-content/uploads/2012/04/ouverture-flux-réseau-300x231.jpg" alt="" width="300" height="231" /></a> Cliquer sur Lire.</p>
<p>&nbsp;</p>
<p style="margin-bottom: 0cm" align="CENTER"><a href="http://infos-reseau.com/wp-content/uploads/2012/04/lecture-du-flux.jpg"><img class="alignnone size-medium wp-image-318" src="http://infos-reseau.com/wp-content/uploads/2012/04/lecture-du-flux-300x217.jpg" alt="" width="300" height="217" /></a></p>
<p style="margin-bottom: 0cm" align="CENTER">Le flux est ouvert et lu.</p>
<p>&nbsp;</p>
<p><strong><em>2) Création d&#8217;une mosaïque de vidéos :</em></strong></p>
<p style="margin-bottom: 0cm" align="LEFT"> Nous pouvons créer une mosaïque de vidéo pour voir plusieurs vidéos différentes dans le même flux.</p>
<p>Pour faire une mosaïque il nous faut un fichier de background au format jpg ou png (un fichier de taille 640&#215;480 est un juste milieu).</p>
<p>N.B : la diffusion de mosaïque consomme énormément de ressources.</p>
<p>Il faut pour faire fonctionner la mosaïque il nous faut un fichier de configuration pour Vlc.</p>
<p>Ouvrir un fichier texte via le bloc note et y coller la matrice suivante :</p>
<blockquote><p># Comment the following line if you don&#8217;t want to reset your VLM configuration del all # Options du fond d&#8217;écran: new bg broadcast enabled setup bg input &laquo;&nbsp;fake:///home/soufiane/bg.jpg&nbsp;&raquo; option &laquo;&nbsp;fake-file=/home/soufiane/bg.jpg&nbsp;&raquo; setup bg option sub-filter=mosaic # setup bg output #bridge-in{offset=100}:display setup bg output #transcode{vcodec=h264,vb=150,scale=1,sfilter=mosaic}:bridge-in{offset=100}:duplicate{dst=std{access=http{ttl=30},mux=ts,dst=192.168.16.102:1234,sap,name=&nbsp;&raquo;bg&nbsp;&raquo;}} option sout-all # Options de la Mosaïque : setup bg option mosaic-alpha=255 setup bg option mosaic-height=500 setup bg option mosaic-width=400 setup bg option mosaic-align=5 setup bg option mosaic-xoffset=10 setup bg option mosaic-yoffset=10 setup bg option mosaic-vborder=5 setup bg option mosaic-hborder=10 setup bg option mosaic-position=1 setup bg option mosaic-rows=2 setup bg option mosaic-cols=2 setup bg option mosaic-order=Chan1,Chan2 setup bg option mosaic-delay=0 setup bg option mosaic-keep-picture # Options des entrées : new Chan1 broadcast enabled setup Chan1 input http://demo:@192.168.16.13/img/video.mjpeg option &laquo;&nbsp;access-filter=timeshift&nbsp;&raquo; setup Chan1 output #duplicate{dst=mosaic-bridge{id=Chan1,width=180,height=141},select=video,dst=bridge-out{id=0},select=audio} new Chan2 broadcast enabled setup Chan2 input http://192.168.16.102:8085 option &laquo;&nbsp;access-filter=timeshift&nbsp;&raquo; setup Chan2 output #duplicate{dst=mosaic-bridge{id=Chan2,width=180,height=141},select=video,dst=bridge-out{id=1},select=audio} # Lancement de tout (fond d&#8217;écran + chan) control bg play control Chan1 play control Chan2 play</p></blockquote>
<p>&nbsp;</p>
<p>N.B : En entrées dans le fichier de configuration nous ne pouvons mettre que des flux de streaming et non des vidéos directement.</p>
<p><span style="font-size: small">Explications du fichier en détail :</span></p>
<p><span style="color: #0000ff"><span style="font-size: small"># Comment the following line if you don&#8217;t want to reset your VLM configuration</span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">del all</span></span></p>
<p><span style="font-size: small">(Commenter la ligne del all en y mettant un # au début de la ligne pour qu&#8217;elle ne soit pas exécuter.)</span></p>
<p><span style="color: #0000ff"><span style="font-size: small"># Options du fond d&#8217;écran:</span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">new bg broadcast enabled</span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">setup bg input &laquo;&nbsp;fake:///home/soufiane/bg.jpg&nbsp;&raquo; option &laquo;&nbsp;fake-file=/home/soufiane/bg.jpg&nbsp;&raquo;</span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">setup bg option sub-filter=mosaic</span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small"># setup bg output #bridge-in{offset=100}:display</span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">setup bg output #transcode{vcodec=h264,vb=150,scale=1,sfilter=mosaic}:bridge-in{offset=100}:duplicate{dst=std{access=http{ttl=30},mux=ts,dst=192.168.16.102:1234,sap,name=&nbsp;&raquo;bg&nbsp;&raquo;}} option sout-all</span></span></p>
<p><span style="color: #000000"><span style="font-size: small">Ici nous réglons les paramètres du fond d&#8217;écran :</span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">new bg broadcast enabled : <span style="color: #000000">créer un nouvel objet qui se nomme bg (bg pour background), enabled active l&#8217;objet.</span></span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">setup bg input &laquo;&nbsp;fake:///home/soufiane/bg.jpg&nbsp;&raquo; option &laquo;&nbsp;fake-file=/home/soufiane/bg.jpg&nbsp;&raquo; : <span style="color: #000000">ici nous réglons l&#8217;emplacement du fichier de background.</span></span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">setup bg option sub-filter=mosaic : <span style="color: #000000">active le filtre de mosaïque sur le fond d&#8217;écran.</span></span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small"># setup bg output #bridge-in{offset=100}:display : <span style="color: #000000">créer la sortie pour la mosaïque.</span></span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">setup bg output #transcode{vcodec=h264,vb=150,scale=1,sfilter=mosaic}:bridge-in{offset=100}:duplicate{dst=std{access=http{ttl=30},mux=ts,dst=192.168.16.102:1234,sap,name=&nbsp;&raquo;bg&nbsp;&raquo;}} option sout-all : C&#8217;est surement la ligne la plus importante du fichier de configuration.</span></span></p>
<p><span style="color: #000000"><span style="font-size: small">Ici on règle les paramètres de sortie de la mosaïque, transcode : active le transcodage.</span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">Vcodec : <span style="color: #000000">on choisis le codec de transcodage de la mosaïque.</span></span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">Vb : <span style="color: #000000">on règle ici le bitrate vidéo de la mosaïque</span></span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">scale = 1 : <span style="color: #000000">ici on règle l&#8217;échelle de la mosaïque, 1 signifie que c&#8217;est la taille d&#8217;origine 1:1)</span></span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">sfilter=mosaic : <span style="color: #000000">on active le filtre mosaïque</span></span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">:bridge-in{offset=100} :<span style="color: #000000"> créer la mosaïque</span></span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">:duplicate{dst=std{access=http{ttl=30},mux=ts,dst=192.168.16.102:1234,sap,name=&nbsp;&raquo;bg&nbsp;&raquo;} : :duplicate : <span style="color: #000000">duplique le flux</span></span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">{access=http{ttl=30} : <span style="color: #000000">utiliser le protocole Http pour avoir accès au flux avec un ttl (time to live) de 30, le ttl n&#8217;est utile que pour le multicast.</span></span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">mux=ts :<span style="color: #000000"> on choisis le type de mux, ts est parfait pour le streaming.</span></span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">,dst=192.168.16.102:1234,sap,name=&nbsp;&raquo;bg&nbsp;&raquo;}} :<span style="color: #000000"> on choisis la destination du flux avec le port; on a comme nom de serveur sap « bg »</span></span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small"># Options de la Mosaique :</span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">setup bg option mosaic-alpha=255</span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">setup bg option mosaic-height=500 <span style="color: #000000">(on règle la hauteur de la mosaïque)</span></span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">setup bg option mosaic-width=400 <span style="color: #000000"> (on règle la largeur de la mosaïque)</span></span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">setup bg option mosaic-align=5</span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">setup bg option mosaic-xoffset=10</span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">setup bg option mosaic-yoffset=10</span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">setup bg option mosaic-vborder=5 <span style="color: #000000">(on règle le bord vertical)</span></span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">setup bg option mosaic-hborder=10 <span style="color: #000000">( on règle le bord horizontal)</span></span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">setup bg option mosaic-position=1</span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">setup bg option mosaic-rows=2 <span style="color: #000000">(on règle le nombre de lignes)</span></span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">setup bg option mosaic-cols=2 <span style="color: #000000">(on règle le nombre de colonnes)</span></span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">setup bg option mosaic-order=Chan1,Chan2 <span style="color: #000000"> (on règle l&#8217;ordre des vidéos dans la mosaïque)</span></span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">setup bg option mosaic-delay=0</span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">setup bg option mosaic-keep-picture</span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small"># Options des entrées :</span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">new Chan1 broadcast enabled</span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">setup Chan1 input http://demo:@192.168.16.13/img/video.mjpeg option &laquo;&nbsp;access-filter=timeshift&nbsp;&raquo;</span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">setup Chan1 output #duplicate{dst=mosaic-bridge{id=Chan1,width=180,height=141},select=video,dst=bridge-out{id=0},select=audio}</span></span></p>
<p><span style="color: #000000"><span style="font-size: small">on créer un nouvel objet qui s&#8217;appelle Chan1, on active le broadcast (broadcast enabled)</span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">setup Chan1 input http://demo:@192.168.16.13/img/video.mjpeg option &laquo;&nbsp;access-filter=timeshift&nbsp;&raquo;</span></span></p>
<p><span style="color: #000000"><span style="font-size: small">On règle ici le flux d&#8217;entrée du Chan1</span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small"># Lancement de tout (fond d&#8217;écran + chan)</span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">control bg play <span style="color: #000000">(Lance le background)</span></span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">control Chan1 play <span style="color: #000000">(lance le chan1)</span></span></span></p>
<p><span style="color: #0000ff"><span style="font-size: small">control Chan2 play <span style="color: #000000">(lance le chan2)</span></span></span></p>
<p>&nbsp;</p>
<p>Le fichier de configuration est terminé, on l&#8217;enregistre sous le nom « vlm.conf »</p>
<p>On le place dans le même dossier que le fond d&#8217;écran. Ici ce dossier est « <strong>/home/soufiane/</strong></p>
<p style="margin-bottom: 0cm" align="LEFT">Exécution de la mosaïque : On lance la mosaïque dans le terminal avec la commande :</p>
<blockquote>
<pre>cvlc -vvv --vlm-conf /home/soufiane/vlm.conf</pre>
</blockquote>
<p>&nbsp;</p>
<p style="margin-bottom: 0cm" align="CENTER"><a href="http://infos-reseau.com/wp-content/uploads/2012/04/transcodage-mosaique.jpg"><img class="size-medium wp-image-324 aligncenter" src="http://infos-reseau.com/wp-content/uploads/2012/04/transcodage-mosaique-300x196.jpg" alt="" width="300" height="196" /></a>Le transcodage et la diffusion de la mosaïque est lancé. Nous pouvons y accéder via la commande dans Vlc « http://192.168.16.102:1234 »</p>
<p>&nbsp;</p>
<p style="margin-bottom: 0cm" align="CENTER"><a href="http://infos-reseau.com/wp-content/uploads/2012/04/Mosaique-affiché.jpg"><img class="alignnone  wp-image-319" src="http://infos-reseau.com/wp-content/uploads/2012/04/Mosaique-affiché-300x239.jpg" alt="" width="339" height="244" /></a></p>
<p style="margin-bottom: 0cm" align="CENTER">La Mosaïque est afficher.</p>
<p>&nbsp;</p>
<p style="margin-bottom: 0cm" align="CENTER"> <span style="font-size: large"><span style="font-style: normal"><span style="text-decoration: none"><strong>N.B:</strong></span></span></span>- Si la mosaïque est saccadé, il faut diminuer le bitrate dans le fichier de configuration, ainsi que mettre une scale plus petite que 1 (0.75 est un bon réglage pour le rapport qualité d&#8217;image/vitesse), il ne faut pas oublier que les capacités du serveur rentre en compte (Plus il y&#8217;a de vidéos de bonnes qualité dans la mosaïque plus le serveur devra être puissant).</p>
<p> Dans le fichier de configuration les entrées ne peuvent être que des flux de streaming et non des fichiers vidéo.</p>
<p><span style="font-size: small"><em><strong>Transcodage</strong></em></span><span style="font-size: small"><em><strong> : </strong></em></span>Pourquoi transcoder ? Pour avoir un lien de streaming pour pouvoir le mettre ensuite dans le fichier de configuration de Vlc comme entrée ou bien pour permettre a Vlc de le diffuser si il ne parvient pas a lire le fichier d&#8217;origine.</p>
<p>Le codec idéal pour le transcodage est le h264 (si celui la est mal supporté ou trop lourd, utiliser le x264 qui lui est plus léger).</p>
<p>Sources : J&#8217;ai utiliser ces liens pour parvenir a faire fonctionner vlc :</p>
<p><a href="http://wiki.videolan.org/Mosaic">http://wiki.videolan.org/Mosaic</a> (Wiki officiel sur la Mosaïque Vlc)</p>
<p><a href="http://www.emule-zenzone.com/topic18663.html">http://www.emule-zenzone.com/topic18663.html</a> (Configuration de la mosaïque)</p>
<p><a href="http://www.videolan.org/doc/streaming-howto/en/index.html">http://www.videolan.org/doc/streaming-howto/en/index.html</a> (L&#8217;utilisation de Vlc en ligne de commande)</p>
<p>On peut faire répéter la diffusion d&#8217;un flux en rajoutant le paramètre « &#8211;repeat » dans la commande de diffusion d&#8217;un fichier vidéo.</p>
<p>Le protocole UDP renvoie des erreurs quand je l&#8217;utilise :</p>
<p>([0x829d7d4] access_output_udp access out debug: late packet for UDP input (2955)</p>
<p>[0x829d7d4] access_output_udp access out warning: send error: Connection refused)</p>
<p style="margin-bottom: 0cm" align="CENTER"> J&#8217;utilise donc tout le temps le protocole HTTP qui lui ne renvoie pas d&#8217;erreurs.</p>
<p style="margin-bottom: 0cm" align="CENTER"> Je pense qu&#8217;il doit y&#8217;avoir un problème au niveau de la sortie des packet udp.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://infos-reseau.com/streaming-vlc/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Création ou déménagement d&#8217;entreprise ce qu&#8217;il faut retenir à propos de votre système d&#8217;information</title>
		<link>http://infos-reseau.com/creation-ou-demenagement-dentreprise-ce-quil-faut-retenir-a-propos-de-votre-systeme-dinformation/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=creation-ou-demenagement-dentreprise-ce-quil-faut-retenir-a-propos-de-votre-systeme-dinformation</link>
		<comments>http://infos-reseau.com/creation-ou-demenagement-dentreprise-ce-quil-faut-retenir-a-propos-de-votre-systeme-dinformation/#comments</comments>
		<pubDate>Mon, 16 Apr 2012 17:24:47 +0000</pubDate>
		<dc:creator>Antoine B</dc:creator>
				<category><![CDATA[Réseau]]></category>
		<category><![CDATA[Réseau LAN]]></category>
		<category><![CDATA[aménagement salle informatique]]></category>
		<category><![CDATA[comment préparer son déménagement informatique adsl]]></category>
		<category><![CDATA[conseil informatique]]></category>
		<category><![CDATA[demenagement entreprise]]></category>
		<category><![CDATA[éligibilité]]></category>
		<category><![CDATA[local répartition]]></category>
		<category><![CDATA[sous répartiteur]]></category>
		<category><![CDATA[système d'information]]></category>

		<guid isPermaLink="false">http://infos-reseau.com/?p=305</guid>
		<description><![CDATA[Je prends le soin de rédiger cet article, car je suis souvent confronté à posteriori à des problématiques qui auraient pu être évitées avec un de conseil et de concertation. &#160; Pour un déménagement: Avant toute chose faite un état  des lieux de votre société de ce qu&#8217;elle était, ce qu&#8217;elle est et de ce qu&#8217;elle sera [...]]]></description>
			<content:encoded><![CDATA[<p>Je prends le soin de rédiger cet article, car je suis souvent confronté à posteriori à des problématiques qui auraient pu être évitées avec un de conseil et de concertation.</p>
<p>&nbsp;</p>
<p>Pour un déménagement:</p>
<p>Avant toute chose faite un état  des lieux de votre société de ce qu&#8217;elle était, ce qu&#8217;elle est et de ce qu&#8217;elle sera et regardez comment votre SI a évolué en fonction  de ces éléments.</p>
<p>Ensuite posez vous la question de l&#8217;adéquation de votre SI en fonction de vos besoins. Est il performant, rapide, adapté. Répond il aux besoins de vos utilisateurs, fournisseur ou clients ?</p>
<p>Il y a quelques années un grand nombre de personnes pensait que le Système d&#8217;Information de l&#8217;entreprise était une source de coût. Est ce votre cas ? Si la réponse est oui c&#8217;est qu&#8217;il y a un problème soit de perception, soit de dimensionnement ou d&#8217;adéquation car votre système quelque soit sa taille doit vous amener à penser que c&#8217;est une source de profit.</p>
<p>Votre parc informatique serveur (si il y en a évidemment) est il récent ou vieillissant. Voulez vous internaliser ou externaliser vos ressources matérielles? Si vous n&#8217;avez pas de serveur peut être est ce le moment de le faire, mais sous quelle forme ?</p>
<p>Votre veille technologique est elle suffisante? Si vous êtes un directeur ou un responsable informatique je suppose que oui, mais si vous êtes dirigeant est ce le cas. Le monde des telecoms et de l&#8217;informatique évolue tellement vite.</p>
<p>J&#8217;accompagne de nombreux projets, et avant même de passer à la définition du besoin, aux premières questions mes interlocuteurs se rendent comptent que l&#8217;état des lieux est loin d&#8217;être à jour. Ce n&#8217;est pas une généralité mais c&#8217;est fréquent, soit la partie informatique est très suivie soit c&#8217;est la partie telecom. Il arrive aussi que tout soit dans la tête d&#8217;un ou plusieurs interlocuteurs mais pas sur papier.</p>
<p>Un emménagement ou un déménagement, c&#8217;est un projet. Et cela s&#8217;envisage comme tel, avec des taches,  un planning, des intervenants et des dates butoirs. pas besoin de monter une usine à gaz ça doit rester simple et accessible à tous car dans un déménagement tout le monde est concerné. Dernière chose à ne pas oublier, c&#8217;est la période post déménagement. Ce n&#8217;est pas parce que vous avez posé vos valises qu&#8217;elles sont automatiquement rangées surtout que l&#8217;armoire ne sera peut être pas de la même taille que précédemment.</p>
<p><strong>Implantation géographique:</strong></p>
<p>Pour un directeur informatique, ou un dirigeant d&#8217;entreprise, pour une création ou un déménagement d&#8217;entreprise, la première question qui se pose est le choix de l&#8217;implantation géographique du local.</p>
<p>Le choix est souvent conditionné par des problématiques de proximité des transports en commun ou proximité du domicile. Quels sont vos besoins telecom ?</p>
<p>Connaissez vous par exemple votre débit internet utile à ce jour ? Quel sera celui dont vous avez besoin demain?</p>
<p>On a trop tendance à l&#8217;oublier mais il existe de nombreuses zones blanches (zones non couvertes par l&#8217;adsl) en France, même dans Paris. Imaginez vous avoir signé pour un local, les travaux sont commencés et à 2 mois de l&#8217;installation vous passez commande d&#8217;une ligne internet qui est inéligible&#8230;</p>
<p>Avant de signer commencez par vérifier l’éligibilité du site au débit dont vous aurez besoin demain et après demain.</p>
<p>&nbsp;</p>
<p><strong>Les locaux &#8211; le cablage</strong></p>
<p>&nbsp;</p>
<p>Vous avez besoin d&#8217;un réseau, votre nouveau local dispose déjà d&#8217;un réseau filaire. les questions à se poser:</p>
<p>Le réseau est il au moins catégorie 5 ?</p>
<p>Le réseau a t&#8217;il l&#8217;air d&#8217;être fait dans les normes (un coût d&#8217;oeil d&#8217;expert le détecte immédiatement) ?</p>
<p>Est il dimensionné en nombre de prises pour votre besoin si oui sont elles implanté au bons endroits ?</p>
<p>&nbsp;</p>
<p>Si vous envisagez des modifications de cloisons dites vous que dans la majorité des cas il faut refaire le cablage. Contrairement à l&#8217;électricité on ne peut pas mettre de dominos pour rallonger un cable. Le cablage réseau est très spécifique et les normes impliquent de la rigueur. Force est de constater que rares sont les personnes qui font bien du courant fort et du courant faible en même temps.</p>
<p>Le cablage réseau est une activité très spécifique et je vois peu d&#8217;installation bien réalisées.Heureusement quelques sociétés travaillent très bien et maîtrisent leur sujet. Le cablage est la pierre angulaire du réseau et ne peut être changé au gré des dysfonctionnements. C&#8217;est la première couche du modèle OSI, c&#8217;est donc la garantie d&#8217;un SI qui fonctionne. C&#8217;est un vrai sujet qu&#8217;il faudra que je développe.</p>
<p>&nbsp;</p>
<p>Partez sur une base de 2 prises par poste de travail c&#8217;est plus sûr, pensez aux imprimantes, à la videosurveillance, au contrôle d&#8217;accès, à la GTB (gestion technique du Batiment), éventuellement même à la machine à café. Tout est en réseau aujourd&#8217;hui. En bref ne soyez pas avare de points de connection.</p>
<p>&nbsp;</p>
<p><strong>Local de répartition:</strong></p>
<p>Tout dépend de votre local. La norme pour le cuivre c&#8217;est 100 mètres, donc à 90 mètres on s&#8217;arrète. Votre local informatique et votre local de brassage ne sont pas obligés d&#8217;être au même endroit. C&#8217;est parfois plus facile mais il n&#8217;y a pas d&#8217;obligation.</p>
<p>&nbsp;</p>
<p>Exemple:</p>
<p>l&#8217;ai trois petits niveaux.  mais je dépasse 90 mètres entre mon niveau 1 et mon niveau 3. Je mettrais mon local de brassage au niveau 2 . Tout le brassage y sera centralisé. Mon local informatique sera situé au niveau le plus bas (RDC idéal) ou à un étage ou les largeurs de porte permettent le passe de matériel encombrant. Il y aura une rocade cuivre entre mon local informatique et mon local de brassage éventuellement doublée par une rocade optique.</p>
<p>NB: avant le local telecom était scindé du local informatique. Ce n&#8217;est plus nécessaire bien au contraire. La tête de ligne ou un déport devra arriver dans le local informatique. Si vous avez beaucoup de lignes, prévoyez un bout de mur pour fixer vos fermes. Elle sont mieux sur un mur que dans une baie.</p>
<p>&nbsp;</p>
<p>Si possible, prévoyez un petit local pour le brassage. On y installe des éléments actifs qui peuvent être bruyants et qui du coup peuvent être gênants si ils ont à proximité d&#8217;un poste de travail.</p>
<p>Enfin privilégiez une baie ou une armoire de 800 de large et ne soyez pas avare de passe-fils. Votre brassage n&#8217;en sera que plus clair. Prévoyez 2 U pour un petit onduleur c&#8217;est mieux.</p>
<p>&nbsp;</p>
<p><strong>Local Informatique:</strong></p>
<p>Le local informatique n&#8217;est pas un bureau. C&#8217;est finalement juste un lieu de stockage pour vos serveurs, autocom, et autres matériels.</p>
<p>La climatisation:</p>
<p>&nbsp;</p>
<p>Dans une grande salle, vous prévoirez  un  ou plusieurs blocs avec 2 groupes chacun en secours. Si vous êtes dans un  immeuble important  (IGH par exemple), vous devriez pouvoir utiliser le circuit d&#8217;eau du bâtiment. C&#8217;est un point important, les machines dégagent beaucoup de chaleur même si de plus en plus d&#8217;efforts sont faits; si votre climatisation est mal conçue et qu&#8217;elle lache, cela aura des concéquences désastreuse sur votre SI. Le plus grave, c&#8217;est la panne matérielle due à une surchauffe, le moins grave c&#8217;est l’arrêt automatique de la machine par mesure de sécurité. Dans tous les cas c&#8217;est la cata.</p>
<p>&nbsp;</p>
<p>De préférences choisissez des serveurs rackables que vous mettrez en baie. Attention si la largeur de baie peut être de 600 je vous conseille de choisir une profondeur de 1200. Beaucoup de serveurs ne rentrent pas dans une baie de 1000. Si vous avez une grosse salle avec une ou plusieurs rangées de baies faites des allées chaudes et des allées froides.</p>
<p>Evidemment dans votre baie il faut courant fort et courant faible. Tout doit être secouru. N&#8217;hésitez pas à mettre en place des outils de contrôle de votre consommation d&#8217;énergie.</p>
<p>les circuits électrique doivent être dédiés aux équipements et il faut mettre en place  une terre &laquo;&nbsp;informatique&nbsp;&raquo; pour les baies et les fermes telecom.</p>
<p>Le plancher technique est un plus. Dans tous les cas pensez à vérifier que votre plancher de base est fait pour supporter des charges inportantes. Une baie pleine de serveurs pèse très lourd.</p>
<p>Coté dimensionnement de la salle, cela va vraiment être en fonction de ce que vous avez à y mettre. On doit pouvoir circuler devant et derrière la baie en ouvrant les portes.</p>
<p>Je ne peux que trop vous conseiller de mettre une sécurité incendie sinon  au moins un extincteur CO2.</p>
]]></content:encoded>
			<wfw:commentRss>http://infos-reseau.com/creation-ou-demenagement-dentreprise-ce-quil-faut-retenir-a-propos-de-votre-systeme-dinformation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mise en place d&#8217;un service ADSL</title>
		<link>http://infos-reseau.com/mise-en-place-dun-service-adsl/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mise-en-place-dun-service-adsl</link>
		<comments>http://infos-reseau.com/mise-en-place-dun-service-adsl/#comments</comments>
		<pubDate>Fri, 13 Apr 2012 09:55:55 +0000</pubDate>
		<dc:creator>Antoine B</dc:creator>
				<category><![CDATA[xDSL]]></category>

		<guid isPermaLink="false">http://infos-reseau.com/?p=298</guid>
		<description><![CDATA[Teletechno mets en place des DSLAN et des service ADSL et SDSL pour ses clients, voici quelques points à retenir. La technologie est utilisée pour l&#8217;accès à internet mais elle peut aussi répondre à des problématiques de distance inter-batiments et/ou des problématiques de cablage. Quelques exemple: dans un hotel, le cablâge est sur 1 paire [...]]]></description>
			<content:encoded><![CDATA[<p>Teletechno mets en place des DSLAN et des service ADSL et SDSL pour ses clients, voici quelques points à retenir.</p>
<p>La technologie est utilisée pour l&#8217;accès à internet mais elle peut aussi répondre à des problématiques de distance inter-batiments et/ou des problématiques de cablage.</p>
<p>Quelques exemple: dans un hotel, le cablâge est sur 1 paire ou 2, il n&#8217;est pas question de tout refaire mais on veut pouvoir fournir de la télévision, du téléphone et internet évidemment, et bien vive l&#8217;adsl. D&#8217;autres solutions existent mais le&#8217;ADSL est plutôt bien conçue pour répondre au besoin.</p>
<p>Autre exemple:  Ma société possède 6 batiments distants chacun de 800 m, ils sont tous reliés sur une ferme telecom mais il n&#8217;y a pas de fibre optique et il n&#8217;est pas prévu de faire des tranchées. L&#8217;ADSL est peut être la solution à retenir&#8230;</p>
<p>Si j&#8217;ai un réseau bien conçu avec des VLANs je vais pouvoir gérérceux ci de façon totalement transparente pour mes utilisateurs même à travers l&#8217;ADSL.</p>
<p>Imaginons que je veuille proposer une offre triple play, c&#8217;est à dire un accès au réseau internet, un reseau téléphone IP et un réseau TV</p>
<p>Au plus simple je vais avoir:</p>
<p>1 VLAN admin</p>
<p>2 VLAN Internet</p>
<p>3 VLAN Téléphone</p>
<p>4 VLAN TV</p>
<p>Je peux faire transiter tout cet ensemble à travers mon ADSL et garder la main sur certains équipement derrière mon modem.</p>
<p>Que faut il ?</p>
<p>Un réseau ethernet bien conçu</p>
<p>Un DSLAM</p>
<p>des Modems ADSL</p>
<p>Un réseau téléphone avec les points de connection centralisés</p>
<p>Un peu de savoir faire.</p>
<p>&nbsp;</p>
<p>Qui fait quoi ?</p>
<p>Le DSLAM est connecté au réseau ethernet, les modem ADSL sont connectés dessus.</p>
<p>J&#8217;ai envie de dire que c&#8217;est la partie la plus simple du réseau, il n&#8217;a qu&#8217;une fonction, faire transiter des information entre 2 couches protocolaires différentes.</p>
<p>Le modem ADSL reçoit l&#8217;information et c&#8217;est lui qui va retransformer  l&#8217;information reçue du DSLAM vers nos teminaux qui peuvent être un téléphone, une télévision des PC ou même un équipement de G.T.B (gestion technique des Bâtiments).</p>
<p>Finalement c&#8217;est la partie qui va demander le plus configuration, en fonction de ce que l&#8217;on veut faire évidemment.</p>
<p>&nbsp;</p>
<p>Et les débits ?</p>
<p>Effectivement, c&#8217;est moins qu&#8217;en ethernet moins encore une fois tout dépend de ce que l&#8217;on veut faire transiter, on peut monter jusqu&#8217;à 32 Mbt/s en flux déscendant et jusqu&#8217;à 4 Mbits/s en remontant. Ensuite si on veut plus on passe sur du SDSL,  c&#8217;est exactement le même principe mais de débit est symétrique (le débit montant et descendant est identique).</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://infos-reseau.com/mise-en-place-dun-service-adsl/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fichier de provisioning pour poste Grandstream GXP</title>
		<link>http://infos-reseau.com/fichier-de-provisionning-pour-poste-grandstream-gxp/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=fichier-de-provisionning-pour-poste-grandstream-gxp</link>
		<comments>http://infos-reseau.com/fichier-de-provisionning-pour-poste-grandstream-gxp/#comments</comments>
		<pubDate>Mon, 09 Apr 2012 15:54:56 +0000</pubDate>
		<dc:creator>Antoine B</dc:creator>
				<category><![CDATA[Téléphonie]]></category>
		<category><![CDATA[configuration automatique telephone]]></category>
		<category><![CDATA[poste telephonique]]></category>
		<category><![CDATA[provisioning]]></category>
		<category><![CDATA[telephonie sur ip]]></category>

		<guid isPermaLink="false">http://infos-reseau.com/?p=282</guid>
		<description><![CDATA[Préparation des fichiers de configuration de postes téléphoniques GXP2000 : 1.     Préparation des fichier de configuration pour chaque poste : Pour chaque poste d’une entreprise il faut un fichier de configuration, pour se faire il faut récupérer un ancien fichier de configuration et le modifier. Pour se faire il vous faut un certain nombre de données, il [...]]]></description>
			<content:encoded><![CDATA[<p align="center"><strong><span style="text-decoration: underline;">Préparation des fichiers de configuration de postes téléphoniques GXP2000 :</span></strong></p>
<ol>
<li><strong>1.     </strong><strong><span style="text-decoration: underline;">Préparation des fichier de configuration pour chaque poste :</span></strong></li>
</ol>
<p>Pour chaque poste d’une entreprise il faut un fichier de configuration, pour se faire il faut récupérer un ancien fichier de configuration et le modifier. Pour se faire il vous faut un certain nombre de données, il vous faut connaitre l’adresse IP du serveur (De l&#8217;IPBX), le numéro de poste et le nom à qui appartient le poste (Pour chaque poste à configurer) ainsi que l’adresse MAC de tous les postes.</p>
<p>Une fois ces informations en main, ouvrer le fichier avec Notepad++. Aller aux lignes 88 et 91 et modifier l’adresse IP déjà présente par la bonne.</p>
<p><a href="http://infos-reseau.com/wp-content/uploads/2012/04/procédure11.png"><img class="size-medium wp-image-284 alignleft" title="procédure1" src="http://infos-reseau.com/wp-content/uploads/2012/04/procédure11-300x79.png" alt="" width="300" height="79" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Ensuite aller à la ligne 136 et modifiez-y l’adresse IP par la bonne (adresse du serveur de provisioning) :</p>
<p><a href="http://infos-reseau.com/wp-content/uploads/2012/04/procédure2.png"><img class="alignleft size-medium wp-image-291" title="procédure2" src="http://infos-reseau.com/wp-content/uploads/2012/04/procédure2-300x65.png" alt="" width="300" height="65" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Idem à la ligne 204 :</p>
<p><a href="http://infos-reseau.com/wp-content/uploads/2012/04/procédure3.png"><img class="alignleft size-full wp-image-292" title="procédure3" src="http://infos-reseau.com/wp-content/uploads/2012/04/procédure3.png" alt="" width="221" height="75" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Puis aller a la ligne 322  changer l’adresse IP ainsi qu’a la ligne 325 puis :</p>
<p><a href="http://infos-reseau.com/wp-content/uploads/2012/04/procédure4.png"><img class="alignleft size-medium wp-image-285" title="procédure4" src="http://infos-reseau.com/wp-content/uploads/2012/04/procédure4-256x300.png" alt="" width="256" height="300" /></a></p>
<p>&#8211;&gt; Adresse du serveur SIP</p>
<p>&nbsp;</p>
<p>&#8211;&gt; Adresse du serveur pour les appels sortants (si différent du serveur appel entrants)</p>
<p>&#8211;&gt; Utilisateur SIP ( le même que celui spécifié sur votre serveur)</p>
<p>&nbsp;</p>
<p>&#8211;&gt; ID de l&#8217;utilisateur SIP ( le même que celui spécifié sur votre serveur)</p>
<p>&#8211;&gt;Mot de passe de l&#8217;utilisateur SIP ( le même que celui spécifié sur votre serveur) attention pour des raisons de sécurité évidente je ne peux que vous conseiller de mettre un mot de passe plus complexe?</p>
<p>&nbsp;</p>
<p>&#8211;&gt; Le nom qui va s&#8217;afficher sur le poste</p>
<p>&nbsp;</p>
<p>Vérifiez ensuite que la valeur à la ligne 390 est de 2222 et que la valeur de la ligne 395 est de 10 :</p>
<p><a href="http://infos-reseau.com/wp-content/uploads/2012/04/procédure5.png"><img class="alignleft size-full wp-image-286" title="procédure5" src="http://infos-reseau.com/wp-content/uploads/2012/04/procédure5.png" alt="" width="153" height="23" /></a><img class="alignleft size-full wp-image-287" title="procédure6" src="http://infos-reseau.com/wp-content/uploads/2012/04/procédure6.png" alt="" width="159" height="23" /></p>
<p>A présent le reste ne concerne que les touches de raccourci d’appel, cela commence à la ligne 1621, il faut faire comme suit :</p>
<p><a href="http://infos-reseau.com/wp-content/uploads/2012/04/procédure7.png"><img class="alignleft size-medium wp-image-288" title="procédure7" src="http://infos-reseau.com/wp-content/uploads/2012/04/procédure7-300x133.png" alt="" width="300" height="133" /></a></p>
<p>&nbsp;</p>
<p>Mettre 0 pour touche d&#8217;appel rapide et 1 pour la supervision du poste (cela implique aussi la touche d&#8217;appel rapide)</p>
<p>Dans notre cas mettre 0 car nous n&#8217;avons qu&#8217;un compte</p>
<p>Le nom puis le numéro du poste</p>
<p><span style="font-size: small;"><span style="line-height: normal;"><br />
</span></span></p>
<p>Il faut répéter la même manipulation pour chaque « Multi Purpose key », il ne faut pas oublier de mettre les valeurs « 1 » et « 0 » à chaque fois.</p>
<p>Aller à la ligne 1898 et vérifier que les valeurs soit :</p>
<p>P64 = 780 ; P75 = 1 ; P322 = 1 ; P334 et P335 = 4 ; P1329 = 10 ; P122 = 1 ; P102 = 2</p>
<p>&nbsp;</p>
<p>Si vous avez une extension de touche alors il faut faire la même chose que précédemment sauf qu’il faut le faire à partir de la ligne 1953.</p>
<p>&nbsp;</p>
<p>Une fois ce fichier fini enregistrer le sous le nom « GXP2000_Poste_**_ « Adresse MAC du poste » ». (Remplacer les ** par le numéro du poste, il vous faut ensuite répéter l’opération pour chaque poste.)</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<ol>
<li><strong>2.     </strong><strong><span style="text-decoration: underline;">Transformation des fichier  .txt en fichier de config :</span></strong></li>
</ol>
<p>Pour faire cela il faut utiliser un logiciel nommé « GrandstreamConfigurationGenerator », lancer le logiciel et faite « Browse » pour « Configuration Template » et choisissez le fichier que vous venez d’enregistrer. Puis copier l’adresse MAC qui est dans le nom de votre fichier et coller la dans la case « Starting adress » puis faite « GO », le logiciel va vous créer votre fichier de configuration, il faudra faire la même chose pour chaque poste, donc pour chaque fichiers .txt que vous aurez crée.<br />
<a href="http://infos-reseau.com/wp-content/uploads/2012/04/procédure8.png"><img class="alignleft size-medium wp-image-289" title="procédure8" src="http://infos-reseau.com/wp-content/uploads/2012/04/procédure8-223x300.png" alt="" width="223" height="300" /></a><a href="http://infos-reseau.com/wp-content/uploads/2012/04/procédure9.png"><img class="alignleft size-medium wp-image-290" title="procédure9" src="http://infos-reseau.com/wp-content/uploads/2012/04/procédure9-225x300.png" alt="" width="225" height="300" /></a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://infos-reseau.com/fichier-de-provisionning-pour-poste-grandstream-gxp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EHCP/Postfix : Création de boite e-mail</title>
		<link>http://infos-reseau.com/ehcppostfix-creation-de-boite-e-mail/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=ehcppostfix-creation-de-boite-e-mail</link>
		<comments>http://infos-reseau.com/ehcppostfix-creation-de-boite-e-mail/#comments</comments>
		<pubDate>Tue, 21 Feb 2012 15:00:43 +0000</pubDate>
		<dc:creator>PetitCanardRuse</dc:creator>
				<category><![CDATA[Système GNU/Linux]]></category>
		<category><![CDATA[Système OS]]></category>
		<category><![CDATA[création boite e-mail]]></category>
		<category><![CDATA[ehcp]]></category>
		<category><![CDATA[No such file or directory]]></category>
		<category><![CDATA[postfix]]></category>

		<guid isPermaLink="false">http://infos-reseau.com/?p=257</guid>
		<description><![CDATA[I.  Introduction : Suite à un soucis lors de la création et utilisation de boite e-mail, j&#8217;ai décidé de rédiger cette article pour vous transmettre la solution. Cette solution est très simple. Cet article a été rédiger avec EHCP en version 0.30.4 et Postfix en version 2.8.5. II.  Exposition du problème : Lors de la création d&#8217;une [...]]]></description>
			<content:encoded><![CDATA[<p><strong>I.  Introduction :</strong></p>
<p>Suite à un soucis lors de la création et utilisation de boite e-mail, j&#8217;ai décidé de rédiger cette article pour vous transmettre la solution. Cette solution est très simple. Cet article a été rédiger avec EHCP en version 0.30.4 et Postfix en version 2.8.5.</p>
<p><strong>II.  Exposition du problème :</strong></p>
<p>Lors de la création d&#8217;une boite e-mail via l&#8217;interface d&#8217;EHCP, nous n&#8217;avions rencontrés aucun problème à ce moment là. Le soucis, c&#8217;est lorsque l&#8217;utilisateur souhaitait se connecter au webmail avec sa nouvelle adresse. Dans notre cas, nous utilisions Roundcube et il nous répondait « Impossible de se connecter au serveur IMAP ». Ce message est d&#8217;autant plus étrange alors que le serveur IMAP a déjà été testé.<br />
En allant dans les logs de Postfix, le fichier « /var/log/mail.log » nous indiquer les lignes suivantes :</p>
<blockquote><p>Feb 21 10:52:50 web imapd: Connection, ip=[::ffff:127.0.0.1]<br />
Feb 21 10:52:50 web imapd: chdir mondomaine.fr/contact/: No such file or directory<br />
Feb 21 10:52:50 web imapd: contact@mondomaine.fr: No such file or directory</p></blockquote>
<p>Ces lignes nous disent que le dossier correspondant à la boite e-mail « contact@mondomaine.fr » n&#8217;existe pas. La raison de l&#8217;absence du dossier est simple comme bonjour !</p>
<p><strong>III.  La solution :</strong></p>
<p>Il vous suffit d&#8217;envoyer un e-mail à l&#8217;adresse que vous venez de créée et le tour est joué !</p>
<p>&nbsp;</p>
<p><strong>Remarque :</strong> EHCP possède une fonction lui permettant d&#8217;automatiser l&#8217;envoi du premier e-mail vers une nouvelle boite e-mail afin que Postfix crée les fichiers.</p>
]]></content:encoded>
			<wfw:commentRss>http://infos-reseau.com/ehcppostfix-creation-de-boite-e-mail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nagios/Centreon : Superviser la bande-passante sur un serveur Linux</title>
		<link>http://infos-reseau.com/nagioscentreon-superviser-la-bande-passante-sur-un-serveur-linux/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=nagioscentreon-superviser-la-bande-passante-sur-un-serveur-linux</link>
		<comments>http://infos-reseau.com/nagioscentreon-superviser-la-bande-passante-sur-un-serveur-linux/#comments</comments>
		<pubDate>Fri, 17 Feb 2012 15:01:56 +0000</pubDate>
		<dc:creator>PetitCanardRuse</dc:creator>
				<category><![CDATA[Réseau]]></category>
		<category><![CDATA[bande passante]]></category>
		<category><![CDATA[centreon]]></category>
		<category><![CDATA[nagios]]></category>
		<category><![CDATA[nrpe]]></category>
		<category><![CDATA[stat_net.pl]]></category>
		<category><![CDATA[supervision]]></category>

		<guid isPermaLink="false">http://infos-reseau.com/?p=236</guid>
		<description><![CDATA[I.  Introduction : Il est souvent très utile de connaître la bande passante utilisée sur un serveur. Pour cela, nous aurons besoin du plugin stat_net.pl écrit par &#171;&#160;nagiosexchange&#160;&#187; et disponible sur le site &#171;&#160;exchange.nagios.org&#171;&#160;. Par précautions, nous le mettons également à disposition un peu plus loin dans cet article mais vous pouvez également le retrouver ici. [...]]]></description>
			<content:encoded><![CDATA[<p><strong>I.  Introduction :</strong></p>
<p>Il est souvent très utile de connaître la bande passante utilisée sur un serveur. Pour cela, nous aurons besoin du plugin stat_net.pl écrit par &laquo;&nbsp;nagiosexchange&nbsp;&raquo; et disponible sur le site &laquo;&nbsp;<a title="exchange.nagios.org" href="http://exchange.nagios.org" target="_blank">exchange.nagios.org</a>&laquo;&nbsp;. Par précautions, nous le mettons également à disposition un peu plus loin dans cet article mais vous pouvez également le retrouver <a title="Stat_net_download" href="http://exchange.nagios.org/directory/Plugins/System-Metrics/Networking/stat_net-2Epl/details" target="_blank">ici</a>.</p>
<p>Et nous utiliserons également NRPE pour exécuter la commande. Étant donné que notre serveur NRPE (le serveur distant) doit être configurer pour n&#8217;écouter que votre serveur nagios, cela limite les risques d&#8217;intrusion et ne pourra que récupérer des informations !</p>
<p><strong>II.  Préparatifs :</strong></p>
<p>Avant tout, assurez-vous que votre serveur NRPE est configuré pour n&#8217;écouter que votre serveur Nagios :</p>
<p>Fichier <strong>/etc/nagios/nrpe.cfg</strong></p>
<blockquote>
<pre>allowed_hosts='adresseDuServeurNagios'</pre>
</blockquote>
<p>Assurez-vous également que votre serveur NRPE accepte le passage d&#8217;argument :</p>
<p>Fichier <strong>/etc/nagios/nrpe.cfg</strong></p>
<blockquote>
<pre>dont_blame_nrpe=1</pre>
</blockquote>
<p>Si vous avez dû apporter ces modifications, redémarrer le serveur nrpe et le service snmp :</p>
<blockquote>
<pre>/etc/init.d/nagios-nrpe-serveur restart</pre>
</blockquote>
<p><strong>III.  Installation du plugin :</strong></p>
<p>Positionnez-vous dans le répertoire de vos plugins sur le serveur distant, et téléchargez le « check_iftraffic43.pl » :</p>
<blockquote>
<pre>Télécharger <a title="stat_net.zip" href="http://infos-reseau.com/wp-content/uploads/2012/02/stat_net.zip" target="_blank">stat_net.pl</a></pre>
</blockquote>
<p>N&#8217;oubliez pas de donner les droits à l&#8217;utilisateur nagios :</p>
<blockquote>
<pre>chmod 775 stat_net.pl
 chown -R nagios:nagios stat_net.pl</pre>
</blockquote>
<p>Ensuite, il faut ajouter la commande dans la configuration de NRPE. Éditez le fichier « /etc/nagios/nrpe.cfg » et dans la section « COMMAND DEFINITIONS » :</p>
<blockquote>
<pre>command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20
 command[check_hda1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/hda1
 command[check_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z
 command[check_total_procs]=/usr/lib/nagios/plugins/check_procs -w 150 -c 200
 command[check_disk]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p</pre>
</blockquote>
<p>Ajoutez-y la commande suivante :</p>
<blockquote>
<pre>command[check_statnet]=/usr/lib/nagios/plugins/stat_net.pl -w $ARG1$ $ARG2$</pre>
</blockquote>
<p>Adaptez bien sûr évidemment la commande, notamment le chemin où vous avez mis votre plugin (/usr/lib/nagios/plugins/). Ici, nous avons besoin de peu d&#8217;argument, le plugin ne gére que les warnings en utilisant l&#8217;argument &laquo;&nbsp;-w&nbsp;&raquo;. $ARG1$ et $ARG2$ sont des variables que nous utiliserons, la première va permettre d&#8217;indiquer en pourcentage le seuil de warning et la seconde, l&#8217;interface sur laquelle nous devons l&#8217;appliquer.</p>
<p>Pensez à redémarrer le service NRPE :</p>
<blockquote>
<pre>/etc/init.d/nagios-nrpe-server restart</pre>
</blockquote>
<p><strong>IV.  Configuration dans Centreon :</strong></p>
<p>Commençons par créer la commande dans Centreon, rendez vous dans « Configuration → Commandes → Ajouter ».</p>
<p>Adaptez également ici la commande en fonction de votre configuration. Choisissez comme modèle de graphique &laquo;&nbsp;Traffic&nbsp;&raquo; que nous modifierons légérement plus tard.</p>
<p style="text-align: center;"><a href="http://infos-reseau.com/wp-content/uploads/2012/02/commandes-2.jpg" target="_blank"><img class="size-medium wp-image-242 aligncenter" title="commandes" src="http://infos-reseau.com/wp-content/uploads/2012/02/commandes-2.jpg" alt="" width="300" height="133" /></a></p>
<p>Il ne vous reste plus qu&#8217;à créer le service comme suit dans « Configuration → Services → Ajouter ». Dans le champ « Commande de vérification », choisissez la commande que nous venons de créer et les arguments à indiquer sont le seuil de warning et l&#8217;interface à surveiller dans le champ « Arguments » comme suit : «!80!eth0 ».<br />
Remplissez les autres champs en fonction toujours de votre configuration.</p>
<p style="text-align: center;"><a href="http://infos-reseau.com/wp-content/uploads/2012/02/services-2.jpg" target="_blank"><img class="aligncenter size-medium wp-image-247" title="services" src="http://infos-reseau.com/wp-content/uploads/2012/02/services-2.jpg" alt="" width="300" height="207" /></a></p>
<p>N&#8217;oubliez pas de l&#8217;associer à un hôte dans l&#8217;onglet « Relations » !</p>
<p><strong>V.  Les graphiques dans Centreon :</strong></p>
<p>Pour configurer les graphiques de notre plugin, rendez-vous dans &laquo;&nbsp;Vues -&gt; Graphiques -&gt; Modèles&nbsp;&raquo; et cliquez sur &laquo;&nbsp;Traffic&nbsp;&raquo;. La seule chose que nous modifierons ici est le champ &laquo;&nbsp;Value&nbsp;&raquo;. Le plugin renvoie des valeurs en &laquo;&nbsp;Byte&nbsp;&raquo; donc pour plus de clarté, je vous conseille de mettre dans ce champs &laquo;&nbsp;Bytes&nbsp;&raquo;.</p>
<p>Ensuite, allez sur la page &laquo;&nbsp;Vues -&gt; Graphiques -&gt; Courbes&nbsp;&raquo;. Avant d&#8217;aller plus loin, il faut savoir qu&#8217;<strong>une interface surveillée</strong> est égale à <strong>deux courbes (réception et transmission)</strong> qui porteront le nom de l&#8217;interface suivi de &laquo;&nbsp;in&nbsp;&raquo; ou &laquo;&nbsp;out&nbsp;&raquo;. Commençons à créer une courbe en remplissant les champs comme suit :</p>
<p>- Nom du modèle : stat_net-eth0_in</p>
<p>- Nom de la source de données : eth0_in</p>
<p>- Remplissez le reste des champs en fonction de notre configuration.</p>
<p>Exemple :</p>
<p><a href="http://infos-reseau.com/wp-content/uploads/2012/02/courbes.jpg" target="_blank"><img class="aligncenter size-medium wp-image-276" title="courbes" src="http://infos-reseau.com/wp-content/uploads/2012/02/courbes-300x196.jpg" alt="" width="300" height="196" /></a></p>
<p>Répétez l&#8217;opération pour la courbe de transmission (out) avec les valeurs suivantes :</p>
<p>- Nom du modèle : stat_net-eth0_out</p>
<p>- Nom de la source de données : eth0_out</p>
<p>Et si vous surveillez une interface qui s&#8217;appelle eth1, vous devez répéter ces deux opérations en remplaçant eth0 par eth1 !</p>
]]></content:encoded>
			<wfw:commentRss>http://infos-reseau.com/nagioscentreon-superviser-la-bande-passante-sur-un-serveur-linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Mise en place d&#8217;un serveur NAGIOS sur Linux &#8211; Installation de NRPE et configuration de Nagios</title>
		<link>http://infos-reseau.com/mise-en-place-dun-serveur-nagios-sur-linux-installation-de-nrpe-et-configuration-de-nagios/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mise-en-place-dun-serveur-nagios-sur-linux-installation-de-nrpe-et-configuration-de-nagios</link>
		<comments>http://infos-reseau.com/mise-en-place-dun-serveur-nagios-sur-linux-installation-de-nrpe-et-configuration-de-nagios/#comments</comments>
		<pubDate>Thu, 09 Feb 2012 14:22:59 +0000</pubDate>
		<dc:creator>will-I-am</dc:creator>
				<category><![CDATA[Réseau]]></category>
		<category><![CDATA[nagios]]></category>
		<category><![CDATA[nrpe]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[serveur]]></category>
		<category><![CDATA[service]]></category>
		<category><![CDATA[start]]></category>
		<category><![CDATA[surveiller]]></category>

		<guid isPermaLink="false">http://infos-reseau.com/?p=218</guid>
		<description><![CDATA[Qu&#8217;est-ce que NRPE ?  NRPE, ces initiales signifient « Nagios Remote Plugin Executor » s&#8217;additionnant à Nagios pour récupérer des informations sur un serveur GNU/Linux distant. Il permet donc de surveiller le serveur sous tout les angles possibles (charge du processeur, utilisation de la mémoire, l&#8217;espace disque, etc&#8230;) qui ,en temps normal, ne sont pas accessible de [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li>
<p align="LEFT"><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small"><span style="text-decoration: underline"><strong>Qu&#8217;est-ce que NRPE ?</strong></span></span></span></p>
</li>
</ul>
<p align="LEFT"> <span style="font-size: x-small;font-family: Verdana, sans-serif">NRPE, ces initiales signifient « Nagios Remote Plugin Executor » s&#8217;additionnant à Nagios pour récupérer des informations sur un serveur GNU/Linux distant. Il permet donc de surveiller le serveur sous tout les angles possibles (charge du processeur, utilisation de la mémoire, l&#8217;espace disque, etc&#8230;) qui ,en temps normal, ne sont pas accessible de l&#8217;extérieur.</span></p>
<p>&nbsp;</p>
<p><span style="font-size: x-small"><span style="color: #000000"><span style="font-family: Verdana, sans-serif">Afin d&#8217;interroger un client NRPE il faut utiliser le greffon &laquo;&nbsp;check_nrpe&nbsp;&raquo; sur le serveur </span></span>Nagios<span style="color: #000000"><span style="font-family: Verdana, sans-serif">.</span></span></span></p>
<ul>
<li>
<p align="LEFT"><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small">Schéma de fonctionnement de NRPE avec Nagios : </span></span></p>
</li>
</ul>
<p align="LEFT"><a href="http://infos-reseau.com/wp-content/uploads/2012/02/plugin-nrpe.jpg"><img class="alignnone size-full wp-image-219" src="http://infos-reseau.com/wp-content/uploads/2012/02/plugin-nrpe.jpg" alt="" width="541" height="149" /></a></p>
<p><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small">Pour débroussailler ce schéma, passons aux explications. Avec NRPE, nous avons un système de Client/Serveur et contrairement à ce qu&#8217;on peut penser, c&#8217;est Nagios le client NRPE car c&#8217;est lui qui va aller à la pêche aux infos ! Donc, sur le serveur distant à superviser, on y installe le serveur NRPE et sur le serveur Nagios, on y mettra le client NRPE ! </span></span></p>
<p><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small"> </span></span></p>
<ul>
<li>
<p align="LEFT"><span style="font-family: Verdana, sans-serif"><span style="font-size: small"><span style="text-decoration: underline"><strong>Mise en place du service : </strong></span></span></span></p>
</li>
</ul>
<p><em><span style="color: #c0c0c0"><span style="font-family: 'Yanone Kaffeesatz', Impact, Ubuntu, arial, sans-serif"><span style="font-size: x-large">Sur le serveur Nagios :</span></span></span></em></p>
<p><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small">Commençons par installer le plugin NRPE sur notre serveur Nagios. Pour cela, faites un petit coup d&#8217;apt-get install !</span></span></p>
<p><strong>sudo apt-get install nagios-nrpe-plugin</strong></p>
<p><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small">Une fois installé, allons vérifier que le plugin est bien déclaré dans le fichier de configuration des commandes « /etc/nagios/commands.cfg » : </span></span></p>
<blockquote><p><span style="color: #888888"><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small">######<br />
# NRPE<br />
######</span></span></span></p>
<p><span style="color: #888888"><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small"># &#8216;check_nrpe&#8217; command definition<br />
define command{<br />
command_name check_nrpe<br />
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$<br />
}</span></span></span></p></blockquote>
<h1></h1>
<p><em><span style="color: #c0c0c0"><span style="font-family: 'Yanone Kaffeesatz', Impact, Ubuntu, arial, sans-serif"><span style="font-size: x-large">Sur votre serveur Linux à </span></span><span style="font-family: 'Yanone Kaffeesatz', Impact, Ubuntu, arial, sans-serif"><span style="font-size: x-large">surveiller</span></span><span style="font-family: inherit"><span style="font-size: x-large"> :</span></span></span></em></p>
<p><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small">Cette étape est un peu plus longue, donc ne perdons pas de temps et passons à l&#8217;installation du daemon NRPE et des différents plugins Nagios qui seront utilisés localement par le daemon NRPE :</span></span></p>
<p><strong>sudo apt-get install nagios-nrpe-server</strong></p>
<p><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small"><strong>sudo apt-get install nagios-plugins</strong></span></span></p>
<p><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small">Dans le fichier <strong>/etc/nagios/nrpe.cfg </strong>, allez modifier la ligne suivante:</span></span></p>
<blockquote><p><span style="font-family: Verdana, sans-serif;color: #888888"><span style="font-size: x-small">&#8230;<br />
allowed_hosts = Mettre ici l&#8217;adresse IP de votre serveur Nagios<br />
&#8230;</span></span></p></blockquote>
<p><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small">Maintenant, il faut rendre le démarrage du daemon automatique au démarrage du serveur : </span></span></p>
<p><strong><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small">chkconfig &#8211;add nagios-nrpe-server</span></span></strong></p>
<p><span style="font-size: x-small;font-family: Verdana, sans-serif">Si vous avez Iptable d&#8217;installer sur notre serveur distant, ajoutez y cette ligne (à adapter) pour autoriser les requêtes NRPE à passer :</span></p>
<p><span style="color: #000000"><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small"><strong>iptables -I INPUT 10 -p tcp &#8211;dport 5666 -j ACCEPT</strong></span></span></span></p>
<p><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small">Il ne vous reste plus qu&#8217;à démarrer le service NRPE :</span></span></p>
<blockquote><p><span style="color: #000000"><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small"> <strong>/etc/init.d/nagios-nrpe-server start</strong></span></span></span></p></blockquote>
<p><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small">Avant de pouvoir tester la communication entre les deux serveurs, assurez-vous que le fichier « <strong>check_nrpe</strong> » est bien présent dans le répertoire « <strong>/usr/local/nagios/libexec</strong> ». S&#8217;il est absent , copiez le à partir du répertoire « <strong>/usr/lib/nagios/plugins</strong> » :</span></span></p>
<p><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small"><strong> cp /usr/local/nagios/libexec/check_nrpe /usr/lib/nagios/plugins/</strong></span></span></p>
<p><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small">De plus, vérifiez bien que l&#8217;utilisateur &#8216;Nagios&#8217; a bien les droits sur les répertoires suivants :</span></span></p>
<ul>
<li><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small"><strong>/usr/local/nagios/libexec/</strong></span></span></li>
<li><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small"><strong>/usr/lib/nagios/plugins/</strong></span></span></li>
<li><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small"><strong>/etc/nagios/</strong></span></span></li>
</ul>
<p><span style="font-size: x-small;font-family: Verdana, sans-serif">Vous devez avoir des droits similaires à celui-ci :</span></p>
<p><a href="http://infos-reseau.com/wp-content/uploads/2012/02/resultat-droits.jpg"><img class="alignnone size-full wp-image-220" src="http://infos-reseau.com/wp-content/uploads/2012/02/resultat-droits.jpg" alt="" width="599" height="100" /></a></p>
<p><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small">Si le résultat est différent, alors utilisez les commandes <strong>chmod 775 </strong><em><strong>/*suivi du répertoire*/</strong></em>, et <strong>chown -R nagios:nagios </strong><em><strong>/*suivi du répertoire*/.</strong></em></span></span></p>
<p align="JUSTIFY"> <strong><span><span style="text-decoration: underline">Attention :</span></span> Cette procédure est a effectuer sur le serveur Nagios, mais également sur le client !</strong></p>
<p> <span style="text-decoration: underline"><strong>Remarque :</strong></span><span style="font-size: x-small;font-family: Verdana, sans-serif"> Lors de notre installation finale, nous avons rencontré un problème assez particulier. Normalement, après l&#8217;installation des paquets sur le serveur distant, le dossier « </span><strong>/usr/local/nagios/libexec</strong><span style="font-size: x-small;font-family: Verdana, sans-serif"> » doit se créer automatiquement avec divers fichiers (notamment le « </span><strong>check_nrpe</strong><span style="font-size: x-small;font-family: Verdana, sans-serif"> »). Pour une raison obscure, ce dossier ne sait pas créé ainsi que les fichiers devant être contenu. C&#8217;est pour cette raison que nous vous mettons à disposition le fichier « check_nrpe » à aller coller dans le dossier « </span><strong>/usr/lib/nagios/plugins</strong><span style="font-size: x-small;font-family: Verdana, sans-serif"> ».</span></p>
<p>&nbsp;</p>
<p><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small"> Pour être sûr que ça fonctionne bien, éditez le fichier « <strong>/etc/nagios/nrpe.cfg</strong> » et vérifiez que les commandes sont bien déclarés dans le dossier « <strong>/usr/lib/nagios/plugins</strong> » comme ceci :</span></span></p>
<p>&nbsp;</p>
<blockquote><p><span style="font-size: small;color: #888888">command[check_users]=/usr/lib/nagios/plugins/check_users -w 5 -c 10</span></p>
<p>&nbsp;</p>
<p><span style="color: #888888"><span style="font-size: small">command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20 </span></span></p>
<p>&nbsp;</p>
<p><span style="color: #888888"><span style="font-size: small">command[check_hda1]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /dev/hda1 </span></span></p>
<p>&nbsp;</p>
<p><span style="color: #888888"><span style="font-size: small">command[check_procs]=/usr/lib/nagios/plugins/check_procs -w 5 -c 10 -s Z </span></span></p>
<p>&nbsp;</p>
<p><span style="color: #888888"><span style="font-size: small">command[check_total_procs]=/usr/lib/nagios/plugins/check_procs -w 150 -c 200 </span></span></p>
<p>&nbsp;</p>
<p><span style="color: #888888"><span style="font-size: small">command[check_disk]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p </span></span></p>
<p>&nbsp;</p>
<p>&nbsp;</p></blockquote>
<h1><em><span style="color: #c0c0c0"><span style="font-family: 'Yanone Kaffeesatz', Impact, Ubuntu, arial, sans-serif"><span style="font-size: x-large">On teste la communication :</span> </span></span></em></h1>
<p><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small">A toute installation, elle a droit à un test pour valider le fonctionnement. Donc c&#8217;est parti ! Pour tester la communication entre le serveur Nagios et le serveur distant, rendez-vous dans le dossier des plugins « /usr/lib/nagios/plugins » :</span></span></p>
<p><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small"> <strong>./check_nrpe -H Adresse_IP_du_serveur_Linux_distant</strong><br />
</span></span></p>
<p><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small">Le résultat doit être :</span></span></p>
<blockquote><p><span style="font-family: Verdana, sans-serif;color: #888888"><span style="font-size: x-small">NRPE v2.7</span></span></p></blockquote>
<p>&nbsp;</p>
<p><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small">Si tout est OK, cette commande devrait renvoyer la version du daemon NRPE. </span></span><span style="font-size: x-small;font-family: Verdana, sans-serif">Vous pouvez tester directement les plugins avec la commande suivante (exemple donnée pour un check de la charge):</span></p>
<p><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small"> <strong>./check_nrpe -H Adresse_IP_du_serveur_Linux -c check_load</strong></span></span></p>
<p><span style="font-size: x-small;font-family: Verdana, sans-serif">Nous obtenons ce résultat :</span></p>
<blockquote><p><span style="font-size: x-small;font-family: Verdana, sans-serif;color: #888888"> OK &#8211; load average: 0.06, 0.03, 0.01|load1=0.060;15.000;30.000;0; load5=0.030;10.000;25.000;0; load15=0.010;5.000;20.000;0;</span></p></blockquote>
<p><span style="font-size: x-small;font-family: Verdana, sans-serif">La dernière étape consiste à modifier les fichiers de configuration de Nagios pour intégrer le monitoring du/des serveur Linux. Il faut savoir que vous avez deux manières de procéder, soit vous n&#8217;avez pas Centreon d&#8217;installer et vous allez ajouter les hôtes et les services à la main dans les fichiers de configuration (procédure qui suit) ou vous avez installer Centreon et à ce moment là, passez à la partie « Ajouter un client à partir de Centreon ».</span></p>
<p>&nbsp;</p>
<p><em><span style="font-family: Verdana, sans-serif;color: #c0c0c0"><span style="font-family: 'Yanone Kaffeesatz', Impact, Ubuntu, arial, sans-serif"><span style="font-size: x-large">Pour ajouter un client à partir de Nagios :</span></span></span></em></p>
<p>&nbsp;</p>
<p><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small"> Il faut dans un premier temps éditer votre fichier de configuration des hosts (<strong>hosts.cfg</strong> par défaut) et y ajouter votre machine Linux :</span></span></p>
<blockquote><p><span style="font-family: Verdana, sans-serif;color: #888888"><span style="font-size: x-small">define host {<br />
use generic-host<br />
host_name linus<br />
alias Ma machine Linux<br />
address 192.168.0.7<br />
}</span></span></p></blockquote>
<p><span style="font-size: x-small;font-family: Verdana, sans-serif">Puis ajouter les services offerts par NRPE (dans le fichier <strong>services.cfg</strong></span><span style="font-size: x-small;font-family: Verdana, sans-serif">), quelques exemples:</span></p>
<p>&nbsp;</p>
<blockquote><p><span style="font-family: Verdana, sans-serif;color: #888888"><span style="font-size: x-small"># Charge CPU<br />
define service{<br />
use generic-service<br />
host_name remotehost<br />
service_description CPU Load<br />
check_command check_nrpe!check_load<br />
}</span></span></p>
<p><span style="font-family: Verdana, sans-serif;color: #888888"><span style="font-size: x-small"># Memoire<br />
define service{<br />
use generic-service<br />
host_name remotehost<br />
service_description Memory<br />
check_command check_nrpe!check_mem<br />
}</span></span></p></blockquote>
<p><span style="font-size: x-small;font-family: Verdana, sans-serif">Pour ajouter des nouveaux plugins executable par NRPE, il faut éditer le fichier <strong>/etc/nagios/nrpe.cfg</strong></span><span style="font-size: x-small;font-family: Verdana, sans-serif"> et ajouter une ligne par service (par exemple pour les commandes &#8216;check_load&#8217; et check_disk&#8217;) :</span></p>
<blockquote><p><span style="font-size: x-small;font-family: Verdana, sans-serif;color: #888888">&#8230;</span></p>
<p><span style="font-family: Verdana, sans-serif;color: #888888"><span style="font-size: x-small">command[check_disk]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% </span></span></p>
<p><span style="font-family: Verdana, sans-serif;color: #888888"><span style="font-size: x-small">command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20<br />
&#8230;</span></span></p></blockquote>
<p>&nbsp;</p>
<p><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small">Ne pas oublier de relancer le daemon quand on change le fichier de configuration (nrpe.cfg): </span></span></p>
<p><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small"><strong>service nagios-nrpe-server restart</strong></span></span></p>
<p><span style="font-family: Verdana, sans-serif;font-size: x-small">Source : blog.nicolargo.com</span></p>
<p>&nbsp;</p>
<p><span style="color: #c0c0c0"><em><span style="font-family: Tahoma, sans-serif"><span style="font-size: x-large"><span style="font-family: 'Yanone Kaffeesatz', Impact, Ubuntu, arial, sans-serif"><span style="font-size: x-large">Pour ajouter un client sur Centreon</span></span><span style="font-family: inherit"><span style="font-size: x-large">:</span></span></span></span></em></span></p>
<p>&nbsp;</p>
<p><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small">L&#8217;ajout et la configuration d&#8217;un client se fait en trois étapes : </span></span></p>
<ol>
<li><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small">Création d&#8217;un hôte</span></span></li>
<li><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small">Création d&#8217;une commande (éventuellement)</span></span></li>
<li><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small">Ajout des service liés</span></span></li>
</ol>
<p><span style="font-size: x-small;font-family: Verdana, sans-serif">La création d&#8217;un hôte se fait assez facilement. Il faut se rendre dans :</span></p>
<p><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small"><strong>Configuration</strong></span></span><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small"> → </span></span><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small"><strong>Hôtes</strong></span></span><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small"> → </span></span><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small"><strong>Ajouter</strong></span></span></p>
<p><span style="font-size: x-small;font-family: Verdana, sans-serif">puis remplir le formulaire :</span></p>
<ul>
<li><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small"><span style="color: #555555">Nom de l&#8217;hôte</span> </span></span></li>
<li><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small"><span style="color: #555555">Alias</span> </span></span></li>
<li><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small"><span style="color: #555555">Adresse IP / DNS</span> </span></span></li>
<li><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small"><span style="color: #555555">Communauté SNMP</span><span style="color: #555555"><span style="font-size: xx-small"><em>(la communauté correspond à celle que vous avez donné auparavant)</em></span></span><span style="color: #555555"> &amp;&amp; Version</span> <span style="font-size: xx-small"><em>(pour la version, il faut utiliser la 3 car c&#8217;est la version 3 de snmp qui était présent dans les paquets.)</em></span></span></span></li>
<li><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small"><span style="color: #555555">Modèles multiples de l&#8217;hôte </span><span style="color: #555555"><span style="font-size: xx-small"><em>(vous pouvez si vous le voulez choisir un modèle d&#8217;hôte si vous en avez déjà configuré un)</em></span></span><span style="color: #555555">.</span></span></span></li>
<li><span style="color: #555555"><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small">Pour les autres informations, c&#8217;est selon votre choix.</span></span></span></li>
</ul>
<p><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small">Puis faites « sauvegarder ».</span></span></p>
<p><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small">Ensuite, pour créer une commande, il faut se rendre dans : </span></span></p>
<p><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small"><strong>Configuration -&gt; Commandes -&gt; Ajouter</strong></span></span></p>
<p><span style="font-family: Verdana, sans-serif;font-size: x-small">Au préalable, il faudra, si ce n&#8217;est pas fait, créer la commande check_nrpe. En voici l&#8217;exemple de création ci-dessous :</span></p>
<p><a href="http://infos-reseau.com/wp-content/uploads/2012/02/nrpe-ajout.png"><img class="alignnone  wp-image-221" src="http://infos-reseau.com/wp-content/uploads/2012/02/nrpe-ajout.png" alt="" width="633" height="251" /></a></p>
<p><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small">Enfin, pour créer un service, il faut se rendre dans :</span></span></p>
<p><strong><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small">Configuration -&gt; Services -&gt; Ajouter</span></span></strong></p>
<p><span style="font-size: x-small;font-family: Verdana, sans-serif">Puis remplir le formulaire :</span></p>
<ul>
<li><span style="color: #555555"><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small">Description</span></span></span></li>
<li><span style="color: #555555"><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small">Modèle de service </span></span></span><span style="color: #555555"><span style="font-family: Verdana, sans-serif"><span style="font-size: xx-small"><em>(Utiliser un modèle permet d&#8217;éviter de remplir les champs requis)</em></span></span></span></li>
<li><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small"><span style="color: #555555">Commande de vérification</span> : il faut utiliser la commande &#8216;<strong>check_nrpe</strong>&#8216; car c&#8217;est grâce à elle que l&#8217;on récupèrera les informations.</span></span></li>
<li><span style="color: #555555"><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small">Arguments</span></span></span><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small"> : pour l&#8217;argument à mettre, si par exemple on souhaite connaître l&#8217;espace disque, nous allons mettre en argument &#8216;</span></span><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small"><strong>!check_disk</strong></span></span><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small">&#8216; </span></span><span style="font-family: Verdana, sans-serif"><span style="font-size: xx-small"><em>(attention : le &#8216;</em></span></span><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small"><strong>!</strong></span></span><span style="font-family: Verdana, sans-serif"><span style="font-size: xx-small"><em>&#8216; est très important et il ne faut pas l&#8217;oublier) </em></span></span><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small">, qui est la commande qui va récupérer les informations nécessaires.</span></span></li>
</ul>
<p><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small">Sous l&#8217;onglet &#8216;</span></span><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small"><strong>Relations</strong></span></span><span style="font-family: Verdana, sans-serif"><span style="font-size: x-small">&#8216;, il faudra sélectionner l&#8217;hôte auquel on souhaite associer le service.</span></span></p>
<p><span style="font-size: x-small;font-family: Verdana, sans-serif">A la fin, ne pas oublier d&#8217;exporter les données sur Nagios en allant sur :</span></p>
<p><span><span style="font-family: Verdana, sans-serif;font-size: xx-small">Configuration → Nagios , cocher toutes les cases et cliquer sur exporter, puis vérifier s&#8217;il n&#8217;y a pas d&#8217;erreur. </span></span></p>
<p><span><span style="font-size: xx-small"><span style="font-family: Verdana, sans-serif">En cas de problème avec un hôte, notamment s&#8217;il s&#8217;affiche en état &laquo;&nbsp;Down&nbsp;&raquo; alors, qu&#8217;il est &laquo;&nbsp;Up&nbsp;&raquo;, il faut se rendre sous  </span><strong>Configuration</strong><span style="font-family: Verdana, sans-serif"> -&gt; </span><strong><span style="font-family: Verdana, sans-serif">Hôtes </span></strong><span style="font-family: Verdana, sans-serif">puis selectionner l&#8217;hôte en erreur. Il faut ensuite lui ajouter une commande de vérification : sélectionnez la commande </span><strong><span style="font-family: Verdana, sans-serif">&laquo;&nbsp;Check_centreon_ping&nbsp;&raquo; </span></strong><span style="font-family: Verdana, sans-serif">et lui donner les arguments de l&#8217;exemple en cliquant sur la flèche bleue : </span></span></span></p>
<p><a href="http://infos-reseau.com/wp-content/uploads/2012/02/screen-centreon-final.jpg"><img class="alignnone size-thumbnail wp-image-249" src="http://infos-reseau.com/wp-content/uploads/2012/02/screen-centreon-final-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://infos-reseau.com/mise-en-place-dun-serveur-nagios-sur-linux-installation-de-nrpe-et-configuration-de-nagios/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mise en place d&#8217;un serveur NAGIOS sur Linux &#8211; Installation de Nagios, Centreon et NDO</title>
		<link>http://infos-reseau.com/mise-en-place-dun-serveur-nagios-sur-linux-installation-de-nagios-centreon-et-ndo/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=mise-en-place-dun-serveur-nagios-sur-linux-installation-de-nagios-centreon-et-ndo</link>
		<comments>http://infos-reseau.com/mise-en-place-dun-serveur-nagios-sur-linux-installation-de-nagios-centreon-et-ndo/#comments</comments>
		<pubDate>Wed, 08 Feb 2012 15:38:15 +0000</pubDate>
		<dc:creator>will-I-am</dc:creator>
				<category><![CDATA[Réseau]]></category>
		<category><![CDATA[centreon]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[nagios]]></category>
		<category><![CDATA[NDO]]></category>
		<category><![CDATA[réseaux]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[service]]></category>
		<category><![CDATA[supervision]]></category>

		<guid isPermaLink="false">http://infos-reseau.com/?p=145</guid>
		<description><![CDATA[A quoi sert NAGIOS ? C&#8217;est un serveur permettant la surveillance des réseaux avec le protocole SNMP (Simple Network Management Protocole). C&#8217;est ce protocole qui permet aux administrateurs réseau de gérer les équipements du parc informatique, de superviser et de diagnostiquer des problèmes réseaux et de matériels à distance. Nagios est un programme modulaire qui [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li>
<p align="LEFT"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><span style="text-decoration: underline;"><strong>A quoi sert NAGIOS ?</strong></span></span></span></p>
</li>
</ul>
<p align="LEFT"><span style="font-size: x-small; font-family: Verdana, sans-serif;">C&#8217;est un serveur permettant la surveillance des réseaux avec le protocole SNMP (Simple Network Management Protocole). C&#8217;est ce protocole qui permet aux administrateurs réseau de gérer les équipements du parc informatique, de superviser et de diagnostiquer des problèmes réseaux et de matériels à distance.</span></p>
<p align="LEFT"><span style="color: #000000;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Nagios</strong> est un programme modulaire qui se décompose en trois parties :</span></span></span></p>
<ol>
<li><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Le moteur de l&#8217;application qui vient ordonnancer les tâches de supervision.</span></span></li>
<li><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">L&#8217;interface web, qui permet d&#8217;avoir une vue d&#8217;ensemble du système d&#8217;information et des possibles anomalies.</span></span></li>
<li><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Les plugins, une centaine de mini programmes que l&#8217;on peut compléter en fonction des besoins de chacun pour superviser chaque service ou ressource disponible sur l&#8217;ensemble des ordinateurs ou éléments réseaux du SI.</span></span><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"> </span></span></li>
</ol>
<ul>
<li>
<p align="LEFT"><span style="font-family: Verdana, sans-serif;"><span style="text-decoration: underline;"><strong>Comment mettre en place NAGIOS ?</strong></span></span></p>
</li>
</ul>
<ul>
<ul>
<li>
<p align="LEFT"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Le logiciel fonctionne sur Linux (Ubuntu ou Fedora);<br />
</span></span></p>
</li>
<li>
<p align="LEFT"><span style="font-size: x-small;"><span style="font-family: Verdana, sans-serif;">Besoin du logiciel </span><span style="font-family: Verdana, sans-serif;"><strong>Centreon </strong></span><span style="font-family: Verdana, sans-serif;">(interface simplifiée pour utiliser Nagios), et du logiciel </span><span style="font-family: Verdana, sans-serif;"><strong>NDO </strong></span><span style="font-family: Verdana, sans-serif;">(qui fait le lien entre Centreon et Nagios, et permet également a Nagios d&#8217;écrire dans une base de données l&#8217;état des machines à superviser);<br />
</span></span></p>
</li>
<li>
<p align="LEFT"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Il faut également installer une base de données (ex : MySQL) , et un logiciel de serveur HTTP (ex : Apache2);<br />
</span></span></p>
</li>
<li>
<p align="LEFT"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Pour le fonctionnement de Nagios, selon les OS, il faudra installer des plugins sur les machines que l&#8217;on souhaite surveiller. Pour une machine Windows, on utilisera le plugin NSClient, et pour une machine Linux, on utilisera le plugin NRPE;<br />
</span></span></p>
</li>
<li>
<p align="LEFT"><span style="font-size: x-small;"><span style="font-family: Verdana, sans-serif;">Il faudra également installer quelques paquets supplémentaires sur le serveur Nagios, tels que </span><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;">RRDTool , Perl ,SNMP et des librairies GD.</span></span></span></p>
</li>
</ul>
</ul>
<ul>
<li>
<p align="LEFT"><span style="font-family: Verdana, sans-serif;"><span style="font-size: small;"><span style="text-decoration: underline;"><strong>Installation de Nagios :</strong></span></span></span></p>
</li>
</ul>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: small;"><span style="text-decoration: underline;">1] Installation des prés requis:</span></span></span></span></strong></p>
<ul>
<li>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Package divers:<br />
</span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>apt-get install sudo bsd-mailx lsb-release</strong></span></span></span></strong></p>
</li>
</ul>
<ul>
<li>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Compiler:</span></span></span><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><br />
</span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>apt-get install build-essential</strong></span></span></span></strong></p>
</li>
<li>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Server Web (apache) et PHP5:<br />
</span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>apt-get install apache2 apache2-mpm-prefork</strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><br />
</span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>apt-get install php5 php5-mysql<br />
apt-get install php-pear php5-ldap php5-snmp php5-gd</strong></span></span></span></strong></p>
</li>
<li>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">MySQL :<br />
</span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>apt-get install mysql-server-5.1 libmysqlclient15-dev</strong></span></span></span></strong></p>
</li>
</ul>
<p><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Pendant l’installation de </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">mysql</span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">, vous avez un prompt qui vous demande de saisir le </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">mot de passe </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">du </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">server mysql</span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">. Nous mettrons </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">nagios</span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">. Ensuite un deuxième prompt apparait, revalider votre mot de passe.</span></span></span></p>
<ul>
<li><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">RRDTool:<br />
</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>apt-get install rrdtool librrds-perl</strong></span></span></span></strong></li>
<li><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Perl:<br />
</span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>apt-get install libconfig-inifiles-perl libcrypt-des-perl libdigest-hmac-perl libdigest-sha1-perl libgd-gd2-perl</strong></span></span></span></strong></li>
<li><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">SNMP:<br />
</span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>apt-get install snmp snmpd libnet-snmp-perl libsnmp-perl</strong></span></span></span></strong></li>
<li><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Les librairies GD:<br />
</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>apt-get install libgd2-xpm libgd2-xpm-dev libpng12-dev</strong></span></span></span></strong></li>
<li><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Et enfin 2 paquets qui nous servirons pour la suite :<br />
</span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>apt-get install dnsutils fping</strong></span></span></span></strong></li>
</ul>
<p><strong><span style="color: #333333;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: small;"><span style="text-decoration: underline;">2] Création du compte et ajout des droits:</span></span></span></span></strong></p>
<p><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Il nous faut à présent </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">créer un utilisateur nagios, </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">car il est préférable de ne pas utiliser le compte </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">root </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">pour l’installation, mais plutôt le compte nagios qui exécutera les </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">plugins </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">et autres </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">scripts, </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">ce qui nous permettra de voir s’il y a des problèmes de droits ou autre.</span></span></span></p>
<p><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><span style="text-decoration: underline;">Création du compte user et des groupes de Nagios:</span></span></span></span></p>
<p><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">/usr/sbin/useradd -m nagios<br />
passwd nagios</span></span></span></strong></p>
<p><strong><span style="color: #000000;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Enter new UNIX password: nagios<br />
Retype new UNIX password: nagios</span></span></span></strong></p>
<p><span style="color: #000000;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">psswd: Password updated successfully</span></span></span><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><br />
</span></span></p>
<p><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">/usr/sbin/groupadd nagcmd<br />
/usr/sbin/usermod -G nagios,nagcmd nagios<br />
/usr/sbin/usermod -G nagios,nagcmd www-data</span></span></span></strong></p>
<p><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Pour résumer, nous créons un compte utilisateur, un groupe </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">nagcmd </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">pour exécuter les commandes du poller Nagios et un groupe </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">nagios </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">pour les droits. Le compte utilisateur nagios est ajouté à ces trois groupes (nagmcd, nagios, nagcmd).</span></span></span></p>
<p><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">A présent, je vous conseiles de vous </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">déconnecter </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">et de vous connecter avec le </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">compte nagios</span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"> que nous avont crées, puis tester la commande </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">sudo ifconfig </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">pour vérifier que vous pouvez utiliser </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">sudo </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">correctement.</span></span></span></p>
<p><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: small;"><span style="text-decoration: underline;">3] Installation de Nagios:</span></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: small;"><span style="text-decoration: underline;"><br />
</span></span></span></span></strong><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><br />
</span></span><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Placer vous dans un répertoire de travail, le répertoire /home/nagios par exemple:</span></span></span></p>
<p><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>cd /home/nagios</strong></span></span></span></strong><strong></strong></p>
<p><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Puis créer un répertoire </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">download </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">et placer vous dans ce répertoire:</span></span></span></p>
<p><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>mkdir download<br />
cd download</strong></span></span></span></strong><strong></strong></p>
<p><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Une fois dans ce répertoire, taper:</span></span></span></p>
<p><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>wget </strong></span></span></span></strong><strong></strong><strong><a href="http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.2.0.tar.gz"><span style="color: #679419;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>http://prdownloads.sourceforge.net/sourceforge/nagios/nagios-3.2.0.tar.gz</strong></span></span></span></a></strong></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Puis décompresser l’archive de nagios:</span></span></span></p>
<p><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>tar xvzf nagios-3.2.0.tar.gz</strong></span></span></span></strong><strong></strong></p>
<p><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Une fois décompressé, nous allons installer le programme:</span></span></span></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>cd nagios-3.2.0/</strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><br />
</span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>./configure &#8211;prefix=/usr/local/nagios &#8211;with-command-group=nagcmd &#8211;enable-nanosleep &#8211;enable-event-broker ,</strong></span></span></span></strong></p>
<p align="LEFT"><strong></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Puis, e</span></span></span><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">ffectuer les commandes suivantes:</span></span></span></p>
<p><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>make all<br />
sudo make install<br />
sudo make install-init<br />
sudo make install-commandmode<br />
sudo make install-config</strong></span></span></span></strong></p>
<p><span style="font-size: x-small; font-family: Verdana, sans-serif; color: #333333;">Voilà, Nagios est installé, nous allons maintenant installer le plugin Nagios…</span></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Replacer vous dans le répertoire </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">download </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">avec un &laquo;&nbsp;</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>cd ..</strong></span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">&nbsp;&raquo;<br />
Puis téléchargez &laquo;&nbsp;nagios-plugins-1.4.14.tar.gz&nbsp;&raquo; :</span></span></span></p>
<p><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>wget </strong></span></span></span></strong><strong></strong><strong><a href="http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.14.tar.gz"><span style="color: #679419;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>http://prdownloads.sourceforge.net/sourceforge/nagiosplug/nagios-plugins-1.4.14.tar.gz</strong></span></span></span></a></strong></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Décompressez le puis placer vous dans le répertoire:<br />
</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>tar xvzf nagios-plugins-1.4.14.tar.gz<br />
cd nagios-plugins-1.4.14/</strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><br />
</span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><br />
Ensuite configurez le:</span></span></span></p>
<p><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>./configure &#8211;with-nagios-user=nagios &#8211;with-nagios-group=nagios &#8211;with-openssl=/usr/bin/openssl<br />
make<br />
sudo make install</strong></span></span></span></strong></p>
<p><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Voilà </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Nagios </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">et son </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">plugin </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">sont installés. Configurons maintenant l’accès Web de Nagios:</span></span></span></p>
<p align="LEFT"><span><span><span><span style="color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;">Créer le </span></span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>htaccess</strong></span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">: (nous prendrons nagios dans le tuto)</span></span></span></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>htpasswd -c /usr/local/nagios/etc/htpasswd.users nagios</strong></span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong><br />
</strong></span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>New password:nagios<br />
Re-type new password:nagios</strong></span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong><br />
Adding password for user nagios </strong></span></span></span></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Ensuite il faut editer</span></span></span> <strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>httpd.conf </strong></span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">comme suis:</span></span></span></p>
<p><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>sudo vim /etc/apache2/httpd.conf</strong></span></span></span></strong></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">&lt;Directory "/usr/local/nagios/sbin"&gt;</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">Options ExecCGI</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">AllowOverride None</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">Order allow,deny</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">Allow from all</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">AuthName "Nagios Access"</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">AuthType Basic</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">AuthUserFile /usr/local/nagios/etc/htpasswd.users</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">Require valid-user</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">&lt;/Directory&gt;</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">Alias /nagios /usr/local/nagios/share</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">&lt;Directory "/usr/local/nagios/share"&gt;</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">Options None</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">AllowOverride None</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">Order allow,deny</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">Allow from all</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">AuthName "Nagios Access"</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">AuthType Basic</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">AuthUserFile /usr/local/nagios/etc/htpasswd.users</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">Require valid-user</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">&lt;/Directory&gt;</span></span></code></span></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Puis redémarrez le serveur apache:</span></span></span></p>
<p><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">sudo service apache2 restart </span></span></span></strong></p>
<p><strong></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Maintenant si vous tapez </span></span></span> <span style="color: #679419;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>http://&#8217;IP_DU_SERVEUR&#8217;/nagios </strong></span></span></span><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">dans votre navigateur un prompt doit apparaitre. Saisissez donc le login et le mot de passe utilisé lors de la création du htaccess (id: nagios, mot de passe : nagios)</span></span></span></p>
<p><img class="aligncenter" src="http://infos-reseau.com/wp-content/uploads/2012/02/prompt.jpg" alt="prompt" /></p>
<p>&nbsp;</p>
<p><strong>4] Installation de NDOutils partie 1 : </strong></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Replacez vous dans le répertoire download puis télécharger NDOutils :</span></span></span></p>
<p><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>cd ..</strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><br />
</span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>wget </strong></span></span></span></strong><strong><a href="http://prdownloads.sourceforge.net/sourceforge/nagios/ndoutils-1.4b9.tar.gz"><span style="color: #679419;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>http://prdownloads.sourceforge.net/sourceforge/nagios/ndoutils-1.4b9.tar.gz</strong></span></span></span></a></strong></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Puis décompresser l’archive pour procéder à une </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">installation manuelle</span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">:<br />
</span></span></span><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong><br />
</strong></span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>tar xvzf ndoutils-1.4b9.tar.gz </strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><br />
</span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>cd ndoutils-1.4b9 </strong></span></span></span></strong></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Configurez NDO:</span></span></span></p>
<p><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>./configure &#8211;prefix=/usr/local/nagios/ &#8211;enable-mysql &#8211;disable-pgsql \<br />
&#8211;with-ndo2db-user=nagios &#8211;with-ndo2db-group=nagios<br />
make </strong></span></span></span></strong></p>
<p><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Et enfin, procedez à l&#8217;installation : </span></span></span></p>
<p><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>sudo </strong></span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>cp ./src/ndomod-3x.o /usr/local/nagios/bin/ndomod.o<br />
sudo cp ./src/ndo2db-3x /usr/local/nagios/bin/ndo2db<br />
sudo cp ./config/ndo2db.cfg-sample /usr/local/nagios/etc/ndo2db.cfg<br />
sudo cp ./config/ndomod.cfg-sample /usr/local/nagios/etc/ndomod.cfg<br />
sudo chmod 775 /usr/local/nagios/bin/ndo*<br />
sudo chown nagios:nagios /usr/local/nagios/bin/ndo* </strong></span></span></span></strong></p>
<p><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">C</span></span></span><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">réez ensuite un </span></span></span><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">deamon</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"> ndo2db</span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">:</span></span></span></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>sudo vim /etc/init.d/ndo2db</strong></span></span></span></strong></p>
<p align="LEFT"><span style="font-size: x-small; font-family: Verdana, sans-serif; color: #333333;">Puis coller le script ci-dessous.</span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">#!/bin/sh</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">#</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">#</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;"># chkconfig: 345 99 01</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;"># description: Nagios to mysql</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">#</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;"># Author : Gaëtan Lucas</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;"># Realase : 07/02/08</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;"># Version : 0.1 b</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;"># File : ndo2db</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;"># Description: Starts and stops the Ndo2db daemon</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">#              used to provide network services status in a database.</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">#</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"> </span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">status_ndo ()</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">{</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">if ps -p $NdoPID &gt; /dev/null 2&gt;&amp;1; then</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">return 0</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">else</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">return 1</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">fi</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">return 1</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">}</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">printstatus_ndo()</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">{</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">if status_ndo $1 $2; then</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">echo "ndo (pid $NdoPID) is running..."</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">else</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">echo "ndo is not running"</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">fi</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">}</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">killproc_ndo ()</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">{</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">echo "kill $2 $NdoPID"</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">kill $2 $NdoPID</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">}</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">pid_ndo ()</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">{</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">if test ! -f $NdoRunFile; then</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">echo "No lock file found in $NdoRunFile"</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">echo -n "         checking runing process..."</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">NdoPID=`ps h -C ndo2db -o pid`</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">if [ -z "$NdoPID" ]; then</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">echo "     No ndo2db process found"</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">exit 1</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">else</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">echo "     found process pid: $NdoPID"</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">echo -n "         reinit $NdoRunFile ..."</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">touch $NdoRunFile</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">hown $NdoUser:$NdoGroup $NdoRunFile</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">echo "$NdoPID" &gt; $NdoRunFile</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">echo "     done"</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">fi</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">fi</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">NdoPID=`head $NdoRunFile`</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">}</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;"># Source function library</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;"># Solaris doesn't have an rc.d directory, so do a test first</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">if [ -f /etc/rc.d/init.d/functions ]; then</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">. /etc/rc.d/init.d/functions</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">elif [ -f /etc/init.d/functions ]; then</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">. /etc/init.d/functions</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">fi</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">prefix=/usr/local/nagios</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">exec_prefix=${prefix}</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">NdoBin=${exec_prefix}/bin/ndo2db</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">NdoCfgFile=${prefix}/etc/ndo2db.cfg</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">NdoRunFile=${prefix}/var/ndo2db.run</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">NdoLockDir=/var/lock/subsys</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">NdoLockFile=ndo2db.lock</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">NdoUser=nagios</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">NdoGroup=nagios</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"> </span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;"># Check that ndo exists.</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">if [ ! -f $NdoBin ]; then</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">echo "Executable file $NdoBin not found.  Exiting."</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">exit 1</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">fi</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;"># Check that ndo.cfg exists.</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">if [ ! -f $NdoCfgFile ]; then</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">echo "Configuration file $NdoCfgFile not found.  Exiting."</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">exit 1</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">fi</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"> </span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;"># See how we were called.</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">case "$1" in</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">start)</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">echo -n "Starting ndo:"</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">touch $NdoRunFile</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">chown $NdoUser:$NdoGroup $NdoRunFile</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">$NdoBin -c $NdoCfgFile</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">if [ -d $NdoLockDir ]; then</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">touch $NdoLockDir/$NdoLockFile;</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">fi</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">ps h -C ndo2db -o pid &gt; $NdoRunFile</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">if [ $? -eq 0 ]; then</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">echo " done."</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">exit 0</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">else</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">echo " failed."</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">$0 stop</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">exit 1</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">fi</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">;;</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">stop)</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">echo -n "Stopping ndo: "</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">pid_ndo</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">killproc_ndo</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;"># now we have to wait for ndo to exit and remove its</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;"># own NdoRunFile, otherwise a following "start" could</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;"># happen, and then the exiting ndo will remove the</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;"># new NdoRunFile, allowing multiple ndo daemons</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;"># to (sooner or later) run</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">#echo -n 'Waiting for ndo to exit .'</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">for i in 1 2 3 4 5 6 7 8 9 10 ; do</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">if status_ndo &gt; /dev/null; then</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">echo -n '.'</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">sleep 1</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">else</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">break</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">fi</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">done</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">if status_ndo &gt; /dev/null; then</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">echo</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">echo 'Warning - ndo did not exit in a timely manner'</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">else</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">echo 'done.'</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">fi</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">rm -f $NdoRunFile $NdoLockDir/$NdoLockFile</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">;;</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">status)</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">pid_ndo</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">printstatus_ndo ndo</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">;;</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">restart)</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">$0 stop</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">$0 start</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">;;</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">*)</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">echo "Usage: ndo {start|stop|restart|status}"</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">exit 1</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">;;</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"><code><span style="font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace;"><span style="font-size: x-small;">esac</span></span></code></span></p>
<p style="padding-left: 30px;" align="LEFT"><span style="color: #333399;"> </span><span style="font-size: x-small; font-family: Consolas, Monaco, 'Bitstream Vera Sans Mono', 'Courier New', Courier, monospace; color: #333399;"># End of this script</span></p>
<p align="LEFT"> <span style="font-size: x-small; font-family: Verdana, sans-serif; color: #333333;">Ajoutez ensuite le daemon au démarrage:</span></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>sudo update-rc.d ndo2db defaults<br />
sudo chmod +x /etc/init.d/ndo2db</strong></span></span></span></strong></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Voilà le daemon </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">ndo2db </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">est maintenant prêt.</span></span></span></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: small;"><span style="text-decoration: underline;">5] Installations de Centreon:</span></span></span></span></strong></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Placez vous dans le répertoire de téléchargement créé plus haut, puis téléchargez Centreon:</span></span></span></p>
<p><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>cd /home/nagios/download/</strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><br />
</span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>wget </strong></span></span></span></strong><strong></strong><strong><a href="http://download.centreon.com/centreon/centreon-2.1.3.tar.gz"><span style="color: #679419;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>http://download.centreon.com/centreon/centreon-2.1.3.tar.gz</strong></span></span></span></a></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong><br />
</strong></span></span></span><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Décompressez Centreon:</span></span></span></p>
<p><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>tar xvzf centreon-2.1.3.tar.gz<br />
cd centreon-2.1.3/</strong></span></span></span></strong></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Définissez un chemin pour les binaires de nagios, ndomod, etc…</span></span></span></p>
<p><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>export PATH=&nbsp;&raquo;$PATH:/usr/local/nagios/bin/&nbsp;&raquo;</strong></span></span></span></strong><strong></strong></p>
<p><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Puis lancez l’installation de Centreon:</span></span></span></p>
<p><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>sudo ./install.sh -i</strong></span></span></span></strong><strong></strong></p>
<p><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Descendez tout en bas du </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">contrat de licence </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">puis accepté en cliquant &laquo;&nbsp;</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Y</span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">&laquo;&nbsp;.</span></span></span></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Répondez &laquo;&nbsp;</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Y</span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">&nbsp;&raquo; à </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">toutes les questions </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">posées lors du processus d’installation, et </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">validez </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">les </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">chemins par défaut </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">lors de l’installation.</span></span></span></p>
<p align="LEFT"> <span style="font-size: x-small; font-family: Verdana, sans-serif; color: #333333;">Arrivé au moment où il vous est proposé:</span></p>
<blockquote><p><span style="color: #999999;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">Where is your NDO ndomod binary ?<br />
default to [/usr/sbin/ndomod.o]<br />
&gt;</span></span></span></p></blockquote>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Entrez le chemin du fichier que nous avons utilisés lors de l’installation NDO:</span></span></span></p>
<p><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>&gt; </strong></span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>/usr/local/nagios/bin/ndomod.o</strong></span></span></span></strong></p>
<p><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Puis continuez en acceptant </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">les chemins par défaut </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">et en mettant &laquo;&nbsp;</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Y</span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">&nbsp;&raquo; à chaque question.</span></span></span></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Lorsque l’installation va vous demander de mettre à jour les </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">librairies PEAR</span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">, taper &laquo;&nbsp;</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Y</span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">&nbsp;&raquo; et validez.<br />
Ceci va lancer les </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">mises à jour des modules pear.</span></span></span></strong></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Continuez en validant les </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">chemins par défaut </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">et en mettant &laquo;&nbsp;</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Y</span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">&nbsp;&raquo; à chaque question.</span></span></span></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Voilà </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Centreon </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">est installé. Il ne reste plus qu’à redémarrer le serveur apache.</span></span></span></p>
<p align="LEFT"> <strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>sudo service apache2 restart</strong></span></span></span></strong></p>
<p><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Nous allons maintenant finaliser l’installation de </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Centreon </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">par le </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">WEB.</span></span></span></strong></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Ouvrez votre </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">navigateur </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">et lancer l’url suivante : </span></span></span><span style="color: #679419;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>http://&#8217;IP_DU_SERVEUR&#8217;/centreon </strong></span></span></span></p>
<p align="LEFT"><a href="http://infos-reseau.com/wp-content/uploads/2012/02/image-1.jpg"><img class="alignnone size-thumbnail wp-image-182" src="http://infos-reseau.com/wp-content/uploads/2012/02/image-1-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Cliquer sur &laquo;&nbsp;</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">start</span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">&nbsp;&raquo; :</span></span></span></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Cochez </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">accepter les termes </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">puis </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">next</span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">.</span></span></span></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Laissez la configuration de l’environnement par défaut puis </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">next.</span></span></span></strong></p>
<p align="LEFT"><a href="http://infos-reseau.com/wp-content/uploads/2012/02/image-2.jpg"><img class="alignnone size-thumbnail wp-image-183" src="http://infos-reseau.com/wp-content/uploads/2012/02/image-2-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Vérifier que tout est </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">ok </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">puis </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">next </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">:</span></span></span></p>
<p align="LEFT"><a href="http://infos-reseau.com/wp-content/uploads/2012/02/image-3.jpg"><img class="alignnone size-thumbnail wp-image-185" src="http://infos-reseau.com/wp-content/uploads/2012/02/image-3-150x150.jpg" alt="" width="150" height="150" /></a>             <a href="http://infos-reseau.com/wp-content/uploads/2012/02/image-4.jpg"><img class="alignnone size-thumbnail wp-image-186" src="http://infos-reseau.com/wp-content/uploads/2012/02/image-4-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Configuration de la base de données:<br />
Les mots de passes suivant s’appliquent si vous avez suivi le tuto avec les mots de passe &laquo;&nbsp;</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">nagios</span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">&laquo;&nbsp;.</span></span></span></p>
<blockquote><p><span style="color: #999999;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">Root password for MySQL : </span></span><strong><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">nagios</span></span></strong><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"><br />
Centreon database name : </span></span><strong><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">centreon</span></span></strong><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"><br />
Centstorage database name : </span></span><strong><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">centstorage</span></span></strong><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"><br />
NDO database name : </span></span><strong><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">centstatus</span></span></strong><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"><br />
Database password : </span></span><strong><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">nagios</span></span></strong><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"><br />
Confirm it : </span></span><strong><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">nagios</span></span></strong><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"><br />
Database location : </span></span><strong><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">(ne rien mettre)<br />
</span></span></strong><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">Centreon web interface location : </span></span><strong><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">(ne rien mettre)</span></span></strong><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"><br />
MySQL client version : </span></span><strong><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">4.1 &#8211; PASSWORD</span></span></strong></span></p></blockquote>
<p align="LEFT"><span style="color: #999999;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"><br />
</span></span><span style="color: #000000;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Puis </span></span><strong><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">next</span></span></strong></span></span></p>
<p align="LEFT"><a href="http://infos-reseau.com/wp-content/uploads/2012/02/image-5.jpg"><img class="alignnone size-thumbnail wp-image-187" src="http://infos-reseau.com/wp-content/uploads/2012/02/image-5-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Vérifiez que tout est <strong>o</strong></span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">k </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">puis </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">next : </span></span></span></strong></p>
<p align="LEFT"><a href="http://infos-reseau.com/wp-content/uploads/2012/02/image-6.jpg"><img class="alignnone size-thumbnail wp-image-188" src="http://infos-reseau.com/wp-content/uploads/2012/02/image-6-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Configuration de l’interface:</span></span></span></p>
<blockquote><p><span style="color: #888888;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">Administrator login for centreon :<br />
Administrator password :</span></span></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">Confirm password :</span></span><strong></strong><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"><br />
First name : </span></span><strong><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"><br />
</span></span></strong><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">Last name :</span></span></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><span style="font-size: x-small; font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;">Administrator email :</span></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><strong><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">Vous pouvez mettre ce que vous voulez dans les champs</span></span></strong></span></p></blockquote>
<p align="LEFT"> <span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Puis </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">next</span></span></span></strong></p>
<p align="LEFT"><a href="http://infos-reseau.com/wp-content/uploads/2012/02/image-7.jpg"><img class="alignnone size-thumbnail wp-image-189" src="http://infos-reseau.com/wp-content/uploads/2012/02/image-7-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">LDAP Authentification:</span></span></span></p>
<p>Enable LDAP Authentification : <strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">NO</span></span></span></strong></p>
<p>Important mettez bien &#8216;<strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>NO</strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">&#8216; </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">ici !!! Vous pourrez éventuellement le configurer ultérieurement.</span></span></span></p>
<p align="LEFT"><a href="http://infos-reseau.com/wp-content/uploads/2012/02/image-8.jpg"><img class="alignnone size-thumbnail wp-image-190" src="http://infos-reseau.com/wp-content/uploads/2012/02/image-8-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Vérifier ensuite que tout les fichiers de configuration soient </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">ok</span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">:</span></span></span></p>
<p align="LEFT"><a href="http://infos-reseau.com/wp-content/uploads/2012/02/image-9.jpg"><img class="alignnone size-thumbnail wp-image-191" src="http://infos-reseau.com/wp-content/uploads/2012/02/image-9-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Vérifier que la création de la base de données (database) est </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">ok</span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">:</span></span></span></p>
<p align="LEFT"><a href="http://infos-reseau.com/wp-content/uploads/2012/02/image-10.jpg"><img class="alignnone size-thumbnail wp-image-192" src="http://infos-reseau.com/wp-content/uploads/2012/02/image-10-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Et enfin accéder à centreon<br />
Cliquez sur &laquo;&nbsp;</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Click here to complete your install</span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">&laquo;&nbsp;</span></span></span></p>
<p align="LEFT"><a href="http://infos-reseau.com/wp-content/uploads/2012/02/image-11.jpg"><img class="alignnone size-thumbnail wp-image-193" src="http://infos-reseau.com/wp-content/uploads/2012/02/image-11-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Voilà nous allons passer aux </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">configurations </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">de bases post installation.</span></span></span></p>
<p><span style="font-size: x-small; font-family: Verdana, sans-serif; color: #333333;">Installation des LOCALE.</span></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Revenez donc sous le shell :</span></span></span></p>
<p><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>sudo apt-get install gettext</strong></span></span></span></strong></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Vérifier tout d’abord les locale de votre système:</span></span></span></p>
<p><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>locale</strong></span></span></span></strong></p>
<p><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Pour ma part je suis donc en &laquo;&nbsp;</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">fr_FR.UTF-8</span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">&laquo;&nbsp;</span></span></span></p>
<p align="LEFT"> <span style="font-size: x-small; font-family: Verdana, sans-serif; color: #333333;">Créez les répertoires des locales:</span></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>sudo mkdir /usr/local/centreon/www/locale/fr_FR.UTF-8/<br />
sudo mkdir /usr/local/centreon/www/locale/fr_FR.UTF-8/LC_MESSAGES/</strong></span></span></span></strong></p>
<p align="LEFT"><span style="font-size: x-small; font-family: Verdana, sans-serif; color: #333333;">placez vous dans le répertoire de download et téléchargez le language pack:</span></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>cd /home/nagios/download</strong></span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong><br />
</strong></span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>wget </strong></span></span></span></strong><strong><a href="http://download.centreon.com/index.php?id=119"><span style="color: #679419;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>http://download.centreon.com/index.php?id=119</strong></span></span></span></a></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><br />
</span></span></span></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Décompressez l’archive:<br />
</span></span></span><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong><br />
</strong></span></span></span><strong><span style="color: #000000;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>tar xvzf </strong></span></span></span></strong><strong><a href="http://download.centreon.com/index.php?id=119"><span style="color: #000000;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>index.php?id=119</strong></span></span></span></a></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong><br />
cd centreon-2.1-fr_FR-1.0/LC_MESSAGES/</strong></span></span></span></strong></p>
<p align="LEFT"><span style="font-size: x-small; font-family: Verdana, sans-serif; color: #333333;">Copie du fichier de locale:</span></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>sudo cp messages.mo /usr/local/centreon/www/locale/fr_FR.UTF-8/LC_MESSAGES/messages.mo </strong></span></span></span></strong></p>
<p align="LEFT"><strong></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Pour vérifier que la locale s&#8217;est bien installée, connectez vous sur Centreon (</span></span></span><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><span style="color: #008000;">http://&#8217;IP_DU_SERVER&#8217;/centreon</span>), puis allez dans : </span></span></span></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Configuration</strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"> -&gt; </span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Users ,</strong></span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"> sélectionnez votre utilisateur (admin) et vérifiez que vous pouvez sélectionner </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>fr_FR.UTF-8</strong></span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">.</span></span></span></p>
<p align="LEFT"><a href="http://infos-reseau.com/wp-content/uploads/2012/02/image-12.jpg"><img class="alignnone size-thumbnail wp-image-194" src="http://infos-reseau.com/wp-content/uploads/2012/02/image-12-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Ensuite redémarrez le server apache.</span></span></span></p>
<p><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>sudo service apache2 restart</strong></span></span></span></strong></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Centreon est maintenant en français.</span></span></span></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Donnez ensuite les droits sur les répertoires Nagios:</span></span></span></p>
<p><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>sudo chown -R nagios:nagios /usr/local/nagios<br />
sudo chmod -R 775 /usr/local/nagios<br />
sudo chown -R nagios:www-data /usr/local/nagios/etc<br />
sudo chmod -R 775 /usr/local/nagios/etc<br />
sudo chown -R nagios:www-data /usr/local/nagios/share<br />
sudo chmod -R 775 /usr/local/nagios/share</strong></span></span></span></strong></p>
<p align="LEFT"> <span style="font-size: x-small; font-family: Verdana, sans-serif; color: #333333;">Et centreon:</span></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>sudo chown -R nagios:nagios /usr/local/centreon<br />
sudo chmod -R 775 /usr/local/centreon<br />
sudo chown -R nagios:www-data /usr/local/centreon/cron<br />
sudo chmod -R 775 /usr/local/centreon/cron<br />
sudo chown -R nagios:www-data /usr/local/centreon/doc<br />
sudo chmod -R 775 /usr/local/centreon/doc<br />
sudo chown -R www-data:nagios /usr/local/centreon/log<br />
sudo chmod -R 775 /usr/local/centreon/log<br />
sudo chown -R www-data:www-data /usr/local/centreon/www<br />
sudo chmod -R 775 /usr/local/centreon/www<br />
sudo chown -R www-data:www-data /usr/local/centreon/GPL_LIB<br />
sudo chmod -R 775 /usr/local/centreon/GPL_LIB</strong></span></span></span></strong></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: small;"><span style="text-decoration: underline;">6] Installation NDO partie 2:</span></span></span></span></strong></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Nous allons maintenant finaliser la configuration NDO. </span></span></span></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Création de la base de données NDO : </span></span></span></p>
<p><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>mysql -u root -p</strong></span></span></span></strong></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Enter password : nagios</strong></span></span></span></strong></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>CREATE DATABASE `ndo` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;</strong></span></span></span></strong></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>exit</strong></span></span></span></strong></p>
<p> <strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>mysql -u root -pnagios ndo &lt; /home/nagios/download/centreon-2.1.3/www/install/createNDODB.sql</strong></span></span></span></strong></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Puis donnez les </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">droits </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">à l’utilisateur sur la base:</span></span></span></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>mysql -u root -pnagios</strong></span></span></span></strong></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>GRANT ALL PRIVILEGES ON `ndo` . * TO </strong></span></span></span></strong><strong><a href="mailto:'centreon'@'localhost'">&#8216;centreon&#8217;@'localhost&#8217;</a></strong><strong></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>IDENTIFIED BY &#8216;nagios&#8217;;<br />
flush privileges;</strong></span></span></span></strong></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>exit</strong></span></span></span></strong></p>
<p align="LEFT"><span style="font-size: x-small; font-family: Verdana, sans-serif; color: #333333;">Vérifiez ensuite la présence du fichier ndo2db.cfg puis éditer le:</span></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>ls -l /usr/local/nagios/etc/<br />
sudo vim /usr/local/nagios/etc/ndo2db.cfg</strong></span></span></span></strong></p>
<p align="LEFT"> <span style="font-size: x-small; font-family: Verdana, sans-serif; color: #333333;">Puis éditez comme ci-dessous:</span></p>
<blockquote><p><span style="color: #888888;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">#####################################################################<br />
# NDO2DB DAEMON CONFIG FILE<br />
#<br />
# Last Modified: 01-02-2009<br />
#####################################################################</span></span></span></p>
<p><span style="color: #888888;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"># LOCK FILE<br />
# This is the lockfile that NDO2DB will use to store its PID number<br />
# in when it is running in daemon mode.</span></span></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><strong><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">lock_file=/usr/local/nagios/var/ndo2db.lock</span></span></strong></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"># USER/GROUP PRIVILIGES<br />
# These options determine the user/group that the daemon should run as.<br />
# You can specify a number (uid/gid) or a name for either option.</span></span></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><strong><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">ndo2db_user=nagios<br />
ndo2db_group=nagios</span></span></strong></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"># SOCKET TYPE<br />
# This option determines what type of socket the daemon will create<br />
# an accept connections from.<br />
# Value:<br />
# unix = Unix domain socket (default)<br />
# tcp = TCP socket</span></span></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><strong><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">socket_type=unix</span></span></strong><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"><br />
#socket_type=tcp</span></span></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"># SOCKET NAME<br />
# This option determines the name and path of the UNIX domain<br />
# socket that the daemon will create and accept connections from.<br />
# This option is only valid if the socket type specified above<br />
# is &laquo;&nbsp;unix&nbsp;&raquo;.</span></span></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><strong><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">socket_name=/usr/local/nagios/var/ndo.sock</span></span></strong></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"># TCP PORT<br />
# This option determines what port the daemon will listen for<br />
# connections on. This option is only vlaid if the socket type<br />
# specified above is &laquo;&nbsp;tcp&nbsp;&raquo;.</span></span></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">tcp_port=5668</span></span></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"># ENCRYPTION<br />
# This option determines if the ndo2db daemon will accept SSL to encrypt the<br />
# network traffic between module and ndo2db daemon.<br />
# Both sides have to enable this feature which depends on SSL Libraries<br />
# like openssl or kerberos<br />
# This option is only valid if the output type<br />
# option specified above is &laquo;&nbsp;tcpsocket&nbsp;&raquo;.<br />
#<br />
# A value of &#8217;1&#8242; will enable this feature</span></span></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">use_ssl=0</span></span></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"># DATABASE SERVER TYPE<br />
# This option determines what type of DB server the daemon should<br />
# connect to.<br />
# Values:<br />
# mysql = MySQL<br />
# pgsql = PostgreSQL</span></span></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">db_servertype=mysql</span></span></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"># DATABASE HOST<br />
# This option specifies what host the DB server is running on.</span></span></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">db_host=localhost</span></span></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"># DATABASE PORT<br />
# This option specifies the port that the DB server is running on.<br />
# Values:<br />
# 3306 = Default MySQL port<br />
# 5432 = Default PostgreSQL port</span></span></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">db_port=3306</span></span></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"># DATABASE NAME<br />
# This option specifies the name of the database that should be used.</span></span></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><strong><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">db_name=nagios</span></span></strong></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"># DATABASE TABLE PREFIX<br />
# Determines the prefix (if any) that should be prepended to table names.<br />
# If you modify the table prefix, you&#8217;ll need to modify the SQL script for<br />
# creating the database!</span></span></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><strong><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">db_prefix=nagios_</span></span></strong></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"># DATABASE USERNAME/PASSWORD<br />
# This is the username/password that will be used to authenticate to the DB.<br />
# The user needs at least SELECT, INSERT, UPDATE, and DELETE privileges on<br />
# the database.</span></span></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><strong><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">db_user=centreon<br />
db_pass=nagios<br />
db_name=ndo</span></span></strong></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"><br />
## TABLE TRIMMING OPTIONS<br />
# Several database tables containing Nagios event data can become quite large<br />
# over time. Most admins will want to trim these tables and keep only a<br />
# certain amount of data in them. The options below are used to specify the<br />
# age (in MINUTES) that data should be allowd to remain in various tables<br />
# before it is deleted. Using a value of zero (0) for any value means that<br />
# that particular table should NOT be automatically trimmed.</span></span></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"># Keep timed events for 24 hours<br />
max_timedevents_age=1440</span></span></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"># Keep system commands for 1 week<br />
max_systemcommands_age=10080</span></span></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"># Keep service checks for 1 week<br />
max_servicechecks_age=10080</span></span></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"># Keep host checks for 1 week<br />
max_hostchecks_age=10080</span></span></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"># Keep event handlers for 31 days<br />
max_eventhandlers_age=44640</span></span></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"># Keep external commands for 31 days<br />
max_externalcommands_age=44640</span></span></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"><br />
# DEBUG LEVEL<br />
# This option determines how much (if any) debugging information will<br />
# be written to the debug file.  OR values together to log multiple<br />
# types of information.<br />
# Values: -1 = Everything<br />
# 0 = Nothing<br />
# 1 = Process info<br />
# 2 = SQL queries</span></span></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">debug_level=0</span></span></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"># DEBUG VERBOSITY<br />
# This option determines how verbose the debug log out will be.<br />
# Values: 0 = Brief output<br />
# 1 = More detailed<br />
# 2 = Very detailed</span></span></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">debug_verbosity=1</span></span></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"># DEBUG FILE<br />
# This option determines where the daemon should write debugging information.</span></span></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><strong><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">debug_file=/usr/local/nagios/var/ndo2db.debug</span></span></strong></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"># MAX DEBUG FILE SIZE<br />
# This option determines the maximum size (in bytes) of the debug file. If<br />
# the file grows larger than this size, it will be renamed with a .old<br />
# extension. If a file already exists with a .old extension it will<br />
# automatically be deleted. This helps ensure your disk space usage doesn&#8217;t<br />
# get out of control when debugging.</span></span></span></p></blockquote>
<blockquote><p><span style="color: #888888;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">max_debug_file_size=1000000</span></span></span></p></blockquote>
<p>&nbsp;</p>
<p align="LEFT"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><span style="color: #333333;">Connectez vous ensuite sur Centreon (</span><span style="color: #679419;"><strong>http://&#8217;IP_DU_SERVER&#8217;/centreon</strong></span><span style="color: #333333;">)<br />
Allez sur :</span></span></span></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Configuration </strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"> -&gt; </span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Nagios</strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"> -&gt; </span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Nagios.cfg </strong></span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">puis cliquez sur &laquo;&nbsp;</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Nagios CFG 1</strong></span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">&laquo;&nbsp;</span></span></span></p>
<p align="LEFT"><a href="http://infos-reseau.com/wp-content/uploads/2012/02/image-13.jpg"><img class="alignnone size-thumbnail wp-image-195" src="http://infos-reseau.com/wp-content/uploads/2012/02/image-13-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Ensuite, sous l’onglet </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Données</strong></span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">, les champs &laquo;&nbsp;</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Commande de lancement du module</strong></span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">&laquo;&nbsp;, &laquo;&nbsp;</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Option de lancement du module</strong></span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">&nbsp;&raquo; et &laquo;&nbsp;</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Fichier de données de performance de service</strong></span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">&laquo;&nbsp;, configurez comme ci-dessous :</span></span></span></p>
<p align="LEFT"> <span style="text-decoration: underline;">Commande de lancement du module :</span></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>/usr/local/nagios/bin/ndomod.o </strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>config_file=/usr/local/nagios/etc/ndomod.cfg</strong></span></span></span></strong></p>
<p align="LEFT"> <span style="text-decoration: underline;">Option de lancement du module :</span></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>-1</strong></span></span></span></strong></p>
<p align="LEFT"> <span style="text-decoration: underline;">Fichier de données de performance de service :</span></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>/usr/local/nagios/var/service-perfdata</strong></span></span></span></strong></p>
<p align="LEFT"> <span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Puis cliquez sur &laquo;&nbsp;</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Sauvegarder</strong></span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">&laquo;&nbsp;</span></span></span></p>
<p align="LEFT"><a href="http://infos-reseau.com/wp-content/uploads/2012/02/image-14.jpg"><img class="alignnone size-thumbnail wp-image-197" src="http://infos-reseau.com/wp-content/uploads/2012/02/image-14-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Ensuite sous : </span></span></span></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Configuration</strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"> -&gt; </span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Centreon</strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"> -&gt; </span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>ndo2db.cfg -&gt;</strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"> </span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Principal</strong></span></span></span></strong></p>
<p align="LEFT"><a href="http://infos-reseau.com/wp-content/uploads/2012/02/image-15.jpg"><img class="alignnone size-thumbnail wp-image-198" src="http://infos-reseau.com/wp-content/uploads/2012/02/image-15-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Mettre dans &laquo;&nbsp;</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Nom de la socke</strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">t</span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">&nbsp;&raquo; :</span></span></span></p>
<p><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>/usr/local/nagios/var/ndo.sock</strong></span></span></span></strong></p>
<p align="LEFT"> <span style="font-size: x-small; font-family: Verdana, sans-serif; color: #333333;">Puis sous:</span></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Configuration</strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"> -&gt; </span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Centreon</strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"> -&gt; </span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>ndomod.cfg</strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"> -&gt; </span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Central-mod</strong></span></span></span></strong></p>
<p align="LEFT"><a href="http://infos-reseau.com/wp-content/uploads/2012/02/image-16.jpg"><img class="alignnone size-thumbnail wp-image-199" src="http://infos-reseau.com/wp-content/uploads/2012/02/image-16-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Complétez comme suis :</span></span></span></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><span style="text-decoration: underline;">Type d’interface :</span></span></span></span><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><br />
</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>unixsocket</strong></span></span></span></strong></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><span style="text-decoration: underline;">Status détailler :</span></span></span></span><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><br />
</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>/usr/local/nagios/var/ndo.sock</strong></span></span></span></strong></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><span style="text-decoration: underline;">Fichier tampon :</span></span></span></span><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><br />
</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>/usr/local/nagios/var/ndomod.tmp</strong></span></span></span></strong></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Puis <strong>sauvegarder</strong> (en haut a droite)</span></span></span></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Testez maintenant de démarrer les services :</span></span></span></p>
<p><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>sudo service nagios start<br />
sudo service ndo2db start</strong></span></span></span></strong></p>
<p align="LEFT"> <strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Si vous rencontrez des erreurs après le démarrage de ndodb, nous vous conseillons de jeter un coup d&#8217;œil ici : </span></span></span></strong><strong><a href="http://vip93fr.free.fr/2point0/index.php?post/2009/09/30/Nagios:-%22ndomod:-Error-writing-to-data-sink!-Some-output-may-get-lost%22.">http://vip93fr.free.fr/2point0/index.php?post/2009/09/30/Nagios%3A-%22ndomod%3A-Error-writing-to-data-sink!-Some-output-may-get-lost%22.</a></strong></p>
<p align="LEFT"> <span style="font-size: x-small; font-family: Verdana, sans-serif; color: #333333;">Allez ensuite sur :</span></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Configuration</strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"> -&gt; </span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Nagios</strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><br />
</span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><br />
Cochez toute les options présentes puis </span></span></span><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>exporter</strong></span></span></span><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">.</span></span></span></p>
<p align="LEFT"><a href="http://infos-reseau.com/wp-content/uploads/2012/02/image-17.jpg"><img class="alignnone size-thumbnail wp-image-200" src="http://infos-reseau.com/wp-content/uploads/2012/02/image-17-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Vérifier qu’il n’y ai pas d’erreur lors de l’export de la configuration :</span></span></span></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"> <a href="http://infos-reseau.com/wp-content/uploads/2012/02/image-18.jpg"><img class="alignnone size-thumbnail wp-image-201" src="http://infos-reseau.com/wp-content/uploads/2012/02/image-18-150x150.jpg" alt="" width="150" height="150" /></a></span></span></span></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Puis vérifiez que le lien NDO</span></span></span><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"> s&#8217;établi correctement:</span></span></span></p>
<p><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>tail -f /usr/local/nagios/var/nagios.log | grep ndomod</strong></span></span></span></strong></p>
<p align="LEFT"><span style="font-size: x-small; font-family: Verdana, sans-serif; color: #333333;">Vous devriez avoir ceci:</span></p>
<blockquote><p><span style="color: #999999;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">[1261436831] ndomod: NDOMOD 1.4b9 (10-27-2009) Copyright (c) 2009 Nagios Core Development Team and Community Contributors<br />
[1261436831] ndomod: Successfully connected to data sink. 0 queued items to flush.<br />
[1261436831] Event broker module &#8216;/usr/local/nagios/bin/ndomod.o&#8217; initialized successfully.</span></span></span></p></blockquote>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Une foi que tout est ok, configurez </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">les permissions cgi </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">de Nagios.</span></span></span></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Allez sur : </span></span></span></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Configuration</strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"> -&gt; </span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Nagios</strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"> -&gt; </span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>CGI</strong></span></span></span></strong></p>
<p align="LEFT"><a href="http://infos-reseau.com/wp-content/uploads/2012/02/image-19.jpg"><img class="alignnone size-thumbnail wp-image-202" src="http://infos-reseau.com/wp-content/uploads/2012/02/image-19-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Editer </span></span></span><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>&#8216;</strong></span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>CGI.cfg&#8217;</strong></span></span></span></strong></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Remplacez les users </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>nagiosadmin</strong></span></span></span></strong><strong></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">par </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>nagios</strong></span></span></span></strong></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Puis remplacez dans &laquo;&nbsp;</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Méthode d&#8217;affichage par défaut de la carte des états</strong></span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">&nbsp;&raquo; en &laquo;&nbsp;</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Circular (Marked Up)</strong></span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">&laquo;&nbsp;.</span></span></span></p>
<p align="LEFT"><a href="http://infos-reseau.com/wp-content/uploads/2012/02/image-20.jpg"><img class="alignnone size-thumbnail wp-image-203" src="http://infos-reseau.com/wp-content/uploads/2012/02/image-20-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Puis </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>sauvegarder</strong></span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">.</span></span></span></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Aller ensuite dans :</span></span></span></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Configuration</strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"> -&gt; </span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Nagios</strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"> -&gt; </span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Ressources</strong></span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">, puis éditer </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>$USER2$</strong></span></span></span></strong><strong></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">avec le nom de la communauté que vous avez paramétré sur vos hôtes.</span></span></span></p>
<p align="LEFT"><a href="http://infos-reseau.com/wp-content/uploads/2012/02/image-21.jpg"><img class="alignnone size-thumbnail wp-image-204" src="http://infos-reseau.com/wp-content/uploads/2012/02/image-21-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Configurer ensuite </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Centstorage </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">:<br />
Sous :</span></span></span></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Administration</strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"> -&gt; </span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Options</strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"> -&gt; </span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Centstorage</strong></span></span></span></strong></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Editez comme le screenshot ci-dessous</span></span></span></p>
<p align="LEFT"><a href="http://infos-reseau.com/wp-content/uploads/2012/02/image-22.jpg"><img class="alignnone size-thumbnail wp-image-205" src="http://infos-reseau.com/wp-content/uploads/2012/02/image-22-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Puis aller sous :</span></span></span></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Configuration</strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"> -&gt; </span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Nagios</strong></span></span></span></strong></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Cochez toutes les options, méthode &laquo;&nbsp;Redémarrer&nbsp;&raquo; puis </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>exporter</strong></span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">.</span></span></span></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Voilà l’installation de base est à présent terminée.</span></span></span></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Par défaut le serveur nagios est ajouté à Nagios/Centreon sous le nom « </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">centreon-server »</span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">.</span></span></span></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Nous allons maintenant configurer brièvement les services comme snmp par exemple.</span></span></span></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Pour configurer snmp, éditer le fichier </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>snmpd.conf </strong></span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">:<br />
</span></span></span><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>vim</strong></span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong> /etc/snmp/snmpd.conf</strong></span></span></span></strong></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Pour les versions 1 &amp; 2 de SNMP :</strong></span></span></span></strong></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Localisez la ligne :</span></span></span></p>
<blockquote><p><span style="color: #888888;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">com2sec paranoid default public</span></span></span></p></blockquote>
<p align="LEFT"><span style="color: #000000;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Commentez la ligne avec </span></span><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>&#8216;</strong></span></span><strong><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>#&#8217;</strong></span></span></strong><strong></strong><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">puis décommentez la ligne au dessous et éventuellement éditer la communauté :</span></span></span></p>
<blockquote><p><span style="color: #999999;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">#com2sec paranoid default public<br />
</span></span><strong><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">com2sec readonly  default </span></span></strong><strong><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"><em>/*Nom de la communauté*/</em></span></span></strong><strong><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"><br />
</span></span></strong><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">#com2sec readwrite default private</span></span></span></p></blockquote>
<p align="LEFT"> <strong>Pour la version 3 de SNMP :</strong></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Localisez la ligne :</span></span></span></p>
<blockquote><p><span style="color: #999999;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">rocommunity public default -V systemonly</span></span></span></p></blockquote>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Commentez la et ajoutez en dessous une ligne sous ce format là : </span></span></span></p>
<blockquote>
<p align="LEFT"><span style="color: #999999;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">rocummunity /*Nom de la communauté*/ default</span></span></span></p>
</blockquote>
<p><span style="font-size: x-small; font-family: Verdana, sans-serif; color: #333333;">Et commentez également la ligne :</span></p>
<blockquote><p><span style="color: #999999;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">agentaddress udp:127.0.0.1:161</span></span></span></p></blockquote>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Sinon, le serveur n&#8217;écoutera les rêquetes SNMP qu&#8217;en local (127.0.0.1)</span></span></span></p>
<p align="LEFT"> <span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Ensuite éditez le fichier </span></span></span><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>snmpd</strong></span></span></span></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>sudo vim /etc/init.d/snmpd</strong></span></span></span></strong></p>
<p align="LEFT"><span style="font-size: x-small; font-family: Verdana, sans-serif; color: #333333;">Trouvez la ligne :</span></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>TRAPDRUN=no</strong></span></span></span></strong></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">et la ligne : </span></span></span></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>TRAPDOPTS=&#8217;-Lsd -p /var/run/snmptrapd.pid&#8217; </strong></span></span></span></strong></p>
<p align="LEFT"><strong></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Puis modifiez comme suis :<br />
</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>TRAPDRUN=yes<br />
TRAPDOPTS=&#8217;-On -LF d /usr/local/nagios/var/snmptrap.log -c /etc/snmp/snmptrapd.conf -p /var/run/snmpdtrapd.pid&#8217;</strong></span></span></span></strong></p>
<p align="LEFT"> <span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Editez ensuite le fichier </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>/etc/default/snmpd</strong></span></span></span></strong></p>
<p align="LEFT"><strong><span><span><span><strong><span style="color: #333333; font-family: Verdana, sans-serif; font-size: xx-small;">sudo vim /etc/default/snmpd</span><br />
</strong></span></span></span></strong><strong></strong></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Configurez :</span></span></span></p>
<p><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>TRAPDRUN=yes</strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><br />
</span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>TRAPDOPTS=&#8217;-On -LF d /usr/local/nagios/var/snmptrap.log -c /etc/snmp/snmptrapd.conf -p /var/run/snmpdtrapd.pid&#8217;</strong></span></span></span></strong></p>
<p><span style="font-size: x-small; font-family: Verdana, sans-serif; color: #333333;">Enfin redémarrez le service snmpd:</span></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>sudo service snmpd restart</strong></span></span></span></strong></p>
<p align="LEFT"><span style="font-size: x-small; font-family: Verdana, sans-serif; color: #333333;">Vérifiez la présence des 2 processus snmp :</span></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>ps -aux | grep snmp</strong></span></span></span></strong></p>
<blockquote><p><span style="color: #999999;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">snmp 11540 0.1 0.4 9540 4160 ? S 03:21 0:00 /usr/sbin/snmpd -Lsd -Lf /dev/null -u snmp -I -smux -p /var/run/snmpd.pid 127.0.0.1<br />
root 11543 0.0 0.1 8796 1652 ? Ss 03:21 0:00 /usr/sbin/snmptrapd -On -LF d /usr/local/nagios/var/snmptrap.log -c /etc/snmp/snmptrapd.conf -p /var/run/snmpdtrapd.pid<br />
nagios 11576 0.0 0.0 3052 812 pts/0 S+ 03:22 0:00 grep &#8211;color=auto snmp</span></span></span></p></blockquote>
<p align="LEFT"><span style="font-family: Verdana, sans-serif; color: #000000;"><span style="font-size: x-small;">Test manuel d’un plugin pour vérifier les droits:<br />
</span></span></p>
<p align="LEFT"><span style="color: #000000;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Allez dans </span></span><strong><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>/usr/local/nagios/libexec </strong></span></span></strong><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">puis tapez :</span></span><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong><br />
</strong></span></span><strong><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>./check_centreon_snmp_memory -H 127.0.0.1 -C </strong></span></span></strong><strong><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><em>/*nom de la communauté*/</em></span></span></strong><strong><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong> -v 1 -w 80 -c 90</strong></span></span></strong></span></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Et vous devriez avoir un retour du genre :</span></span></span><span style="color: #333333;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;"><br />
</span></span></span></p>
<blockquote>
<p align="LEFT"><span style="color: #999999;"><strong><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">total memory used : 11% ram used : 37%, swap used 0% | used=189804544o size=1643266048o</span></span></strong></span></p>
</blockquote>
<p align="LEFT"><span style="color: #000000;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Si c’est le cas, les droits pour </span></span><strong><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">l’exécution des plugins </span></span></strong><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">avec le compte </span></span><strong><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">nagios </span></span></strong><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">sont ok</span></span></span></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Ajoutez un hôte sous centreon :</span></span></span></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Aller sous</span></span></span></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Configuration</strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"> -&gt; </span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Hôtes</strong></span></span></span></strong></p>
<p align="LEFT"><a href="http://infos-reseau.com/wp-content/uploads/2012/02/image-23.jpg"><img class="alignnone size-thumbnail wp-image-213" src="http://infos-reseau.com/wp-content/uploads/2012/02/image-23-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Vous retrouverez ici le serveur local (</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Centreon-server ajouté</span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"> lors de l’install)<br />
Nous allons faire le test pour le même serveur.<br />
Complétez les champs : </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Nom de l&#8217;hôte</span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">, </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">alias</span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">, </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Adresse IP</span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">, </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">nom de communauté SNMP et version</span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">.</span></span></span></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Ensuite ajouter un modèle :<br />
Cliquer sur le </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">+ </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">devant &#8216;</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Ajouter un modèle&#8217; </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">et choisissez &#8216;</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>generic-host</strong></span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">&#8216; puis cocher &#8216;</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>créer aussi les services lié</strong></span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">&#8216;.</span></span></span></p>
<p align="LEFT"> <span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Dans &#8216;</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">notification&#8217; </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">ajouter les utilisateurs qui doivent recevoir les </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">alertes </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">et les </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">heures où</span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"> le service doit être vérifié (</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">workour, 24/24</span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">, etc…)</span></span></span></p>
<p> <span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Cliquez ensuite sur &#8216;</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Relations&#8217; </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">puis </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">ajoutez </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">l’hôte à un </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">groupe d’hôtes (exemple : Linux-Servers)</span></span></span></strong></p>
<p align="LEFT"><a href="http://infos-reseau.com/wp-content/uploads/2012/02/image-24.jpg"><img class="alignnone size-thumbnail wp-image-214" src="http://infos-reseau.com/wp-content/uploads/2012/02/image-24-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Sauvegardez puis allers sous :</span></span></span></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Configuration</strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"> -&gt; </span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Nagios </strong></span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">et </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">cochez toutes les cases, </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">puis </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>exporter</strong></span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">.</span></span></span></p>
<p>Vérifiez qu’il n’y a pas d’erreur à l’export, puis vérifiez sur <strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Nagios </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">et </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Centreon </span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">que le nouvel hôte est bien la : </span></span></span></p>
<p align="LEFT"><a href="http://infos-reseau.com/wp-content/uploads/2012/02/image-25.jpg"><img class="alignnone size-thumbnail wp-image-215" src="http://infos-reseau.com/wp-content/uploads/2012/02/image-25-150x150.jpg" alt="" width="150" height="150" /></a>                      <a href="http://infos-reseau.com/wp-content/uploads/2012/02/image-26.jpg"><img class="alignnone size-thumbnail wp-image-216" src="http://infos-reseau.com/wp-content/uploads/2012/02/image-26-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">I<span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">l est possible que vous ayez un bug d’affichage des hôtes sous Centreon visiblement lié à la version de NDO.</span></span></span></span></span></p>
<p>Le problème est que les hôtes apparaissent correctement dans Nagios mais aucun n’apparait dans Centreon.</p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Voici comment fixer le problème :</span></span></span></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><br />
</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>cd /home/nagios/download/</strong></span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong><br />
</strong></span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>sudo apt-get install subversion<br />
svn co </strong></span></span></span></strong><strong><a href="http://svn.centreon.com/trunk/Patch-NDOutils/"><span style="color: #679419;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>http://svn.centreon.com/trunk/Patch-NDOutils/</strong></span></span></span></a></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong><br />
</strong></span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>cd Patch-NDOutils/</strong></span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong><br />
</strong></span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>./configure &#8211;prefix=/usr/local/nagios/ &#8211;enable-mysql &#8211;disable-pgsql &#8211;with-mysql-lib=/usr/lib/mysql</strong></span></span></span></strong></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">(vous pouvez avoir un problème de permissions non accordée pour le ./configure, si c’est le cas pas de souci un petit :</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>sudo chmod 775 configure </strong></span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">règlera votre problème)</span></span></span></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>make<br />
sudo service nagios stop<br />
sudo cp /home/nagios/download/Patch-NDOutils/src/ndomod-3x.o /usr/local/nagios/bin/ndomod.o<br />
sudo cp /home/nagios/download/Patch-NDOutils/src/ndo2db* /usr/local/nagios/bin/<br />
sudo service nagios start<br />
sudo service ndo2db restart</strong></span></span></span></strong></p>
<p align="LEFT"><span style="font-size: x-small; font-family: Verdana, sans-serif; color: #333333;">Puis vérifié que vous avez bien quelque chose du genre :</span></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>tail -f /usr/local/nagios/var/nagios.log</strong></span></span></span></strong></p>
<blockquote><p><span style="color: #999999;"><span style="font-family: 'Lucida Grande', Geneva, Arial, Helvetica, sans-serif;"><span style="font-size: x-small;">[1261447270] ndomod: Successfully connected to data sink. 122 items lost, 5000 queued items to flush.<br />
[1261447277] ndomod: Successfully flushed 5000 queued items to data sink.</span></span></span></p></blockquote>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Vous pouvez maintenant commencer la configuration de vos hôtes et de vos plugins sérieusement.</span></span></span></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><span style="text-decoration: underline;">[EDIT]</span></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><br />
</span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Après avoir appliqué le </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">patch NDO</span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">, il est possible que la configuration du socket est changé en TCP.</span></span></span></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Vérifiez sous :</span></span></span></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Configuration</strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"> -&gt; </span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Centreon</strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"> -&gt; </span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>ndo2db.cfg </strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">-&gt; </span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Principal</strong></span></span></span></strong></p>
<p>Dans les champs doit apparaître :<br />
<strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><span style="text-decoration: underline;">Type de socket : </span></span></span></span></strong></p>
<p align="LEFT"><strong></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Unix</strong></span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><br />
</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><span style="text-decoration: underline;">Nom de la socket :</span></span></span></span></strong><strong></strong></p>
<p align="LEFT"><strong></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>/usr/local/nagios/var/ndo.sock</strong></span></span></span></strong></p>
<p>Et dans :</p>
<p align="LEFT"> <strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Configuration</strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"> -&gt; </span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Centreon</strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"> -&gt; </span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>ndomod.cfg</strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"> -&gt; </span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Central-mod</strong></span></span></span></strong></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Les champs:<br />
</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><span style="text-decoration: underline;">Type d&#8217;interface : </span></span></span></span></strong></p>
<p align="LEFT"><strong></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>unixsocket</strong></span></span></span></strong></p>
<p align="LEFT"><strong></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><br />
</span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><span style="text-decoration: underline;">status détaillé : </span></span></span></span></strong></p>
<p align="LEFT"><strong></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>/usr/local/nagios/var/ndo.sock</strong></span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><br />
</span></span></span></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Si ce n&#8217;est pas le cas, remplacez les éléments par ces champs.</span></span></span></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Ensuite redémarrez les services centcore et centstorage<br />
</span></span></span><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong><br />
</strong></span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>sudo service centcore restart<br />
sudo service centstorage restart</strong></span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong><br />
</strong></span></span></span><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><br />
Puis sous centreon, retournez dans :</span></span></span></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Configuration</strong></span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"> -&gt; </span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>Nagios</strong></span></span></span></strong></p>
<p>Cochez toutes les cases, méthode <strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>redémarrer</strong></span></span></span></strong><strong></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">puis </span></span></span><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">cliquer sur </span></span></span></strong><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;"><strong>exporter</strong></span></span></span></strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">.</span></span></span></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Notez bien que cette tâche doit être effectué après chaque manipulation sur centreon (ajout d&#8217;hôtes, modification d&#8217;un service, …)</span></span></span></p>
<p align="LEFT"><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">Néanmoins, si les informations ne remontent toujours pas sur Centreon, c&#8217;est très probable que le problème vient de NDO. Pour résoudre le problème, faites : </span></span></span></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">sudo rm /usr/local/nagios/var/ndo.sock </span></span></span></strong></p>
<p align="LEFT"><strong><span style="color: #333333;"><span style="font-family: Verdana, sans-serif;"><span style="font-size: x-small;">sudo service ndo2db restart</span></span></span></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://infos-reseau.com/mise-en-place-dun-serveur-nagios-sur-linux-installation-de-nagios-centreon-et-ndo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Nagios/Centreon : Superviser Postfix avec MailGraph</title>
		<link>http://infos-reseau.com/nagioscentreon-superviser-postfix-avec-mailgraph/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=nagioscentreon-superviser-postfix-avec-mailgraph</link>
		<comments>http://infos-reseau.com/nagioscentreon-superviser-postfix-avec-mailgraph/#comments</comments>
		<pubDate>Wed, 08 Feb 2012 15:30:17 +0000</pubDate>
		<dc:creator>PetitCanardRuse</dc:creator>
				<category><![CDATA[Outils]]></category>
		<category><![CDATA[Système GNU/Linux]]></category>
		<category><![CDATA[Système OS]]></category>
		<category><![CDATA[centreon]]></category>
		<category><![CDATA[mailgraph]]></category>
		<category><![CDATA[mailstat.pl]]></category>
		<category><![CDATA[nagios]]></category>
		<category><![CDATA[nrpe]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[superviser]]></category>

		<guid isPermaLink="false">http://infos-reseau.com/?p=139</guid>
		<description><![CDATA[Introduction Déjà qu&#8217;est ce que postfix et mailgraph ? Pour Postfix, je pense que vous savez. En revanche pour mailgraph, il s&#8217;agit d&#8217;un logiciel permettant de créer des graphiques sur l&#8217;activité du serveur e-mail. Ce dernier se base sur le fichier de log de Postfix, à savoir « /var/log/mail.log » (par défaut). Mailgraph propose une interface web pour [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li>
<p align="LEFT"><span style="text-decoration: underline;"><strong>Introduction</strong></span></p>
</li>
</ul>
<p align="LEFT">Déjà qu&#8217;est ce que postfix et mailgraph ? Pour Postfix, je pense que vous savez. En revanche pour mailgraph, il s&#8217;agit d&#8217;un logiciel permettant de créer des graphiques sur l&#8217;activité du serveur e-mail. Ce dernier se base sur le fichier de log de Postfix, à savoir « /var/log/mail.log » (par défaut). Mailgraph propose une interface web pour pouvoir surveiller l&#8217;activité du serveur mais nous voulons avoir ces informations sur notre serveur Nagios !</p>
<p align="LEFT">Afin de pouvoir interroger mailgraph depuis un serveur Nagios, il nous faut utiliser NRPE (reportez vous à la procédure d&#8217;installation de NRPE).</p>
<p align="LEFT">Dans notre cas, nous ne configurerons pas l&#8217;accès à l&#8217;interface web car elle ne nous intéresse pas. Pourquoi mettre en place une autre interface web alors que l&#8217;on veut tout centraliser sur Nagios ???</p>
<ul>
<li>
<p align="LEFT"><span style="text-decoration: underline;"><strong>Installation de MailGraph</strong></span></p>
</li>
</ul>
<p align="LEFT">Pour commencer, faites un petit coup d&#8217;apt-get :</p>
<table width="100%" cellspacing="0" cellpadding="4">
<colgroup>
<col width="256*" /> </colgroup>
<tbody>
<tr>
<td valign="TOP" width="100%">
<p align="CENTER"><span style="color: #000000;"><em>apt-get install mailgraph</em></span></p>
</td>
</tr>
</tbody>
</table>
<p align="LEFT">Maintenant, nous allons le configurer. Pour cela :</p>
<table width="100%" cellspacing="0" cellpadding="4">
<colgroup>
<col width="256*" /> </colgroup>
<tbody>
<tr>
<td valign="TOP" width="100%">
<p align="CENTER"><span style="color: #000000;"><em>dpkg-reconfigure mailgraph</em></span></p>
</td>
</tr>
</tbody>
</table>
<p align="LEFT">Un « utilitaire » en mode texte apparaît et vous pose des questions :</p>
<p align="LEFT"><em>→</em>Il vous demande si Mailgraph doit être lancé au démarrage, vous répondez <strong>oui</strong></p>
<p align="LEFT"><em>→</em>Il vous demande quel est le fichier de journalisation est utiliser par Postfix pour qu&#8217;il puisse l&#8217;utiliser, par défaut c&#8217;est « <strong>/var/log/mail.log</strong> »</p>
<p align="LEFT"><em>→</em>Ensuite, il vous demande s&#8217;il doit compter les courriels entrants comme des courriels sortants, répondez <strong>non</strong> si vous utilisez Amavis ! (Répondre non si vous installerez Amavis dans un futur proche)</p>
<p align="LEFT"><span style="text-decoration: underline;"><strong>Remarque :</strong></span> Avant d&#8217;aller plus loin dans le cas où vous utilisez Amavis, je vous recommande de faire la procédure suivante sinon passez à l&#8217;étape suivante :</p>
<p align="LEFT">Dans notre configuration de test, nous avions Postfix avec Amavis pour filtrer les e-mails. Le soucis posé par Amavis, c&#8217;est qu&#8217;il écrit lui aussi (par défaut) dans « <strong>/var/log/mail.log</strong> », ce qui risque de comptabilisé des e-mails plusieurs fois ! Pour réglé ce problème, nous allons changer le fichier de journalisation d&#8217;Amavis.</p>
<p align="LEFT">Éditez le fichier « <em><strong>/etc/amavis/conf.d/20-debian_defaults</strong></em> » puis effectuez les modifications suivantes :</p>
<p align="LEFT">Mettez la variable « $DO_SYSLOG » à 0 comme suit :</p>
<table width="100%" cellspacing="0" cellpadding="4">
<colgroup>
<col width="256*" /> </colgroup>
<tbody>
<tr>
<td valign="TOP" width="100%">
<p align="CENTER"><span style="color: #000000;"><em>$DO_SYSLOG = 0 ;</em></span></p>
</td>
</tr>
</tbody>
</table>
<p align="LEFT">Cela va dire à Amavis de ne pas utiliser le programme syslog pour écrire son fichier de log.</p>
<p align="LEFT">Ajoutez la ligne suivante :</p>
<table width="100%" cellspacing="0" cellpadding="4">
<colgroup>
<col width="256*" /> </colgroup>
<tbody>
<tr>
<td valign="TOP" width="100%">
<p align="CENTER"><span style="color: #000000;"><em>$LOGFILE = &#8216;/var/log/amavis.log&#8217; ;</em></span></p>
</td>
</tr>
</tbody>
</table>
<p align="LEFT">Là, on dit à Amavis d&#8217;écrire dans le fichier « /var/log/amavis.log ».</p>
<p align="LEFT">C&#8217;est pas tout, il faut le créer ce fichier !</p>
<table width="100%" cellspacing="0" cellpadding="4">
<colgroup>
<col width="256*" /> </colgroup>
<tbody>
<tr>
<td valign="TOP" width="100%">
<p align="CENTER"><span style="color: #000000;"><em>touch /var/log/amavis.log</em></span></p>
</td>
</tr>
</tbody>
</table>
<p align="LEFT">Et il faut y mettre les droits. Alors n&#8217;ayant pas bien compris qui devait avoir les droits pour écrire dedans, j&#8217;ai défini les droits à 777</p>
<table width="100%" cellspacing="0" cellpadding="4">
<colgroup>
<col width="256*" /> </colgroup>
<tbody>
<tr>
<td valign="TOP" width="100%">
<p align="CENTER"><span style="color: #000000;"><em>chmod 777 /var/log/amavis.log</em></span></p>
</td>
</tr>
</tbody>
</table>
<p>&nbsp;</p>
<ul>
<li>
<p align="LEFT"><span style="text-decoration: underline;"><strong>Installation du plugin MailGraph</strong></span></p>
</li>
</ul>
<p align="LEFT">Positionnez vous dans le répertoire de l&#8217;utilisateur nagios pour faire ça propre et télécharger le plugin :</p>
<table width="100%" cellspacing="0" cellpadding="4">
<colgroup>
<col width="256*" /> </colgroup>
<tbody>
<tr>
<td valign="TOP" width="100%">
<p align="CENTER"><span style="color: #000000;"><em>wget http://www.linuxplayer.org/wp-content/uploads/2011/03/check_mailstat_plugin_v0.9.1.zip</em></span></p>
</td>
</tr>
</tbody>
</table>
<p align="LEFT">Décompressez le (installer « unzip ») :</p>
<table width="100%" cellspacing="0" cellpadding="4">
<colgroup>
<col width="256*" /> </colgroup>
<tbody>
<tr>
<td valign="TOP" width="100%">
<p align="CENTER"><span style="color: #000000;"><em>unzip check_mailstat_plugin_v0.9.1.zip</em></span></p>
</td>
</tr>
</tbody>
</table>
<p align="LEFT">Installez « patch » :</p>
<table width="100%" cellspacing="0" cellpadding="4">
<colgroup>
<col width="256*" /> </colgroup>
<tbody>
<tr>
<td valign="TOP" width="100%">
<p align="CENTER"><span style="color: #000000;"><em>apt-get install patch</em></span></p>
</td>
</tr>
</tbody>
</table>
<p align="LEFT">Rentrez dans le dossier du plugin :</p>
<table width="100%" cellspacing="0" cellpadding="4">
<colgroup>
<col width="256*" /> </colgroup>
<tbody>
<tr>
<td valign="TOP" width="100%">
<p align="CENTER"><span style="color: #000000;"><em>cd check_mailstat_plugin_v.0.9.1</em></span></p>
</td>
</tr>
</tbody>
</table>
<p align="LEFT">Et ensuite, patchez MailGraph :</p>
<table width="100%" cellspacing="0" cellpadding="4">
<colgroup>
<col width="256*" /> </colgroup>
<tbody>
<tr>
<td valign="TOP" width="100%">
<p align="CENTER"><span style="color: #000000;"><em>patch -b /usr/sbin/mailgraph mailgraph.patch</em></span></p>
</td>
</tr>
</tbody>
</table>
<p align="LEFT">Sur Ubuntu 11.10, la commande patch ne fonctionne pas, voici alors une archive avec le script patché sous Ubuntu 10.04 LTS qui est parfaitement fonctionnel. Nous y avons inclus les fichiers du dossier &laquo;&nbsp;/var/tmp&nbsp;&raquo; à copier également sur votre serveur en donnant les droits à l&#8217;utilisateur Nagios. <a href="http://infos-reseau.com/wp-content/uploads/2012/02/mailstat.zip" target="_blank">Télécharger</a></p>
<p align="LEFT">Ensuite, copiez le plugin « check_mailstat.pl » dans le répertoire des plugins « /usr/lib/nagios/plugins ».</p>
<table width="100%" cellspacing="0" cellpadding="4">
<colgroup>
<col width="256*" /> </colgroup>
<tbody>
<tr>
<td valign="TOP" width="100%">
<p align="CENTER"><span style="color: #000000;"><em>cp check_mailstat.pl /usr/lib/nagios/plugins</em></span></p>
</td>
</tr>
</tbody>
</table>
<p align="LEFT">Assurez-vous que l&#8217;utilisateur Nagios est le propriétaire du fichier et qu&#8217;il ait les droits. Si ce n&#8217;est pas le cas, tapez les commandes suivantes :</p>
<table width="100%" cellspacing="0" cellpadding="4">
<colgroup>
<col width="256*" /> </colgroup>
<tbody>
<tr>
<td valign="TOP" width="100%">
<p align="CENTER"><span style="color: #000000;"><em>chmod 775 check_mailstat.pl</em></span></p>
</td>
</tr>
<tr>
<td valign="TOP" width="100%">
<p align="CENTER"><span style="color: #000000;"><em>chown -R nagios:nagios check_mailstat.pl</em></span></p>
</td>
</tr>
</tbody>
</table>
<p align="LEFT">Ensuite, ouvrez le fichier /etc/nagios/nrpe.cfg et ajoutez la ligne suivante dans la liste des commandes (« COMMANDS DEFINITIONS ») :</p>
<table width="100%" cellspacing="0" cellpadding="4">
<colgroup>
<col width="256*" /> </colgroup>
<tbody>
<tr>
<td valign="TOP" width="100%">
<p align="CENTER"><span style="color: #000000;"><em>command[check_mailstat]=/usr/lib/nagios/plugins/check_mailstat.pl -w $ARG1$ -c $ARG2$</em></span></p>
</td>
</tr>
</tbody>
</table>
<p align="LEFT">Pour autoriser les arguments sur le serveur NRPE, éditez la ligne suivante :</p>
<table width="100%" cellspacing="0" cellpadding="4">
<colgroup>
<col width="256*" /> </colgroup>
<tbody>
<tr>
<td valign="TOP" width="100%">
<p align="CENTER"><span style="color: #000000;"><em>dont_blame_nrpe = 1</em></span></p>
</td>
</tr>
</tbody>
</table>
<p align="LEFT">Redémarrez NRPE :</p>
<table width="100%" cellspacing="0" cellpadding="4">
<colgroup>
<col width="256*" /> </colgroup>
<tbody>
<tr>
<td valign="TOP" width="100%" height="16">
<p style="text-align: center;"><span style="font-family: Liberation Serif,serif; color: #000000;"><em><strong>/</strong>etc<strong>/</strong>init.d<strong>/</strong>nagios-nrpe-server restart</em></span></p>
</td>
</tr>
</tbody>
</table>
<p align="LEFT"><span style="text-decoration: underline;"><strong>Test en local :</strong></span></p>
<p align="LEFT">Pour vérifier que le plugin fonction, placez-vous dans le répertoire des plugins (« /usr/lib/nagios/plugins ») et tapez la commande suivante :</p>
<table width="100%" cellspacing="0" cellpadding="4">
<colgroup>
<col width="256*" /> </colgroup>
<tbody>
<tr>
<td valign="TOP" width="100%">
<p align="CENTER"><span style="color: #000000;"><em>./check_mailstat.pl -h</em></span></p>
</td>
</tr>
</tbody>
</table>
<p align="LEFT">Cette commande doit vous renvoyez l&#8217;aide du plugin. Si c&#8217;est bien le cas, c&#8217;est que le plugin fonctionne et que vous avez bien mis les droits à l&#8217;utilisateur nagios sur le plugin.</p>
<p align="LEFT"><span style="text-decoration: underline;"><strong>Test sur le serveur de supervision :</strong></span></p>
<p align="LEFT">Positionnez vous sur dans le dossier des plugins de nagios (« /usr/lib/nagios/plugins ») :</p>
<table width="634" cellspacing="0" cellpadding="4">
<colgroup>
<col width="256*" /> </colgroup>
<tbody>
<tr>
<td valign="TOP" width="100%">
<p style="text-align: center;" align="CENTER"><span style="font-family: Liberation Serif,serif; color: #000000;"><span style="font-size: small;"><em>./check_nrpe -H </em><em>serveur_mail</em><em> -c check_mailstat -a 40:0:0:0:0:0 50:0:0:0:0:0</em></span></span></p>
</td>
</tr>
</tbody>
</table>
<p align="LEFT">Explication des arguments :</p>
<p align="LEFT">Dans le fichier nrpe.cfg, la commande que nous avons ajouté permet d&#8217;indiquer le seuil de warning (l&#8217;option -w) et le seuil critical (l&#8217;option -c). Et l&#8217;argument qui suit les options correspondent au seuil appliquer aux différents types d&#8217;e-mails séparés par « : ». Dans l&#8217;ordre, voici les types de faire qui correspond : Envoi:Réception:Notification :Rejeté:Virus:Spam, à vous de personnaliser les arguments !</p>
<ul>
<li>
<p align="LEFT"><span style="text-decoration: underline;"><strong>Configuration sur Centreon :</strong></span></p>
</li>
</ul>
<p align="LEFT">Commençons par créer la commande sur Centreon, rien de plus simple : « <em>Configuration → Commandes → Ajouter</em> » et remplissez les champs suivants :</p>
<p align="LEFT"><em>→</em> Nom de la commande : mettez « check_nrpe_mailstat » par exemple.</p>
<p align="LEFT"><em>→</em> Ligne de commande :</p>
<table width="739" cellspacing="0" cellpadding="4">
<colgroup>
<col width="256*" /> </colgroup>
<tbody>
<tr>
<td valign="TOP" width="100%">
<p align="CENTER"><span style="color: #000000;">$USER1$/chec<em>k_nrpe -H $HOSTADDRESS$ -c check_mailstat -a $ARG1$ $ARG2$</em></span></p>
</td>
</tr>
</tbody>
</table>
<p align="LEFT">Ensuite , sauvegardez !</p>
<p align="LEFT">Maintenant, nous allons voir comment créé un modèle de service. Mais qu&#8217;est ce que c&#8217;est ? Cela permet de configurer un service à part entière (la commande à utiliser, les notifications , etc&#8230;) et ça permet d&#8217;effectuer cette opération qu&#8217;une seule fois. Après on a juste à créé le service et de sélectionner le modèle et c&#8217;est fini !</p>
<p align="LEFT">Pour cela, direction : « <em>Configuration → Services → Modèles → Ajouter</em> » et vous obtenez une page identique à celle d&#8217;une page de configuration d&#8217;un service. Remplissez les champs :</p>
<p align="LEFT"><em>→</em> ALIAS : mettez par exemple « NRPE-MAILSTAT »</p>
<p align="LEFT"><em>→</em> Nom du modèle de service : mettez y par exemple « NRPE-MAILSTAT »</p>
<p align="LEFT"><em>→</em> Commande de vérification : Dans la liste dé-roulante, choisissez « check_nrpe_mailstat »</p>
<p align="LEFT"><em>→</em>Modèles de service : Sélectionnez &laquo;&nbsp;generic-service&nbsp;&raquo;</p>
<p align="LEFT">Et remplissez les autres champs selon vos besoins, puis sauvegardez.</p>
<p align="LEFT">Il faut maintenant créer le service : « Configuration → Services → Ajouter », ensuite remplissez les champs :</p>
<p align="LEFT"><em>→</em>Description : à vous de choisir !</p>
<p align="LEFT"><em>→</em>Modèle de service : choisissez le modèle que l&#8217;on vient de créer !</p>
<p align="LEFT"><em>→</em>Arguments : saisissez les deux chaînes en mettant un « ! » devant chacune d&#8217;elle comme suit :</p>
<blockquote>
<p align="CENTER">!40:0:0:0:0:0!50:0:0:0:0:0</p>
</blockquote>
<p align="LEFT">Allez dans l&#8217;onglet « Relations » pour associer ce service à un ou plusieurs serveurs.</p>
<ul>
<li>
<p align="LEFT"><span style="text-decoration: underline;"><strong>Création des graphiques</strong></span></p>
</li>
</ul>
<p align="LEFT">Le plugin de mailgraph envoie bien des informations mais nous aimerions avoir de jolies graphiques pour suivre l&#8217;évolution de l&#8217;activité des e-mails !</p>
<p align="LEFT">Pour cela, allez dans le menu « Vues → Graphiques → Modèles », sélectionnez « Default_Graph », ensuite dupliquez le, puis renommez le en MailStat et mettre « Label Vertical » à Nombre ! Sauvegardez.</p>
<p align="LEFT">Là, nous avons créés un type de graphique, en quelque sorte. Il faut y ajouter les courbes pour chaque type de valeur !</p>
<p align="LEFT">Pour cela, allez dans le menu « Vues → Graphiques → Courbes → Ajouter » et remplissez les champs suivants :</p>
<p align="LEFT"><em>→</em>Nom du Modèle de courbe : « MailStat-sent »</p>
<p align="LEFT"><em>→</em>Nom de la source de données : « sent »</p>
<p align="LEFT"><em>→</em>Pour faire afficher les valeur maximun, minimun, la moyenne et la dernière valeur, cochez les cases correspondantes.</p>
<p align="LEFT">Puis sauvegardez. Ensuite dupliquez la courbe que vous venez de créer et remplacer « sent » (dans le nom du modèle et de la source) par « received », dupliquez, remplacez par « bounced », puis dupliquez et remplacez par « rejected » etc&#8230; (virus, spam).</p>
<p align="LEFT">Une fois les modèles de courbe créés, une petit modification dans le fichier du plugin est à faire. Cette modification est proposé par Pierre-Yves DUBREUCQ du site <a title="blog.admin-linux.org" href="http://blog.admin-linux.org" target="_blank">blog.admin-linux.org</a> . Ouvrez le fichier « check_mailstat.pl » et remplacez la ligne 97 :</p>
<table width="100%" cellspacing="0" cellpadding="4">
<colgroup>
<col width="256*" /> </colgroup>
<tbody>
<tr>
<td valign="TOP" width="100%">
<pre><span style="font-family: monospace;"><span style="font-size: x-small;"><span style="color: #b1b100;">my</span> <span style="color: #0000ff;">$perfdata</span> <span style="color: #339933;">=</span> <span style="color: #000066;">sprintf</span> <span style="color: #ff0000;">"sent=%-6.2f received=%-6.2f bounced=%-6.2f rejected=%-6.2f virus=%-6.2f spam=%-6.2f"</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">@stat_counter</span><span style="color: #339933;">;</span></span></span></pre>
</td>
</tr>
</tbody>
</table>
<p align="LEFT">Par la ligne suivante :</p>
<table width="651" cellspacing="0" cellpadding="4">
<colgroup>
<col width="256*" /> </colgroup>
<tbody>
<tr>
<td valign="TOP" width="100%">
<pre><span style="color: #b1b100;"><span style="font-family: monospace;">my</span></span><span style="color: #0000ff;"><span style="font-family: monospace;">$perfdata</span></span><span style="color: #339933;"><span style="font-family: monospace;">=</span></span><span style="color: #000066;"><span style="font-family: monospace;">sprintf</span></span><span style="color: #ff0000;"><span style="font-family: monospace;">"sent=%-6.2f;received=%-6.2f;bounced=%-6.2f;rejected=%-6.2f;virus=%-6.2f;spam=%-6.2f"</span></span><span style="color: #339933;"><span style="font-family: monospace;">,</span></span><span style="color: #0000ff;"><span style="font-family: monospace;">@stat_counter</span></span><span style="color: #339933;"><span style="font-family: monospace;">;</span></span></pre>
</td>
</tr>
</tbody>
</table>
<p align="LEFT">Les points virgules rajoutés ici sont nécessaire au traitement des données par Centreon.</p>
<p align="LEFT">Ce n&#8217;est pas encore tout à fait terminer, retournez dans « <em>Configuration → Commandes </em>», éditez la commande que nous avions créée tout à l&#8217;heure et pour le paramètre « Modèle Graphique », choisissez « MailStat ». Sauvegardez et exportez la configuration sur Nagios et vous devriez avoir un graphique pour le service mailstat.</p>
<ul>
<li>
<p align="LEFT"><span style="text-decoration: underline;"><strong>Ajout d&#8217;un second service Postfix sur Centreon :</strong></span></p>
</li>
</ul>
<p>Lors de la mis en place d&#8217;un second service Postfix sur centreon en utilisant les modèles de service et de graphique, nous obtenions des graphiques complètement incohérent avec l&#8217;activité réelle du serveur Postfix concerné. N&#8217;ayant pas tout à fait compris d&#8217;où venait ce problème pour le moins curieux, nous avons tout de même réussi à le résoudre et je vais vous indiquer comment procéder en quelques points:</p>
<p><em>→</em> Le premier est de supprimer le second service Postfix de centreon si vous l&#8217;aviez créé et qu&#8217;il ne fonctionne pas correctement.</p>
<p><em>→</em> Le second est de créer un modèle de graphique par commande, inutile de dupliquer les courbes, tout les modèles de graphiques utiliseront les mêmes.</p>
<p><em>→</em> Le troisième point est de créer une commande par service en y indiquant le modèle de graphique à utiliser !</p>
<p><em>→</em> Dernier point, n&#8217;utilisez pas le modèle de service lorsque vous ajoutez votre service à centreon.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://infos-reseau.com/nagioscentreon-superviser-postfix-avec-mailgraph/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

