<?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>Hypervisor.fr &#187; nagios</title>
	<atom:link href="http://www.hypervisor.fr/?feed=rss2&#038;tag=nagios" rel="self" type="application/rss+xml" />
	<link>http://www.hypervisor.fr</link>
	<description>French Bare-Metal weblog</description>
	<lastBuildDate>Wed, 26 Jun 2024 22:42:28 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>check_esx3 devient check_vmware_api</title>
		<link>http://www.hypervisor.fr/?p=3896</link>
		<comments>http://www.hypervisor.fr/?p=3896#comments</comments>
		<pubDate>Tue, 03 Jul 2012 14:46:47 +0000</pubDate>
		<dc:creator>NiTRo</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[cacti]]></category>
		<category><![CDATA[cluster]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[nagios]]></category>
		<category><![CDATA[rrdtool]]></category>
		<category><![CDATA[vpx]]></category>

		<guid isPermaLink="false">http://www.hypervisor.fr/?p=3896</guid>
		<description><![CDATA[Il fallait bien que ça arrive, check_esx3 ça commençait à faire vieillot, limite vintage. Alors que nous nous étions tourné vers une solution alternative, nous revenons de nouveau vers ce plugin nagios qui commence à compter quelques sérieux contributeurs et nous nous sommes retroussé les manches (très haut car en perl on y connait rien&#8230;) pour ajouter quelques features et faire un plugin [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Il fallait bien que ça arrive, check_esx3 ça commençait à faire vieillot, limite vintage. Alors que <a href="http://www.hypervisor.fr/?p=3361" target="_blank">nous nous étions tourné vers une solution alternative</a>, nous revenons de nouveau vers ce plugin nagios qui commence à compter quelques sérieux contributeurs <a href="http://git.op5.org/git/?p=nagios/op5plugins.git;a=commit;h=cfcded67250c47a8ae3cef61a7471f262e2c733d" target="_blank">et nous nous sommes retroussé les manches</a> (très haut car en perl on y connait rien&#8230;) pour <strong>ajouter quelques features et faire un plugin cacti qui ne nécessite plus de créer un device par cluster</strong>.</p>
<p style="text-align: justify;">Nous avons donc fait 2 fichiers xml (<strong>check_vmware_cluster.xml</strong> et <strong>check_vmware_datastore.xml</strong> à copier dans resource/script_queries) pour la partie &#8220;data queries&#8221; et un script bash (<strong>check_esx3_helper.sh</strong> à copier dans scripts) pour faire l&#8217;intermédiaire entre cacti et le script <a href="http://git.op5.org/git/?p=nagios/op5plugins.git;a=blob_plain;f=check_vmware_api.pl" target="_blank"><strong>check_vmware_api.pl</strong></a> (à copier dans scripts).</p>
<p style="text-align: justify;"><strong>Selon la version de votre vCenter, il est possible que vous ayez à tuner la variable $vi_timeshift</strong> dans check_esx3_helper.sh (il nous a fallu parfois jongler entre 300 et 600) à cause d&#8217;un bug vmware.</p>
<p style="text-align: center;"><a href="http://files.hypervisor.fr/img/check_vmware_api/vc_perf_bug.png" target="_blank"><img class="aligncenter" src="http://files.hypervisor.fr/img/check_vmware_api/vc_perf_bug.png" alt="" width="339" height="215" /></a></p>
<p style="text-align: justify;">Une fois les fichiers copiés, il faut importer les templates (<strong>cacti_data_query_vmware_vpx_-_cluster_usage.xml</strong> et <strong>cacti_data_query_vmware_vpx_-_vmfs_usage.xml</strong>) dans cacti et les associer à votre vCenter :</p>
<p style="text-align: center;"><a href="http://files.hypervisor.fr/img/check_vmware_api/cacti_host_view.png" target="_blank"><img class="aligncenter" src="http://files.hypervisor.fr/img/check_vmware_api/cacti_host_view.png" alt="" width="385" height="32" /></a></p>
<p style="text-align: left;">Nous avons utilisé les credentials snmp v3 pour éviter de mettre un login/password dans les scripts donc si vous utiliser snmp sur votre vCenter, créez un compte équivalent ou créez un device dédié.</p>
<p style="text-align: center;"><a href="http://files.hypervisor.fr/img/check_vmware_api/cacti_snmp_view.png" target="_blank"><img class="aligncenter" src="http://files.hypervisor.fr/img/check_vmware_api/cacti_snmp_view.png" alt="" width="197" height="50" /></a></p>
<p style="text-align: justify;"><span style="color: #ff6600;">En ce qui concerne <strong>l&#8217;autentification</strong>, le fichier de session <strong>/tmp/check_esx3_session.dat</strong>, généré <strong>automatiquement</strong>, évite les <strong>logon/logoff</strong> à répétition et soulage le proxy mob.</span></p>
<p style="text-align: left;">Il ne vous reste plus qu&#8217;à <strong>choisir les clusters et les datastores que vous voulez monitorer</strong> (la dénomination VMFS est uniquement cosmétique, les datastores NFS sont évidement supportés) :</p>
<p style="text-align: center;"><a href="http://files.hypervisor.fr/img/check_vmware_api/cacti_graph_view.png" target="_blank"><img class="aligncenter" src="http://files.hypervisor.fr/img/check_vmware_api/cacti_graph_view.png" alt="" width="385" height="148" /></a></p>
<p style="text-align: left;">Vous pouvez ensuite regrouper vos graph par cluster :</p>
<p style="text-align: center;"><a href="http://files.hypervisor.fr/img/check_vmware_api/cacti_cluster_view.png" target="_blank"><img class="aligncenter" src="http://files.hypervisor.fr/img/check_vmware_api/cacti_cluster_view.png" alt="" width="449" height="353" /></a></p>
<p style="text-align: left;">Les graph on une fonction de remplissage automatique qui reprend la dernière bonne valeur connue pour éviter les vilains trous qui ne plaisent pas aux managers&#8230;</p>
<div class="wp-caption aligncenter" style="width: 110px"><a href="http://files.hypervisor.fr/scripts/check_vmware_api.zip"><img class="     " title="check_vmware_api" src="http://files.hypervisor.fr/img/super_mario_piranha_plant.png" alt="" width="100" height="100" /></a><p class="wp-caption-text">vi_host package</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.hypervisor.fr/?feed=rss2&amp;p=3896</wfw:commentRss>
		<slash:comments>73</slash:comments>
		</item>
		<item>
		<title>Monitoring de cluster VMware dans cacti</title>
		<link>http://www.hypervisor.fr/?p=3361</link>
		<comments>http://www.hypervisor.fr/?p=3361#comments</comments>
		<pubDate>Mon, 03 Oct 2011 17:55:47 +0000</pubDate>
		<dc:creator>NiTRo</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[cacti]]></category>
		<category><![CDATA[monitoring]]></category>
		<category><![CDATA[MRTG]]></category>
		<category><![CDATA[nagios]]></category>

		<guid isPermaLink="false">http://www.hypervisor.fr/?p=3361</guid>
		<description><![CDATA[MAJ 03/07/2012 : Un nouveau plugin est disponible
Chez nous, à Hypervisor.fr, cacti c&#8217;est une grande passion ! Il y a presque 3 ans, quelques mois après la GA d&#8217;ESXi 3.5 (aka ESX 3i), nous avions publié un template cacti basé sur le fameux script check_esx3. Il permettait à l&#8217;époque de s&#8217;affranchir de SNMP, grand absent d&#8217;ESX 3i. Malheureusement [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><em><strong><span style="color: #ff0000;">MAJ 03/07/2012</span> : <a href="http://www.hypervisor.fr/?p=3896" target="_blank">Un nouveau plugin est disponible</a></strong></em></p>
<p style="text-align: justify;">Chez nous, à Hypervisor.fr, cacti c&#8217;est une grande passion ! <a href="http://www.hypervisor.fr/?p=424" target="_blank">Il y a presque 3 ans, quelques mois après la GA d&#8217;ESXi 3.5 (aka ESX 3i), nous avions publié un template cacti basé sur le fameux script check_esx3</a>. Il permettait à l&#8217;époque de s&#8217;affranchir de SNMP, grand absent d&#8217;ESX 3i. Malheureusement ce script est très coûteux en ressources cpu et pouvait faire augmenter significativement le temps de polling de cacti si vous aviez de nombreux check à effectuer.</p>
<p style="text-align: justify;">Il y a peu de temps, nous avons découvert <a href="http://www.steveshipway.org/forum/viewtopic.php?f=35&amp;t=1648" target="_blank">check_vmware, une alternative (utilisable avec NAGIOS et MRTG) nettement plus efficace, developée par Steve Shipway</a>. Cela nous a permis de finaliser notre template de monitoring de cluster et de dépoussiérer notre vieux template d&#8217;ESX.</p>
<p style="text-align: justify;">Pour les utiliser, il vous faudra bien évidement le <a href="http://communities.vmware.com/community/vmtn/developer/forums/vsphere_sdk_perl" target="_blank">package vSphere SDK for Perl (aka vi perl toolkit)</a>, le script check_vmware.pl placé dans le répertoire &#8221;scripts&#8221; de cacti, des scripts fournis dans notre package placés dans le même répertoire et du template xml à importer dans cacti. Le chemin d’accès au répertoire &#8220;scripts&#8221; est &#8220;/var/www/cacti/scripts&#8221; mais peut être changé dans les scripts.</p>
<p style="text-align: justify;">Voici le rendu du <strong>template de cluster</strong>, suivit du lien pour le télécharger (gratuitement &amp; légalement, vous n&#8217;aurez par de problème avec l&#8217;HADOPI) :</p>
<p style="text-align: center;"><a href="http://files.hypervisor.fr/img/vi_cluster_cpu.png" target="_blank"><img class="aligncenter" src="http://files.hypervisor.fr/img/vi_cluster_cpu.png" alt="" width="422" height="163" /></a></p>
<p style="text-align: center;"><a href="http://files.hypervisor.fr/img/vi_cluster_mem.png" target="_blank"><img class="aligncenter" src="http://files.hypervisor.fr/img/vi_cluster_mem.png" alt="" width="422" height="144" /></a></p>
<p style="text-align: center;"><a href="http://files.hypervisor.fr/img/vi_cluster_net.png" target="_blank"><img class="aligncenter" src="http://files.hypervisor.fr/img/vi_cluster_net.png" alt="" width="422" height="163" /></a></p>
<p style="text-align: center;"><a href="http://files.hypervisor.fr/img/vi_cluster_vm.png" target="_blank"><img class="aligncenter" src="http://files.hypervisor.fr/img/vi_cluster_vm.png" alt="" width="422" height="163" /></a></p>
<div class="wp-caption aligncenter" style="width: 110px"><a href="http://files.hypervisor.fr/scripts/vi_cluster.zip"><img class=" " title="vi_cluster package" src="http://files.hypervisor.fr/img/super_mario_piranha_plant.png" alt="" width="100" height="100" /></a><p class="wp-caption-text">vi_cluster package</p></div>
<p>Et voici le rendu du <strong>template host</strong>, suivit du lien pour le télécharger :</p>
<p style="text-align: center;"><a href="http://files.hypervisor.fr/img/vi_host_cpu.png" target="_blank"><img class="aligncenter" src="http://files.hypervisor.fr/img/vi_host_cpu.png" alt="" width="422" height="163" /></a></p>
<p style="text-align: center;">
<p style="text-align: center;"><a href="http://files.hypervisor.fr/img/vi_host_mem.png" target="_blank"><img class="aligncenter" src="http://files.hypervisor.fr/img/vi_host_mem.png" alt="" width="422" height="163" /></a></p>
<p style="text-align: center;"><a href="http://files.hypervisor.fr/img/vi_host_net.png" target="_blank"><img class="aligncenter" src="http://files.hypervisor.fr/img/vi_host_net.png" alt="" width="422" height="163" /></a></p>
<p style="text-align: center;"><a href="http://files.hypervisor.fr/img/vi_host_vmfs.png" target="_blank"><img class="aligncenter" src="http://files.hypervisor.fr/img/vi_host_vmfs.png" alt="" width="422" height="163" /></a></p>
<div class="wp-caption aligncenter" style="width: 110px"><a href="http://files.hypervisor.fr/scripts/vi_host.zip"><img class="     " title="vi_host package" src="http://files.hypervisor.fr/img/super_mario_piranha_plant.png" alt="" width="100" height="100" /></a><p class="wp-caption-text">vi_host package</p></div>
<p>Happy monitoring !</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hypervisor.fr/?feed=rss2&amp;p=3361</wfw:commentRss>
		<slash:comments>71</slash:comments>
		</item>
	</channel>
</rss>
