<?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; cacti</title>
	<atom:link href="http://www.hypervisor.fr/?feed=rss2&#038;tag=cacti" 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>Monitor, like a boss.</title>
		<link>http://www.hypervisor.fr/?p=5604</link>
		<comments>http://www.hypervisor.fr/?p=5604#comments</comments>
		<pubDate>Thu, 22 Oct 2015 19:34:43 +0000</pubDate>
		<dc:creator>NiTRo</dc:creator>
				<category><![CDATA[Performance]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[VSAN]]></category>
		<category><![CDATA[ZFS]]></category>
		<category><![CDATA[cacti]]></category>
		<category><![CDATA[carbon]]></category>
		<category><![CDATA[grafana]]></category>
		<category><![CDATA[graphite]]></category>
		<category><![CDATA[monitoring]]></category>

		<guid isPermaLink="false">http://www.hypervisor.fr/?p=5604</guid>
		<description><![CDATA[Si comme nous, vous cherchiez une solution de monitoring cluster centric, ne cherchez plus. Nous l&#8217;avons faites pour vous :

Très loin des dashboard cacti fastidieux à réaliser et limités en scalabilité, nous avons voulu une appliance la simple possible : deploy, add vcenter, relax!

]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Si comme nous, vous cherchiez une solution de monitoring cluster centric, ne cherchez plus. <strong><a href="http://www.sexigraf.fr/" target="_blank">Nous l&#8217;avons faites pour vous</a> </strong>:</p>
<p style="text-align: center;"><a href="http://www.sexigraf.fr/"><img class=" aligncenter" title="Enter SexiGraf" src="http://files.hypervisor.fr/img/SexiGraf_Enter.png" alt="" width="521" height="353" /></a></p>
<p style="text-align: justify;">Très loin <a href="https://github.com/rschitz/vCacti" target="_blank">des dashboard cacti fastidieux à réaliser et limités en scalabilité</a>, nous avons voulu une appliance la simple possible : <strong>deploy</strong>, <strong>add vcenter</strong>, <strong>relax</strong>!</p>
<p style="text-align: center;"><a href="http://files.sexigraf.fr/seximeetup/sexigraf/"><img class="aligncenter" src="http://files.sexigraf.fr/seximeetup/sexigraf/img/hannibal.png" alt="" width="359" height="443" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.hypervisor.fr/?feed=rss2&amp;p=5604</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>Purple Screen on Demand &#8211; MAJ</title>
		<link>http://www.hypervisor.fr/?p=5244</link>
		<comments>http://www.hypervisor.fr/?p=5244#comments</comments>
		<pubDate>Tue, 15 Jul 2014 16:41:30 +0000</pubDate>
		<dc:creator>NiTRo</dc:creator>
				<category><![CDATA[Kb]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[cacti]]></category>
		<category><![CDATA[crash]]></category>
		<category><![CDATA[dump]]></category>
		<category><![CDATA[PSOD]]></category>

		<guid isPermaLink="false">http://www.hypervisor.fr/?p=5244</guid>
		<description><![CDATA[MAJ 19/10/2014 : Le patch ESXi550-201410001 règle le problème sans un mot dans les release notes ni les fixed PRs
MAJ 30/07/2014 : VMware vient de nous informer de la prise en compte du bug (PR 1286205) et que le correctif sera dispo Q4 2014 dans le patch 3 d&#8217;ESXi 5.5 :
Customer observed ESXi PSOD when [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;"><em><span style="color: #ff0000;">MAJ 19/10/2014</span> : <a href="http://kb.vmware.com/kb/2087358" target="_blank">Le patch ESXi550-201410001</a> règle le problème sans un mot dans les release notes ni les fixed PRs</em></p>
<p style="text-align: justify;"><em><span style="color: #ff0000;">MAJ 30/07/2014</span> : VMware vient de nous informer de la prise en compte du bug (PR 1286205) et que le correctif sera dispo Q4 2014 dans le patch 3 d&#8217;ESXi 5.5 :</em></p>
<blockquote><p>Customer observed ESXi PSOD when polling IP-MIB. snmpd calling NetVsi_TcpipSysctlGet</p></blockquote>
<p style="text-align: justify;">Hormis <a href="http://www.ntpro.nl/blog/archives/1388-Lets-create-some-Kernel-Panic-using-vsish.html" target="_blank">la fameuse commande crashMe de vsish</a>, il est généralement très difficile de reproduire un PSOD à la demande. Pourtant, nous avons trouvé un cas assez violent où l&#8217;utilisation de SNMPv3 via cacti fait crasher l&#8217;ESX de façon systématique et ce sur toutes les version depuis la 5.1 :</p>
<p style="text-align: center;"><a href="https://twitter.com/hypervisor_fr/status/487900396158214144"><img class="aligncenter" src="http://files.hypervisor.fr/img/PSoD.png" alt="" width="472" height="416" /></a></p>
<p style="text-align: justify;">Evidemment, VMware est sur le coup. Pour info, nous avons utilisé <a href="http://blogs.vmware.com/vsphere/2012/11/configuring-snmp-v1v2cv3-using-esxcli-5-1.html" target="_blank">le &#8220;walk through&#8221; de William pour la configuration</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hypervisor.fr/?feed=rss2&amp;p=5244</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RasNTP : du Stratum 1 dans votre homelab</title>
		<link>http://www.hypervisor.fr/?p=4668</link>
		<comments>http://www.hypervisor.fr/?p=4668#comments</comments>
		<pubDate>Mon, 15 Apr 2013 07:12:40 +0000</pubDate>
		<dc:creator>NiTRo</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Test]]></category>
		<category><![CDATA[cacti]]></category>
		<category><![CDATA[GPS]]></category>
		<category><![CDATA[NTP]]></category>
		<category><![CDATA[RaspberryPi]]></category>

		<guid isPermaLink="false">http://www.hypervisor.fr/?p=4668</guid>
		<description><![CDATA[Comme tout bon geek, nous avons succombé à la tentation du Rasberry Pi et, comme beaucoup, bien avant de savoir quoi en faire. Après avoir passé la période Raspbmc, GPIO et même 100% wireless, nous ne trouvions pas d&#8217;usage &#8220;définitif&#8221; pour notre petite e-framboise, jusqu&#8217;à ce que nous rencontrions un gros  problème de NTP sur notre [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Comme tout bon geek, nous avons succombé à la tentation du <a href="http://www.kubii.fr/" target="_blank">Rasberry Pi</a> et, comme beaucoup, bien avant de savoir quoi en faire. Après avoir passé la période <a href="http://www.raspbmc.com/" target="_blank">Raspbmc</a>, <a href="http://www.piborg.com/ledborg" target="_blank">GPIO</a> et même <a href="https://twitter.com/hypervisor_fr/status/293042037643694081" target="_blank">100% wireless</a>, nous ne trouvions pas d&#8217;usage &#8220;définitif&#8221; pour notre petite e-framboise, jusqu&#8217;à ce que nous rencontrions un gros  problème de NTP sur notre homelab.</p>
<p style="text-align: center;"><img class="aligncenter" src="http://files.hypervisor.fr/img/RasNTP/RaspiModelB_small.png" alt="" width="402" height="295" /></p>
<div style="text-align: justify;">En effet, dans notre lab, c&#8217;est une vm sous <a href="http://www.pfsense.org/" target="_blank">pfSense</a> qui fait office de routeur/firewall/proxy/ntp pour tous les vlan ce qui signifie que sans cette vm, pas de source de temps &#8220;fiable&#8221;. Lors d&#8217;une opération de re-câblage et dépoussiérage général, nous avons dû débrancher tout le matériel et donc le redémarrer un peu plus tard from scratch. Lorsque nous avions fini de redémarrer toute les vm, nous nous sommes aperçu que certaines étaient décalées d&#8217;une heure en raison d&#8217;un bios d&#8217;ESX mal configuré cumulé à un accès tardif à internet. Evidement 1h ce n&#8217;est pas bon du tout pour un domaine AD et tout ce qui en dépend, il nous fallait donc <strong>une solution qui ne soit pas une vm, qui soit autonome, qui ne consomme que très peu d&#8217;énergie pour tourner 24/7 et qui n&#8217;ait pas besoin d&#8217;un accès à internet pour être une source de temps fiable</strong>. Combiné à une vieille balise GPS usb qui traînait dans un tiroir, notre Rasperberry Pi allait enfin avoir un but dans la vie : <a href="http://en.wikipedia.org/wiki/Network_Time_Protocol#Clock_strata" target="_blank">un serveur <strong>NTP Stratum 1</strong></a> !</div>
<div style="text-align: justify;">Vous l&#8217;ignorez peut être mais le <a href="http://en.wikipedia.org/wiki/Global_Positioning_System" target="_blank">GPS est une source de temps très fiable, précise et redondante</a> :</div>
<blockquote>
<div style="text-align: justify;">The Global Positioning System (GPS) is a space-based satellite navigation system that provides location and <strong>time information</strong> in all weather conditions, anywhere on or near the Earth where there is an unobstructed line of sight to four or more GPS satellites.</div>
<div style="text-align: justify;">[...]</div>
<div style="text-align: justify;"><strong>About nine satellites are visible from any point on the ground at any one time, ensuring considerable redundancy over the minimum four satellites needed for a position</strong>.</div>
<div style="text-align: justify;">[...]</div>
<div style="text-align: justify;"><strong>GPS time is theoretically accurate to about 14 nanoseconds</strong>. However, most receivers lose accuracy in the interpretation of the signals and are only accurate to 100 nanoseconds</div>
</blockquote>
<p>C&#8217;est <a href="http://blog.retep.org/2012/06/18/getting-gps-to-work-on-a-raspberry-pi/" target="_blank">sur le blog de Peter Mount que nous avons pu trouver un howto des plus simples</a> au quel nous avons ajouté un dongle wifi usb :</p>
<p style="text-align: center;"><a href="http://files.hypervisor.fr/img/RasNTP/IMG_4858_s.jpg" target="_blank"><img class="aligncenter" src="http://files.hypervisor.fr/img/RasNTP/IMG_4858_s.jpg" alt="" width="522" height="392" /></a></p>
<p style="text-align: left;">Le tout monitoré grâce à <a href="http://docs.cacti.net/usertemplate:graph:ntp" target="_blank">un template cacti</a> :</p>
<p style="text-align: center;"><img class="aligncenter" src="http://files.hypervisor.fr/img/RasNTP/RasNTP_cacti.png" alt="" width="482" height="209" /></p>
<p style="text-align: left;">Et en prime, un module <strong><a href="http://www.piborg.com/ledborg/install" target="_blank">GPIO LedBorg RGB</a></strong> pour savoir de visu si la source GPS du serveur NTP est ok :</p>
<p style="text-align: center;"><a href="http://files.hypervisor.fr/img/RasNTP/IMG_5043_s.jpg" title="OK" rel="lightbox[4668]"><img class="alignnone size-thumbnail wp-image-4673" title="OK" src="http://www.hypervisor.fr/wp-content/uploads/2013/04/IMG_5043_s-150x150.jpg" alt="" width="150" height="150" /></a> <a href="http://files.hypervisor.fr/img/RasNTP/IMG_5045_s.jpg" title="KO" rel="lightbox[4668]"><img class="alignnone size-thumbnail wp-image-4674" title="KO" src="http://www.hypervisor.fr/wp-content/uploads/2013/04/IMG_5045_s-150x150.jpg" alt="" width="150" height="150" /></a></p>
<p style="text-align: left;">Enfin, pour les fanatiques de la précision, il y a <a href="http://www.satsignal.eu/ntp/Raspberry-Pi-NTP.html" target="_blank">le GPS/PPS sur Raspberry Pi</a> détaillé par <a href="https://twitter.com/gm8arv" target="_blank">David Taylor</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hypervisor.fr/?feed=rss2&amp;p=4668</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Templates ZFS pour cacti</title>
		<link>http://www.hypervisor.fr/?p=4010</link>
		<comments>http://www.hypervisor.fr/?p=4010#comments</comments>
		<pubDate>Thu, 02 Aug 2012 17:36:40 +0000</pubDate>
		<dc:creator>NiTRo</dc:creator>
				<category><![CDATA[Performance]]></category>
		<category><![CDATA[ZFS]]></category>
		<category><![CDATA[cacti]]></category>

		<guid isPermaLink="false">http://www.hypervisor.fr/?p=4010</guid>
		<description><![CDATA[Nous avons enfin terminé le fignolage des tous les graphs cacti dont nous nous servons pour la supervision de nos appliances Nexenta, il était donc temps d&#8217;en faire profiter la communauté !
Tout comme pour notre post sur le monitoring smart, le tout se fait uniquement dans le fichier snmpd.conf sans script annexe. Pour rappel, l’édition de la config snmp sous [...]]]></description>
			<content:encoded><![CDATA[<p style="text-align: justify;">Nous avons enfin terminé le fignolage des tous les graphs cacti dont nous nous servons pour la supervision de nos appliances Nexenta, il était donc temps d&#8217;en faire profiter la communauté !</p>
<p style="text-align: justify;">Tout comme pour <a href="http://www.hypervisor.fr/?p=3335" target="_blank">notre post sur le monitoring smart</a>, le tout se fait uniquement dans le fichier snmpd.conf sans script annexe. Pour rappel, l’édition de la config snmp sous nexenta se fait via la nmc avec la commande suivante :</p>
<pre class="brush: bash; title: ; notranslate">setup network service snmp-agent edit-settings snmpd.conf</pre>
<p>Pour chaque graphique, il faudra ajouter une ou plusieurs lignes à la config snmp et importer le template dans cacti.</p>
<p style="text-align: center;"><a href="http://files.hypervisor.fr/img/zfs/zfs_arc_usage.png" target="_blank"><img class="aligncenter" src="http://files.hypervisor.fr/img/zfs/zfs_arc_usage.png" alt="" width="482" height="231" /></a></p>
<pre class="brush: bash; title: ; notranslate">extend .1.3.6.1.4.1.2021.85 arc_meta_max /bin/bash -c &quot;echo ::arc | mdb -k| grep arc_meta_max|tr -cd '[:digit:]'&quot;
extend .1.3.6.1.4.1.2021.85 arc_meta_used /bin/bash -c &quot;echo ::arc | mdb -k| grep arc_meta_used|tr -cd '[:digit:]'&quot;
extend .1.3.6.1.4.1.2021.85 arc_size /bin/bash -c &quot;echo ::arc | mdb -k| grep -w size|tr -cd '[:digit:]'&quot;
extend .1.3.6.1.4.1.2021.85 arc_meta_limit /bin/bash -c &quot;echo ::arc | mdb -k| grep arc_meta_limit|tr -cd '[:digit:]'&quot;
extend .1.3.6.1.4.1.2021.85 arc_meta_c_max /bin/bash -c &quot;echo ::arc | mdb -k| grep c_max|tr -cd '[:digit:]'&quot;</pre>
<p>Graph template à importer dans cacti : <a href="http://files.hypervisor.fr/scripts/cacti_graph_template_zfs_-_arc_usage.xml" target="_blank">ZFS &#8211; ARC Usage</a></p>
<p style="text-align: center;"><a href="http://files.hypervisor.fr/img/zfs/zfs_arc_stats.png" target="_blank"><img class="aligncenter" src="http://files.hypervisor.fr/img/zfs/zfs_arc_stats.png" alt="" width="482" height="175" /></a></p>
<pre class="brush: bash; title: ; notranslate">extend .1.3.6.1.4.1.2021.89 arc_hits /bin/bash -c &quot;kstat -p ::arcstats:hits| cut -s -f 2&quot;
extend .1.3.6.1.4.1.2021.89 arc_misses /bin/bash -c &quot;kstat -p ::arcstats:misses| cut -s -f 2&quot;</pre>
<p>Graph template à importer dans cacti : <a href="http://files.hypervisor.fr/scripts/cacti_graph_template_zfs_-_arc_stats.xml" target="_blank">ZFS &#8211; ARC Stats</a></p>
<p style="text-align: center;"><a href="http://files.hypervisor.fr/img/zfs/zfs_l2arc_stats.png" target="_blank"><img class="aligncenter" src="http://files.hypervisor.fr/img/zfs/zfs_l2arc_stats.png" alt="" width="482" height="175" /></a></p>
<pre class="brush: bash; title: ; notranslate">extend .1.3.6.1.4.1.2021.89 arc_l2_hits /bin/bash -c &quot;kstat -p ::arcstats:l2_hits| cut -s -f 2&quot;
extend .1.3.6.1.4.1.2021.89 arc_l2_misses /bin/bash -c &quot;kstat -p ::arcstats:l2_misses| cut -s -f 2&quot;</pre>
<p>Graph template à importer dans cacti : <a href="http://files.hypervisor.fr/scripts/cacti_graph_template_zfs_-_l2arc_stats.xml" target="_blank">ZFS &#8211; L2ARC Stats</a></p>
<p style="text-align: center;"><a href="http://files.hypervisor.fr/img/zfs/zfs_vfs_iops.png" target="_blank"><img class="aligncenter" src="http://files.hypervisor.fr/img/zfs/zfs_vfs_iops.png" alt="" width="470" height="175" /></a></p>
<pre class="brush: bash; title: ; notranslate">extend .1.3.6.1.4.1.2021.90 vopstats_zfs_nread /bin/bash -c &quot;kstat -p ::vopstats_zfs:nread | cut -s -f 2&quot;
extend .1.3.6.1.4.1.2021.90 vopstats_zfs_nwrite /bin/bash -c &quot;kstat -p ::vopstats_zfs:nwrite | cut -s -f 2</pre>
<p>Graph template à importer dans cacti : <a href="http://files.hypervisor.fr/scripts/cacti_graph_template_zfs_-_vfs_iops.xml" target="_blank">ZFS &#8211; VFS IOPS</a></p>
<p style="text-align: center;"><a href="http://files.hypervisor.fr/img/zfs/zfs_vfs_throughput.png" target="_blank"><img class="aligncenter" src="http://files.hypervisor.fr/img/zfs/zfs_vfs_throughput.png" alt="" width="482" height="198" /></a></p>
<pre class="brush: bash; title: ; notranslate">extend .1.3.6.1.4.1.2021.90 vopstats_zfs_read_bytes /bin/bash -c &quot;kstat -p ::vopstats_zfs:read_bytes | cut -s -f 2&quot;
extend .1.3.6.1.4.1.2021.90 vopstats_zfs_write_bytes /bin/bash -c &quot;kstat -p ::vopstats_zfs:write_bytes | cut -s -f 2&quot;</pre>
<p>Graph template à importer dans cacti : <a href="http://files.hypervisor.fr/scripts/cacti_graph_template_zfs_-_vfs_throughput.xml" target="_blank">ZFS &#8211; VFS Throughput</a></p>
<p style="text-align: center;"><a href="http://files.hypervisor.fr/img/zfs/zfs_zpool_usage.png" target="_blank"><img class="aligncenter" src="http://files.hypervisor.fr/img/zfs/zfs_zpool_usage.png" alt="" width="482" height="231" /></a></p>
<pre class="brush: bash; title: ; notranslate">extend .1.3.6.1.4.1.2021.88 zpool_name /bin/bash -c &quot;zpool list -H -o name&quot;
extend .1.3.6.1.4.1.2021.88 zpool_snap /bin/bash -c &quot;zpool list -Ho name|for zpool in `xargs`;do zfs get -rHp -o value usedbysnapshots $zpool|awk -F: '{sum+=$1} END{print sum}';done&quot;
extend .1.3.6.1.4.1.2021.88 zpool_used /bin/bash -c &quot;zpool list -Ho name|xargs zfs get -Hp -o value used&quot;
extend .1.3.6.1.4.1.2021.88 zpool_data_used /bin/bash -c &quot;zpool list -Ho name|for zpool in `xargs`;do snap=`zfs get -rHp -o value usedbysnapshots $zpool|awk -F: '{sum+=$1} END{print sum}'`;pool=`zfs get -Hp -o value used $zpool`; echo $pool $snap|awk '{print (\$1-\$2);}';done&quot;
extend .1.3.6.1.4.1.2021.88 zpool_available /bin/bash -c &quot;zpool list -Ho name|xargs zfs get -Hp -o value available&quot;
extend .1.3.6.1.4.1.2021.88 zpool_capacity /bin/bash -c &quot;zpool list -H -o capacity|cut -d % -f 1&quot;</pre>
<p>Script à copier dans le répertoire &#8221;/resource/snmp_queries/&#8221; : <a href="http://files.hypervisor.fr/scripts/zpool_usage.xml" target="_blank">ZFS &#8211; zpool usage</a><br />
Graph template à importer dans cacti : <a href="http://files.hypervisor.fr/scripts/cacti_data_query_zfs_-_zpool_usage.xml" target="_blank">ZFS &#8211; zpool usage</a><br />
Ce dernier graph est similaire à <a href="http://www.hypervisor.fr/?p=3828" target="_blank">celui que nous avions posté il y a quelques temps</a> mais permet de distinguer la consommation des data de celle des snapshot.</p>
<p style="text-align: center;"><a href="http://files.hypervisor.fr/img/zfs/zfs_disk_busy.png" target="_blank"><img class="aligncenter" src="http://files.hypervisor.fr/img/zfs/zfs_disk_busy.png" alt="" width="482" height="164" /></a></p>
<pre class="brush: bash; title: ; notranslate">extend .1.3.6.1.4.1.2021.84 busy /bin/bash -c &quot;iostat -xrn 1 3|grep -E 'c2t'|grep -vE c2t15d0|tail -\$((\$(paste -d= &amp;lt;(iostat -x | tail -n +3 | awk '{print \$1}') &amp;lt;(iostat -nx | tail -n +3 | awk '{print \&quot;/dev/dsk/\&quot;\$11}')|grep -E 'c2t'|grep -vE c2t15d0|wc -l)*2))| awk -F',' 'BEGIN { n=0; sum=0; } { n++; sum += \$(NF-1); } END { printf (\&quot;%.2f\&quot;,sum / n); }'|awk '{ printf (\&quot;%d\&quot;, (\$1 &amp;gt; 100) ? 0 : \$1); }'&quot;</pre>
<p style="text-align: justify;">Graph template à importer dans cacti : <a href="http://files.hypervisor.fr/scripts/cacti_graph_template_zfs_-_disk_busy.xml" target="_blank">ZFS &#8211; disk busy</a><br />
Ce graph est expérimentale et spécifique dans la mesure où il représente la charge estimée des disk filtrés par les differents grep de la commande, à ajuster en fonction de la cible. Le scénario cible idéal est un système avec un seul zpool (mis à part celui du système). Dans notre exemple, nous avons limité à tous les disques dont les noms commencent par &#8220;c2t&#8221; et exclu &#8220;c2t15d0&#8243; (hot spare dans ce cas).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.hypervisor.fr/?feed=rss2&amp;p=4010</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<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>
		<item>
		<title>Monitoring de la température des &#8220;disk&#8221; de Nexenta en SNMP</title>
		<link>http://www.hypervisor.fr/?p=3335</link>
		<comments>http://www.hypervisor.fr/?p=3335#comments</comments>
		<pubDate>Sun, 02 Oct 2011 23:58:36 +0000</pubDate>
		<dc:creator>NiTRo</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Tips & Tricks]]></category>
		<category><![CDATA[ZFS]]></category>
		<category><![CDATA[cacti]]></category>
		<category><![CDATA[nexenta]]></category>
		<category><![CDATA[SMART]]></category>
		<category><![CDATA[snmp]]></category>

		<guid isPermaLink="false">http://www.hypervisor.fr/?p=3335</guid>
		<description><![CDATA[MAJ 03/10/2011 : L&#8217;export xml du caractère ° posait problème, nous avons régénéré un export corrigé.
Tout à commencé à partir d&#8217;un post qui traite de la customization du snmpd.conf en vue de faire un joli graph de l&#8217;ARC de ZFS avec cacti et d&#8217;un autre au sujet de smartmontools sous Solaris. En mixant les 2, nous sommes [...]]]></description>
			<content:encoded><![CDATA[<p><span style="color: #ff0000;"><em>MAJ 03/10/2011 : L&#8217;export xml du caractère </em>°<em> posait problème, nous avons régénéré un export corrigé.</em></span></p>
<p style="text-align: justify;">Tout à commencé à partir <a href="http://sylt.se/cacti-graph-for-solaris-zfs-memory/" target="_blank">d&#8217;un post qui traite de la customization du snmpd.conf en vue de faire un joli graph de l&#8217;ARC de ZFS avec cacti</a> et d&#8217;un autre <a href="http://cafenate.wordpress.com/2009/02/22/setting-up-smartmontools-on-opensolaris/" target="_blank">au sujet de smartmontools sous Solaris</a>. En mixant les 2, nous sommes arrivé à un moyen simple de <strong>remonter la moyenne des températures des disques d&#8217;un Nexenta dans cacti via SNMP</strong>.</p>
<ul>
<li>Installez smartmontools en <a href="http://serverfault.com/questions/237975/how-do-i-login-to-nexenta-in-expert-mode" target="_blank">mode expert</a> : &#8220;apt-get install smartmontools&#8221;</li>
<li>Ajoutez la ligne suivante dans la configuration snmp de Nexenta (<a href="http://www.nexenta.com/corp/nexentastor-faq-table/290-does-the-appliance-support-snmp" target="_blank">&#8220;setup network service snmp-agent edit-settings snmpd.conf&#8221; dans la NMC</a>) :</li>
</ul>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">extend .1.3.6.1.4.1.2021.87 smart_temp <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span><span style="color: #c20cb9; font-weight: bold;">bash</span> <span style="color: #660033;">-c</span> <span style="color: #ff0000;">&quot;find /dev/rdsk/ -name <span style="color: #000099; font-weight: bold;">\&quot;</span>*p0<span style="color: #000099; font-weight: bold;">\&quot;</span> -exec /usr/sbin/smartctl -a -d scsi {} \\;|grep -E <span style="color: #000099; font-weight: bold;">\&quot;</span>Temperature:.*C<span style="color: #000099; font-weight: bold;">\&quot;</span>| awk 'BEGIN { n=0; sum=0; } { n++; sum += <span style="color: #000099; font-weight: bold;">\$</span>(NF-1); } END { printf (<span style="color: #000099; font-weight: bold;">\&quot;</span>%.2f<span style="color: #000099; font-weight: bold;">\&quot;</span>,sum / n); }'&quot;</span></pre></div></div>

<ul>
<li>Importez <a href="http://files.hypervisor.fr/scripts/cacti_graph_template_smart_-_average_hdd_temperature.xml" target="_blank"><strong>notre template</strong></a> dans cacti et créez le graphique sur votre Nexenta</li>
</ul>
<p style="text-align: center;"><a href="http://files.hypervisor.fr/img/nexenta_smart.png"><img class="aligncenter" src="http://files.hypervisor.fr/img/nexenta_smart.png" alt="" width="482" height="198" /></a></p>
<p style="text-align: center;">
]]></content:encoded>
			<wfw:commentRss>http://www.hypervisor.fr/?feed=rss2&amp;p=3335</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
