{"id":1019,"date":"2014-04-12T23:30:38","date_gmt":"2014-04-12T21:30:38","guid":{"rendered":"http:\/\/diablo.craem.net\/wordpress\/?p=1019"},"modified":"2014-04-12T23:30:38","modified_gmt":"2014-04-12T21:30:38","slug":"monitorizar-hardware-esxi-nagios","status":"publish","type":"post","link":"https:\/\/diablo.craem.net\/?p=1019","title":{"rendered":"Monitorizar hardware ESXI nagios"},"content":{"rendered":"<p>Esta vez vamos a monitorizar el estado del hardware HP de un ESXI<br \/>\nTengo, para <em>frikear<\/em>, unos HP DL380 G5 y DL360G5, de los cuales, debido al tiempo que tienen, se han estropeado algunas fuentes de alimentaci\u00f3n y algunos discos.<br \/>\nPrimero de todo, de la p\u00e1gina www.hp.com de <em>EEUU<\/em>, descargamos:<br \/>\n<code><br \/>\nhttps:\/\/h20566.www2.hp.com\/portal\/site\/hpsc\/template.PAGE\/public\/psi\/swdHome\/?sp4ts.oid=3288134&spf_p.tpst=swdMain&spf_p.prp_swdMain=wsrp-navigationalState%3DswEnvOID%253D4115%257CswLang%253D%257Caction%253DlistDriver&javax.portlet.begCacheTok=com.vignette.cachetoken&javax.portlet.endCacheTok=com.vignette.cachetoken<br \/>\n<\/code><br \/>\n<code><br \/>\n* RECOMMENDED * HP ESXi Utilities Offline Bundle for VMware ESXi 5.0 and vSphere 5.1<br \/>\n* RECOMMENDED * HP NMI Sourcing Driver for VMware ESXi 5.x<br \/>\nHP ESXi Offline Bundle for VMware ESXi 5.x<br \/>\nCopiamos estos 3 ficheros por SFTP al directorio \/TMP de nuestro ESXI......  una vez copiados, los instalamos:<br \/>\n<\/code><br \/>\n<code><br \/>\n#esxcli software vib install -d \/tmp\/ficheroainstalar<br \/>\n<\/code><br \/>\nUna vez instalados los 3, nos pedir\u00e1 reiniciar. Volvemos a entrar con el cliente de ESXI y nos vamos a la pesta\u00f1a de [configuration]<br \/>\n<a href=\"https:\/\/diablo.craem.net\/wp-content\/uploads\/2014\/04\/estadoesxi.png\"><img fetchpriority=\"high\" decoding=\"async\" src=\"https:\/\/diablo.craem.net\/wp-content\/uploads\/2014\/04\/estadoesxi.png\" alt=\"estadoesxi\" width=\"554\" height=\"301\" class=\"aligncenter size-full wp-image-1020\" \/><\/a><br \/>\nAhora vamos a la parte de nagios y descargamos el siguiente plugin.<br \/>\n<code><br \/>\nhttps:\/\/exchange.nagios.org\/directory\/Plugins\/Operating-Systems\/%2A-Virtual-Environments\/VMWare\/Check-hardware-running-VMware-ESXi\/details<br \/>\n<\/code><br \/>\nY lo copiamos en:<br \/>\n\/usr\/local\/nagios\/libexec<br \/>\nUna vez copiado, editamos el fichero commands.cfg y a\u00f1adimos al final de todo:<br \/>\n<code><br \/>\ndefine command{<br \/>\n        command_name    check_esx_wbem<br \/>\n        command_line    $USER1$\/check_esx_wbem.py httpss:\/\/$HOSTADDRESS$:5989 $ARG1$ $ARG2$ verbose<br \/>\n        }<br \/>\n<\/code><br \/>\nY ahora definimos los servicios a monitorizar:<br \/>\n<code><br \/>\ndefine host {<br \/>\n        use             esxi-server<br \/>\n        host_name       olimpo_craem_net<br \/>\n        alias           olimpo_craem_net<br \/>\n        address         192.168.2.203<br \/>\n        icon_image      linux_server.gif<br \/>\n        statusmap_image linux_server.gd2<br \/>\n        hostgroups      esxi-home<br \/>\n        }<br \/>\ndefine service{<br \/>\n        use                     generic-service<br \/>\n        host_name               olimpo_craem_net<br \/>\n        service_description     ESXi Hardware Monitor<br \/>\n        check_command           check_esx_wbem!readuser!password<br \/>\n        }<br \/>\n<\/code><br \/>\nY ahora en nuestro nagios, parte web, tendremos \u00e9sto:<br \/>\n<a href=\"https:\/\/diablo.craem.net\/wp-content\/uploads\/2014\/04\/captura21.png\"><img decoding=\"async\" src=\"https:\/\/diablo.craem.net\/wp-content\/uploads\/2014\/04\/captura21.png\" alt=\"captura2\" width=\"824\" height=\"124\" class=\"aligncenter size-full wp-image-1022\" \/><\/a><br \/>\nAhora podremos dormir tranquilos con nuestro servidor monitorizado \ud83d\ude42<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Esta vez vamos a monitorizar el estado del hardware HP de un ESXI Tengo, para frikear, unos HP DL380 G5 y DL360G5, de los cuales, debido al tiempo que tienen, se han estropeado algunas fuentes de alimentaci\u00f3n y algunos discos. Primero de todo, de la p\u00e1gina www.hp.com de EEUU, descargamos: https:\/\/h20566.www2.hp.com\/portal\/site\/hpsc\/template.PAGE\/public\/psi\/swdHome\/?sp4ts.oid=3288134&#038;spf_p.tpst=swdMain&#038;spf_p.prp_swdMain=wsrp-navigationalState%3DswEnvOID%253D4115%257CswLang%253D%257Caction%253DlistDriver&#038;javax.portlet.begCacheTok=com.vignette.cachetoken&#038;javax.portlet.endCacheTok=com.vignette.cachetoken * RECOMMENDED * HP [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5,8],"tags":[],"class_list":["post-1019","post","type-post","status-publish","format-standard","hentry","category-linux","category-varios"],"_links":{"self":[{"href":"https:\/\/diablo.craem.net\/index.php?rest_route=\/wp\/v2\/posts\/1019","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/diablo.craem.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/diablo.craem.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/diablo.craem.net\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/diablo.craem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1019"}],"version-history":[{"count":0,"href":"https:\/\/diablo.craem.net\/index.php?rest_route=\/wp\/v2\/posts\/1019\/revisions"}],"wp:attachment":[{"href":"https:\/\/diablo.craem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1019"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/diablo.craem.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1019"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/diablo.craem.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1019"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}