tag:blogger.com,1999:blog-91181570007582585222024-03-18T21:22:52.703-07:00Proyecto final Sistemas HUERGO '12 Nagios + OCS InventoryAnonymoushttp://www.blogger.com/profile/17087284925402725464noreply@blogger.comBlogger1125tag:blogger.com,1999:blog-9118157000758258522.post-79308849646519173072012-12-12T13:49:00.003-08:002012-12-14T10:42:38.446-08:00<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhB71aO2qFiIUxq8gj2he-2_1BSar2rT0wu-eLauRYmrfp34KaJ3WAldS7LHwU3fKSLhQc04YKDricn6XDQqlGyKXamAo6mwMTquEN1tC7vUy04x7lvJeXiTHKTa6ck89p36ESvIXfcV0c/s1600/Nagios_logo_black.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="150" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhB71aO2qFiIUxq8gj2he-2_1BSar2rT0wu-eLauRYmrfp34KaJ3WAldS7LHwU3fKSLhQc04YKDricn6XDQqlGyKXamAo6mwMTquEN1tC7vUy04x7lvJeXiTHKTa6ck89p36ESvIXfcV0c/s200/Nagios_logo_black.png" width="200" /></a></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://www.clker.com/cliparts/H/D/e/R/O/P/green-plus-sign-md.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="49" src="http://www.clker.com/cliparts/H/D/e/R/O/P/green-plus-sign-md.png" width="50" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<br />
<div class="separator" style="clear: both; text-align: center;">
<a href="http://upload.wikimedia.org/wikipedia/fr/9/91/Ocsinventory.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="101" src="http://upload.wikimedia.org/wikipedia/fr/9/91/Ocsinventory.png" width="200" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<br /></div>
<div class="separator" style="clear: both; text-align: left;">
<br /></div>
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">Comentando un poco lo que logramos con este proyecto, en principio con nagios se logra tener un monitoreo de la cantidad de computadoras que necesitemos, este programa chequea servicios como la carga del cpu, el espacio en el disco, el estado del explorer.exe, etc.. estos servicios se agregan en unos de los txt's en forma manual, mediante codigo (ya nos meteremos en el tema mas adelante).</span><br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">Por otro lado OCS permite tener como lo llaman ellos un inventario... esto es tener la información de hardware (como el modelo del microprocesador) y software (como las actualizaciones de windows) en un servidor... podemos tener la información de las maquinas que quisiéramos tan solo instalando un cliente en la maquina a la cual le pedimos la info.</span><br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"><span style="font-size: large;"><br /></span></span>
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"><span style="font-size: large;">Datos del servidor utilizado:</span></span><br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"><span style="font-size: large;"><br /></span></span>
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">Se utilizo una notebook HP DV7 - 3067CL, con las siguientes especificaciones:</span><br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">-AMD Turion II Ultra Dual-Core M600 2.40 Ghz</span><br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">-Ati Radeon HD 4650 1GB</span><br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">-HD 500 GB (7200RPM)</span><br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">-Memoria RAM 4GB DDR2</span><br />
<br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"><span style="font-size: large;">Programas/paquetes a descargar:</span> </span><br />
<br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">-Nagios 3.3.1</span><br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">-Nagios plugins 1.4.15</span><br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">-NagiosQL 3.1.1</span><br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">-PHP5</span><br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">-apache2</span><br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">-PNP4</span><br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">-NRPE</span><br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">-NSClient ++ 0.3.9</span><br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">-OCS Inventory NG Server 2.0.5</span><br />
<span style="font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif;">-OCS Inventory NG Agents 2.0.5</span><br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"><br /></span>
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">Comenzando con la monitorización por nagios nos guiamos en esta página:</span><br />
<br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"><a href="http://www.adictosaltrabajo.com/tutoriales/tutoriales.php?pagina=nagios_nagiosql_pnp4nagios#04">http://www.adictosaltrabajo.com/tutoriales/tutoriales.php?pagina=nagios_nagiosql_pnp4nagios#04</a></span><br />
<br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">De aca sacamos como instalar la base de nagios, nagiosql y PNP4, y asi poder ver <span style="background-color: white; text-align: justify;">las monitorizaciones que existen por defecto para el host de nagios, con sus respectivas graficas. No es mas que eso basicamente.</span></span><br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">Luego si, nos fuimos a la parte donde más hay que configurar que es al establecer los datos de las máquinas que vamos a monitoriar, en este caso maquinas con windows.</span><br />
<br />
<a href="http://nagios.sourceforge.net/docs/3_0/monitoring-windows.html">http://nagios.sourceforge.net/docs/3_0/monitoring-windows.html</a><br />
<br />
Comenzamos instalando el nsclient ++ en todas las maquinas windows que queriamos monitorear (descarga:<br />
x32 <a href="http://files.nsclient.org/x-0.3.x_STABLE/NSClient%2B%2B-0.3.9-Win32.msi">http://files.nsclient.org/x-0.3.x_STABLE/NSClient%2B%2B-0.3.9-Win32.msi</a><br />
x64 <a href="http://files.nsclient.org/x-0.3.x_STABLE/NSClient%2B%2B-0.3.9-x64.msi">http://files.nsclient.org/x-0.3.x_STABLE/NSClient%2B%2B-0.3.9-x64.msi</a>), el proceso de instalacion es facil:<br />
<br />
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">Pantalla de bienvenida del asistente de instalación. Pulsamos Next.</span><br />
<br />
<div class="separator" style="background-color: white; clear: both; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgW3vN2yEYrkwz0AXklCJzjU9Z1jfAd2eyqVibPnN2f6iFiq69jNby4TcMeE9xBWd3MsIO0gTOnZKlQ8xIxvHkevBJG0lYnQKmfynOH9U5OwQCQm8Gbe22WCVS5n4yTE3wAEw967PSaahhX/s1600/nsclient01.PNG" imageanchor="1" style="color: #ff6804; margin-left: 1em; margin-right: 1em; text-decoration: initial;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgW3vN2yEYrkwz0AXklCJzjU9Z1jfAd2eyqVibPnN2f6iFiq69jNby4TcMeE9xBWd3MsIO0gTOnZKlQ8xIxvHkevBJG0lYnQKmfynOH9U5OwQCQm8Gbe22WCVS5n4yTE3wAEw967PSaahhX/s320/nsclient01.PNG" style="-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 0px; background-color: #f8fcfc; background-position: initial initial; background-repeat: initial initial; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; border: 1px solid rgb(42, 183, 69); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 0px; padding: 8px; position: relative;" /></a></div>
<br style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" />
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">Aceptamos la licencia GNUv2 y pulsamos Next.</span><br />
<br style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" />
<div class="separator" style="background-color: white; clear: both; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiitip4nMisMQm-kaMsdIAgVCO-w7t4WZsMoGG9XJaqjH-qqEyQ839Vv6Ji3Hxo5K90nBgHyijmtZV5blclj_-DSKKI5M7ZZXb5lFYoXLYbjA5fD6-4VCSbweW8gZNxQXhj4CXdqubT-meP/s1600/nsclient02.PNG" imageanchor="1" style="color: #ff6804; margin-left: 1em; margin-right: 1em; text-decoration: initial;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiitip4nMisMQm-kaMsdIAgVCO-w7t4WZsMoGG9XJaqjH-qqEyQ839Vv6Ji3Hxo5K90nBgHyijmtZV5blclj_-DSKKI5M7ZZXb5lFYoXLYbjA5fD6-4VCSbweW8gZNxQXhj4CXdqubT-meP/s320/nsclient02.PNG" style="-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 0px; background-color: #f8fcfc; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; border: 1px solid rgb(42, 183, 69); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 0px; padding: 8px; position: relative;" /></a></div>
<br style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" />
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">Seleccionamos todo para instalar (por defecto). Pulsamos Next.</span><br />
<br style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" />
<div class="separator" style="background-color: white; clear: both; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgW9I6Nl0pgyompBT-dr_0yVeMzE_zA6Mqdwa96VbifTVqc3vY7QlTPJvbmKX0Qj3fTuTGqFj1eUvEv-AAgLbLAyZLnC2k_l4Op443t2BLcGskdIXpO5ktgYGxYhfVHy8zaTyZDQHP0h4WE/s1600/nsclient03.PNG" imageanchor="1" style="color: #ff6804; margin-left: 1em; margin-right: 1em; text-decoration: initial;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgW9I6Nl0pgyompBT-dr_0yVeMzE_zA6Mqdwa96VbifTVqc3vY7QlTPJvbmKX0Qj3fTuTGqFj1eUvEv-AAgLbLAyZLnC2k_l4Op443t2BLcGskdIXpO5ktgYGxYhfVHy8zaTyZDQHP0h4WE/s320/nsclient03.PNG" style="-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 0px; background-color: #f8fcfc; background-position: initial initial; background-repeat: initial initial; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; border: 1px solid rgb(42, 183, 69); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 0px; padding: 8px; position: relative;" /></a></div>
<br style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" />
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">Creamos un fichero de configuración nuevo. Si ya teníamos instalado otra versión antigua de NSClient++ que usara archivos de configuración antiguos, debemos leer lo que nos pone aquí sobre los ficheros de configuración.</span><br />
<br style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" />
<div class="separator" style="background-color: white; clear: both; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2PT0-_M8WDBCj2Sdvd8Ml6asPYeMEa-71je_P4YOCgg9MW6SypEwxuC5TUNA5l9a4BqF8lFeA2BejaaN0lkgBsGfffEHNObzVuVr00zIqI5vQhBnPg4WerYULMFW-Q23YAeKJ0-3j0Lyo/s1600/nsclient04.PNG" imageanchor="1" style="color: #ff6804; margin-left: 1em; margin-right: 1em; text-decoration: initial;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi2PT0-_M8WDBCj2Sdvd8Ml6asPYeMEa-71je_P4YOCgg9MW6SypEwxuC5TUNA5l9a4BqF8lFeA2BejaaN0lkgBsGfffEHNObzVuVr00zIqI5vQhBnPg4WerYULMFW-Q23YAeKJ0-3j0Lyo/s320/nsclient04.PNG" style="-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 0px; background-color: #f8fcfc; background-position: initial initial; background-repeat: initial initial; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; border: 1px solid rgb(42, 183, 69); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 0px; padding: 8px; position: relative;" /></a></div>
<br style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" />
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">En esta ventana debemos poner la dirección IP del servidor Nagios donde vayamos a enviar los datos. La contraseña la dejamos en blanco. Si pusiéramos contraseña, deberíamos cambiar el comando check_nt del servidor nagios para que usara la contraseña que hemos puesto (añadir la opcion -s). Marcamos las opciones que se ven en pantalla. Pulsamos Next.</span><br />
<br style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" />
<div class="separator" style="background-color: white; clear: both; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSdD8QM4aEXiIvKTrVYgGN2Ytt0l6Mg15mM5sVASjBaT6NTMHr1CmybhfBRzBkruUibwnoIbS-vbFJrJ8c7OXt4ZxXCs6pCbnCmavP8RJtn-cX0-jdf41MYVHrivsW06PurN_ds0usuaJ1/s1600/nsclient05.PNG" imageanchor="1" style="color: #ff6804; margin-left: 1em; margin-right: 1em; text-decoration: initial;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiSdD8QM4aEXiIvKTrVYgGN2Ytt0l6Mg15mM5sVASjBaT6NTMHr1CmybhfBRzBkruUibwnoIbS-vbFJrJ8c7OXt4ZxXCs6pCbnCmavP8RJtn-cX0-jdf41MYVHrivsW06PurN_ds0usuaJ1/s320/nsclient05.PNG" style="-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 0px; background-color: #f8fcfc; background-position: initial initial; background-repeat: initial initial; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; border: 1px solid rgb(42, 183, 69); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 0px; padding: 8px; position: relative;" /></a></div>
<br style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" />
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">En las siguientes pantallas pulsamos Install para que se instale la aplicación y, después de la instalación de los ficheros, marcamos que se inicie el servicio y pulsamos Finish. Si queremos podemos donar algo al proyecto marcando la casilla correspondiente.</span><br />
<br style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" />
<div class="separator" style="background-color: white; clear: both; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Niz8BsMsGFdmcPtNSx9QmpeaINaTEzyxNuxgAUA3SsLAI6iD1Q0I1tmu6QoFGyIy4eRfSrlLaAPzCoOKaMB78cUXiKe4T6U8f-QDM60ut23TnbU1Zo1uisryY_0XtVuJHkY84lxMZP4X/s1600/nsclient06.PNG" imageanchor="1" style="color: #ff6804; margin-left: 1em; margin-right: 1em; text-decoration: initial;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5Niz8BsMsGFdmcPtNSx9QmpeaINaTEzyxNuxgAUA3SsLAI6iD1Q0I1tmu6QoFGyIy4eRfSrlLaAPzCoOKaMB78cUXiKe4T6U8f-QDM60ut23TnbU1Zo1uisryY_0XtVuJHkY84lxMZP4X/s320/nsclient06.PNG" style="-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 0px; background-color: #f8fcfc; background-position: initial initial; background-repeat: initial initial; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; border: 1px solid rgb(42, 183, 69); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 0px; padding: 8px; position: relative;" /></a></div>
<br style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" />
<br style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" />
<div class="separator" style="background-color: white; clear: both; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZjQrJ5dua8A4_GQ2O4bdHrLqygDfZOiLtEJgdI-T-9BIO1aeH7jszSgrukm4O23pmfWeodDAGHfaBoD1R5fqByzzgW28D6Dm6NoCapIG96vPDcnaAKYf5yjZw4SHFiqXkDtpb-abp-m7t/s1600/nsclient07.PNG" imageanchor="1" style="color: #ff6804; margin-left: 1em; margin-right: 1em; text-decoration: initial;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgZjQrJ5dua8A4_GQ2O4bdHrLqygDfZOiLtEJgdI-T-9BIO1aeH7jszSgrukm4O23pmfWeodDAGHfaBoD1R5fqByzzgW28D6Dm6NoCapIG96vPDcnaAKYf5yjZw4SHFiqXkDtpb-abp-m7t/s320/nsclient07.PNG" style="-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 0px; background-color: #f8fcfc; background-position: initial initial; background-repeat: initial initial; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; border: 1px solid rgb(42, 183, 69); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 0px; padding: 8px; position: relative;" /></a></div>
<br style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" />
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">Por último comprobamos que el servicio está iniciado. Vamos a Inicio --> Click del Botón Derecho en Equipo --> Administrar --> Servicios y Aplicaciones --> Servicios. Vamos al servicio NSClient++ (x64)</span><br />
<br style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" />
<span style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;">En nuestro caso no estaba iniciado. Lo configuramos para que se inicie automáticamente y para que interactue con el escritorio. Después pulsamos Iniciar.</span><br />
<br style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" />
<div class="separator" style="background-color: white; clear: both; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxjEqTBSDA7qPWIUBRDiwrm1H_vzOHoweyzoqlo6A5aeylK856rpHfCaLJKulOhSmtuScrQ10hesQMh8IVTN8KDpFJG978ZAKSQlb298CMZtcsz5jaMSDYWDI4kdUM60-FI78oPqQjdoQY/s1600/nsclient08.PNG" imageanchor="1" style="color: #ff6804; margin-left: 1em; margin-right: 1em; text-decoration: initial;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjxjEqTBSDA7qPWIUBRDiwrm1H_vzOHoweyzoqlo6A5aeylK856rpHfCaLJKulOhSmtuScrQ10hesQMh8IVTN8KDpFJG978ZAKSQlb298CMZtcsz5jaMSDYWDI4kdUM60-FI78oPqQjdoQY/s320/nsclient08.PNG" style="-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 0px; background-color: #f8fcfc; background-position: initial initial; background-repeat: initial initial; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; border: 1px solid rgb(42, 183, 69); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 0px; padding: 8px; position: relative;" /></a></div>
<br style="background-color: white; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;" />
<div class="separator" style="background-color: white; clear: both; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizUhoPv91IRVy6t6B_9Ix1NiePm5uWlKgYg8KjiCQv-16PyeC8q6QL3428EUgkGn0m4m9LPH3kwNrI0ZpXk0fWbn_GyvPN1yxH1PlZ8KwYg_Dqaqjbwlln_dIm3JI_tfWzokuomkx-sWXb/s1600/nsclient09.PNG" imageanchor="1" style="color: #98b7ff; margin-left: 1em; margin-right: 1em;"><img border="0" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizUhoPv91IRVy6t6B_9Ix1NiePm5uWlKgYg8KjiCQv-16PyeC8q6QL3428EUgkGn0m4m9LPH3kwNrI0ZpXk0fWbn_GyvPN1yxH1PlZ8KwYg_Dqaqjbwlln_dIm3JI_tfWzokuomkx-sWXb/s320/nsclient09.PNG" style="-webkit-box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 0px; background-color: #f8fcfc; background-position: initial initial; background-repeat: initial initial; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-top-left-radius: 0px; border-top-right-radius: 0px; border: 1px solid rgb(42, 183, 69); box-shadow: rgba(0, 0, 0, 0.2) 0px 0px 0px; padding: 8px; position: relative;" /></a></div>
<br />
<br />
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">Ahora solo queda por editar el NSC.ini que esta en su respectiva carpeta de instalación (por defecto: C:\Archivos de programa\NSClient++) y ahi es donde hay que editarlo de manera que quede asi (archivo nsc.ini propio): </span><br />
<br />
<br />
<br />
<div style="border: 1px solid #ccc; font: 16px/26px Georgia, Garamond, Serif; height: 200px; overflow: auto; width: 600px;">
<span style="color: red;">[modules]</span><br />
<span style="color: red;">NRPEListener.dll</span><br />
<span style="color: red;">NSClientListener.dll</span><br />
<span style="color: red;">CheckWMI.dll</span><br />
<span style="color: red;">FileLogger.dll</span><br />
<span style="color: red;">CheckSystem.dll</span><br />
<span style="color: red;">CheckDisk.dll</span><br />
<span style="color: red;">CheckEventLog.dll</span><br />
<span style="color: red;">CheckHelpers.dll</span><br />
<span style="color: red;">;# NSCLIENT++ MODULES</span><br />
<span style="color: red;">;# A list with DLLs to load at startup.</span><br />
<span style="color: red;">; You will need to enable some of these for NSClient++ to work.</span><br />
<span style="color: red;">; ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !</span><br />
<span style="color: red;">; * *</span><br />
<span style="color: red;">; * N O T I C E ! ! ! - Y O U H A V E T O E D I T T H I S *</span><br />
<span style="color: red;">; * *</span><br />
<span style="color: red;">; ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! ! !</span><br />
<span style="color: red;">FileLogger.dll</span><br />
<span style="color: red;">CheckSystem.dll</span><br />
<span style="color: red;">CheckDisk.dll</span><br />
<span style="color: red;">NSClientListener.dll</span><br />
<span style="color: red;">NRPEListener.dll</span><br />
<span style="color: red;">SysTray.dll</span><br />
<span style="color: red;">CheckEventLog.dll</span><br />
<span style="color: red;">CheckHelpers.dll</span><br />
<span style="color: red;">;CheckWMI.dll</span><br />
<span style="color: red;">CheckNSCP.dll</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;">; Script to check external scripts and/or internal aliases.</span><br />
<span style="color: red;">;CheckExternalScripts.dll</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;">; NSCA Agent if you enable this NSClient++ will talk to NSCA hosts repeatedly (so dont enable unless you want to use NSCA)</span><br />
<span style="color: red;">;NSCAAgent.dll</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;">; LUA script module used to write your own "check deamon".</span><br />
<span style="color: red;">;LUAScript.dll</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;">; RemoteConfiguration IS AN EXTREM EARLY IDEA SO DONT USE FOR PRODUCTION ENVIROMNEMTS!</span><br />
<span style="color: red;">;RemoteConfiguration.dll</span><br />
<span style="color: red;">; Check other hosts through NRPE extreme beta and probably a bit dangerous! :)</span><br />
<span style="color: red;">;NRPEClient.dll</span><br />
<span style="color: red;">; Extreamly early beta of a task-schedule checker</span><br />
<span style="color: red;">;CheckTaskSched.dll</span><br />
<span style="color: red;"><br /></span>
<span style="color: red;">[crash]</span><br />
<span style="color: red;">; Archive crash dump files if a crash is detected</span><br />
<span style="color: red;">;archive=1</span><br />
<span style="color: red;"><br /></span>
<span style="color: red;">; Submit crash reports to a crash report server (this overrrides archive)</span><br />
<span style="color: red;">;submit=0</span><br />
<span style="color: red;"><br /></span>
<span style="color: red;">; Restart service if a crash is detected</span><br />
<span style="color: red;">;restart=1</span><br />
<span style="color: red;"><br /></span>
<span style="color: red;">[Settings]</span><br />
<span style="color: red;">;# OBFUSCATED PASSWORD</span><br />
<span style="color: red;">; This is the same as the password option but here you can store the password in an obfuscated manner.</span><br />
<span style="color: red;">; *NOTICE* obfuscation is *NOT* the same as encryption, someone with access to this file can still figure out the </span><br />
<span style="color: red;">; password. Its just a bit harder to do it at first glance.</span><br />
<span style="color: red;">;obfuscated_password=Jw0KAUUdXlAAUwASDAAB</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;">;# PASSWORD</span><br />
<span style="color: red;">; This is the password (-s) that is required to access NSClient remotely. If you leave this blank everyone will be able to access the daemon remotly.</span><br />
<span style="color: red;">password=asd</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;">;# ALLOWED HOST ADDRESSES</span><br />
<span style="color: red;">; This is a comma-delimited list of IP address of hosts that are allowed to talk to the all daemons.</span><br />
<span style="color: red;">; If leave this blank anyone can access the deamon remotly (NSClient still requires a valid password).</span><br />
<span style="color: red;">; The syntax is host or ip/mask so 192.168.0.0/24 will allow anyone on that subnet access</span><br />
<span style="color: red;">;allowed_hosts=127.0.0.1/32</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;">;# USE THIS FILE</span><br />
<span style="color: red;">; Use the INI file as opposed to the registry if this is 0 and the use_reg in the registry is set to 1 </span><br />
<span style="color: red;">; the registry will be used instead.</span><br />
<span style="color: red;">use_file=1</span><br />
<span style="color: red;">allowed_hosts=192.168.2.199</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;">; # USE SHARED MEMORY CHANNELS</span><br />
<span style="color: red;">; This is the "new" way for using the system tray based on an IPC framework on top shared memmory channels and events.</span><br />
<span style="color: red;">; It is brand new and (probably has bugs) so dont enable this unless for testing!</span><br />
<span style="color: red;">; If set to 1 shared channels will be created and system tray icons created and such and such...</span><br />
<span style="color: red;">;shared_session=0</span><br />
<span style="color: red;"><br /></span>
<span style="color: red;"><br /></span>
<span style="color: red;">[log]</span><br />
<span style="color: red;">;# LOG DEBUG</span><br />
<span style="color: red;">; Set to 1 if you want debug message printed in the log file (debug messages are always printed to stdout when run with -test)</span><br />
<span style="color: red;">;debug=1</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;">;# LOG FILE</span><br />
<span style="color: red;">; The file to print log statements to</span><br />
<span style="color: red;">;file=nsclient.log</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;">;# LOG DATE MASK</span><br />
<span style="color: red;">; The format to for the date/time part of the log entry written to file.</span><br />
<span style="color: red;">;date_mask=%Y-%m-%d %H:%M:%S</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;">;# LOG ROOT FOLDER</span><br />
<span style="color: red;">; The root folder to use for logging.</span><br />
<span style="color: red;">; exe = the folder where the executable is located</span><br />
<span style="color: red;">; local-app-data = local application data (probably a better choice then the old default)</span><br />
<span style="color: red;">;root_folder=exe</span><br />
<span style="color: red;"><br /></span>
<span style="color: red;"><br /></span>
<span style="color: red;">[NSClient]</span><br />
<span style="color: red;">;# ALLOWED HOST ADDRESSES</span><br />
<span style="color: red;">; This is a comma-delimited list of IP address of hosts that are allowed to talk to NSClient deamon.</span><br />
<span style="color: red;">; If you leave this blank the global version will be used instead.</span><br />
<span style="color: red;">;allowed_hosts=</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;">;# NSCLIENT PORT NUMBER</span><br />
<span style="color: red;">; This is the port the NSClientListener.dll will listen to.</span><br />
<span style="color: red;">port=12489</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;">;# BIND TO ADDRESS</span><br />
<span style="color: red;">; Allows you to bind server to a specific local address. This has to be a dotted ip adress not a hostname.</span><br />
<span style="color: red;">; Leaving this blank will bind to all avalible IP adresses.</span><br />
<span style="color: red;">;bind_to_address=</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;">;# SOCKET TIMEOUT</span><br />
<span style="color: red;">; Timeout when reading packets on incoming sockets. If the data has not arrived withint this time we will bail out.</span><br />
<span style="color: red;">;socket_timeout=30</span><br />
<span style="color: red;"><br /></span>
<span style="color: red;">[NRPE]</span><br />
<span style="color: red;">;# NRPE PORT NUMBER</span><br />
<span style="color: red;">; This is the port the NRPEListener.dll will listen to.</span><br />
<span style="color: red;">;port=5666</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;">;# COMMAND TIMEOUT</span><br />
<span style="color: red;">; This specifies the maximum number of seconds that the NRPE daemon will allow plug-ins to finish executing before killing them off.</span><br />
<span style="color: red;">;command_timeout=60</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;">;# COMMAND ARGUMENT PROCESSING</span><br />
<span style="color: red;">; This option determines whether or not the NRPE daemon will allow clients to specify arguments to commands that are executed.</span><br />
<span style="color: red;">;allow_arguments=0</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;">;# COMMAND ALLOW NASTY META CHARS</span><br />
<span style="color: red;">; This option determines whether or not the NRPE daemon will allow clients to specify nasty (as in |`&><'"\[]{}) characters in arguments.</span><br />
<span style="color: red;">;allow_nasty_meta_chars=0</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;">;# USE SSL SOCKET</span><br />
<span style="color: red;">; This option controls if SSL should be used on the socket.</span><br />
<span style="color: red;">;use_ssl=1</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;">;# BIND TO ADDRESS</span><br />
<span style="color: red;">; Allows you to bind server to a specific local address. This has to be a dotted ip adress not a hostname.</span><br />
<span style="color: red;">; Leaving this blank will bind to all avalible IP adresses.</span><br />
<span style="color: red;">; bind_to_address=</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;">;# ALLOWED HOST ADDRESSES</span><br />
<span style="color: red;">; This is a comma-delimited list of IP address of hosts that are allowed to talk to NRPE deamon.</span><br />
<span style="color: red;">; If you leave this blank the global version will be used instead.</span><br />
<span style="color: red;">;allowed_hosts=</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;">;# SCRIPT DIRECTORY</span><br />
<span style="color: red;">; All files in this directory will become check commands.</span><br />
<span style="color: red;">; *WARNING* This is undoubtedly dangerous so use with care!</span><br />
<span style="color: red;">;script_dir=scripts\</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;">;# SOCKET TIMEOUT</span><br />
<span style="color: red;">; Timeout when reading packets on incoming sockets. If the data has not arrived withint this time we will bail out.</span><br />
<span style="color: red;">;socket_timeout=30</span><br />
<span style="color: red;"><br /></span>
<span style="color: red;">[Check System]</span><br />
<span style="color: red;">;# CPU BUFFER SIZE</span><br />
<span style="color: red;">; Can be anything ranging from 1s (for 1 second) to 10w for 10 weeks. Notice that a larger buffer will waste memory </span><br />
<span style="color: red;">; so don't use a larger buffer then you need (ie. the longest check you do +1).</span><br />
<span style="color: red;">;CPUBufferSize=1h</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;">;# CHECK RESOLUTION</span><br />
<span style="color: red;">; The resolution to check values (currently only CPU).</span><br />
<span style="color: red;">; The value is entered in 1/10:th of a second and the default is 10 (which means ones every second)</span><br />
<span style="color: red;">;CheckResolution=10</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;">;# CHECK ALL SERVICES</span><br />
<span style="color: red;">; Configure how to check services when a CheckAll is performed.</span><br />
<span style="color: red;">; ...=started means services in that class *has* to be running.</span><br />
<span style="color: red;">; ...=stopped means services in that class has to be stopped.</span><br />
<span style="color: red;">; ...=ignored means services in this class will be ignored.</span><br />
<span style="color: red;">;check_all_services[SERVICE_BOOT_START]=ignored</span><br />
<span style="color: red;">;check_all_services[SERVICE_SYSTEM_START]=ignored</span><br />
<span style="color: red;">;check_all_services[SERVICE_AUTO_START]=started</span><br />
<span style="color: red;">;check_all_services[SERVICE_DEMAND_START]=ignored</span><br />
<span style="color: red;">;check_all_services[SERVICE_DISABLED]=stopped</span><br />
<span style="color: red;"><br /></span>
<span style="color: red;">[External Script]</span><br />
<span style="color: red;">;# COMMAND TIMEOUT</span><br />
<span style="color: red;">; This specifies the maximum number of seconds that the NRPE daemon will allow plug-ins to finish executing before killing them off.</span><br />
<span style="color: red;">;command_timeout=60</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;">;# COMMAND ARGUMENT PROCESSING</span><br />
<span style="color: red;">; This option determines whether or not the NRPE daemon will allow clients to specify arguments to commands that are executed.</span><br />
<span style="color: red;">;allow_arguments=0</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;">;# COMMAND ALLOW NASTY META CHARS</span><br />
<span style="color: red;">; This option determines whether or not the NRPE daemon will allow clients to specify nasty (as in |`&><'"\[]{}) characters in arguments.</span><br />
<span style="color: red;">;allow_nasty_meta_chars=0</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;">;# SCRIPT DIRECTORY</span><br />
<span style="color: red;">; All files in this directory will become check commands.</span><br />
<span style="color: red;">; *WARNING* This is undoubtedly dangerous so use with care!</span><br />
<span style="color: red;">;script_dir=c:\my\script\dir</span><br />
<span style="color: red;"><br /></span>
<span style="color: red;">[Script Wrappings]</span><br />
<span style="color: red;">vbs=cscript.exe //T:30 //NoLogo scripts\lib\wrapper.vbs %SCRIPT% %ARGS%</span><br />
<span style="color: red;">ps1=cmd /c echo scripts\%SCRIPT% %ARGS%; exit($lastexitcode) | powershell.exe -command -</span><br />
<span style="color: red;">bat=scripts\%SCRIPT% %ARGS%</span><br />
<span style="color: red;"><br /></span>
<span style="color: red;">[External Scripts]</span><br />
<span style="color: red;">;check_es_long=scripts\long.bat</span><br />
<span style="color: red;">;check_es_ok=scripts\ok.bat</span><br />
<span style="color: red;">;check_es_nok=scripts\nok.bat</span><br />
<span style="color: red;">;check_vbs_sample=cscript.exe //T:30 //NoLogo scripts\check_vb.vbs</span><br />
<span style="color: red;">;check_powershell_warn=cmd /c echo scripts\powershell.ps1 | powershell.exe -command -</span><br />
<span style="color: red;"><br /></span>
<span style="color: red;">[External Alias]</span><br />
<span style="color: red;">alias_cpu=checkCPU warn=80 crit=90 time=5m time=1m time=30s</span><br />
<span style="color: red;">alias_cpu_ex=checkCPU warn=$ARG1$ crit=$ARG2$ time=5m time=1m time=30s</span><br />
<span style="color: red;">alias_mem=checkMem MaxWarn=80% MaxCrit=90% ShowAll=long type=physical type=virtual type=paged type=page</span><br />
<span style="color: red;">alias_up=checkUpTime MinWarn=1d MinWarn=1h</span><br />
<span style="color: red;"><br /></span>
<span style="color: red;">alias_disk=CheckDriveSize MinWarn=10% MinCrit=5% CheckAll FilterType=FIXED</span><br />
<span style="color: red;">alias_disk_loose=CheckDriveSize MinWarn=10% MinCrit=5% CheckAll FilterType=FIXED ignore-unreadable</span><br />
<span style="color: red;">alias_volumes=CheckDriveSize MinWarn=10% MinCrit=5% CheckAll=volumes FilterType=FIXED</span><br />
<span style="color: red;">alias_volumes_loose=CheckDriveSize MinWarn=10% MinCrit=5% CheckAll=volumes FilterType=FIXED ignore-unreadable </span><br />
<span style="color: red;"><br /></span>
<span style="color: red;">alias_service=checkServiceState CheckAll</span><br />
<span style="color: red;">alias_service_ex=checkServiceState CheckAll "exclude=Net Driver HPZ12" "exclude=Pml Driver HPZ12" exclude=stisvc</span><br />
<span style="color: red;">alias_process=checkProcState "$ARG1$=started"</span><br />
<span style="color: red;">alias_process_stopped=checkProcState "$ARG1$=stopped"</span><br />
<span style="color: red;">alias_process_count=checkProcState MaxWarnCount=$ARG2$ MaxCritCount=$ARG3$ "$ARG1$=started"</span><br />
<span style="color: red;">alias_process_hung=checkProcState MaxWarnCount=1 MaxCritCount=1 "$ARG1$=hung"</span><br />
<span style="color: red;"><br /></span>
<span style="color: red;">alias_event_log=CheckEventLog file=application file=system MaxWarn=1 MaxCrit=1 "filter=generated gt -2d AND severity NOT IN ('success', 'informational') AND source != 'SideBySide'" truncate=800 unique descriptions "syntax=%severity%: %source%: %message% (%count%)"</span><br />
<span style="color: red;"><br /></span>
<span style="color: red;">alias_file_size=CheckFiles "filter=size > $ARG2$" "path=$ARG1$" MaxWarn=1 MaxCrit=1 "syntax=%filename% %size%" max-dir-depth=10</span><br />
<span style="color: red;">alias_file_age=checkFile2 filter=out "file=$ARG1$" filter-written=>1d MaxWarn=1 MaxCrit=1 "syntax=%filename% %write%"</span><br />
<span style="color: red;"><br /></span>
<span style="color: red;">alias_sched_all=CheckTaskSched "filter=exit_code ne 0" "syntax=%title%: %exit_code%" warn=>0</span><br />
<span style="color: red;">alias_sched_long=CheckTaskSched "filter=status = 'running' AND most_recent_run_time < -$ARG1$" "syntax=%title% (%most_recent_run_time%)" warn=>0</span><br />
<span style="color: red;">alias_sched_task=CheckTaskSched "filter=title eq '$ARG1$' AND exit_code ne 0" "syntax=%title% (%most_recent_run_time%)" warn=>0</span><br />
<span style="color: red;"><br /></span>
<span style="color: red;">alias_updates=check_updates -warning 0 -critical 0</span><br />
<span style="color: red;"><br /></span>
<span style="color: red;">check_ok=CheckOK Everything is fine!</span><br />
<span style="color: red;"><br /></span>
<span style="color: red;">[Wrapped Scripts]</span><br />
<span style="color: red;">;check_test_vbs=check_test.vbs /arg1:1 /arg2:1 /variable:1</span><br />
<span style="color: red;">;check_test_ps1=check_test.ps1 arg1 arg2</span><br />
<span style="color: red;">;check_test_bat=check_test.bat arg1 arg2</span><br />
<span style="color: red;">;check_battery=check_battery.vbs</span><br />
<span style="color: red;">;check_printer=check_printer.vbs</span><br />
<span style="color: red;">;check_updates=check_updates.vbs</span><br />
<span style="color: red;"><br /></span>
<span style="color: red;"><br /></span>
<span style="color: red;">; [includes]</span><br />
<span style="color: red;">;# The order when used is "reversed" thus the last included file will be "first"</span><br />
<span style="color: red;">;# Included files can include other files (be carefull only do basic recursive checking)</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;">; myotherfile.ini</span><br />
<span style="color: red;">; real.ini</span><br />
<span style="color: red;"><br /></span>
<span style="color: red;"><br /></span>
<span style="color: red;">[NSCA Agent]</span><br />
<span style="color: red;">;# CHECK INTERVALL (in seconds)</span><br />
<span style="color: red;">; How often we should run the checks and submit the results.</span><br />
<span style="color: red;">;interval=5</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;">;# ENCRYPTION METHOD</span><br />
<span style="color: red;">; This option determines the method by which the send_nsca client will encrypt the packets it sends </span><br />
<span style="color: red;">; to the nsca daemon. The encryption method you choose will be a balance between security and </span><br />
<span style="color: red;">; performance, as strong encryption methods consume more processor resources.</span><br />
<span style="color: red;">; You should evaluate your security needs when choosing an encryption method.</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;">; Note: The encryption method you specify here must match the decryption method the nsca daemon uses </span><br />
<span style="color: red;">; (as specified in the nsca.cfg file)!!</span><br />
<span style="color: red;">; Values:</span><br />
<span style="color: red;">;<span class="Apple-tab-span" style="white-space: pre;"> </span>0 = None<span class="Apple-tab-span" style="white-space: pre;"> </span>(Do NOT use this option)</span><br />
<span style="color: red;">;<span class="Apple-tab-span" style="white-space: pre;"> </span>1 = Simple XOR (No security, just obfuscation, but very fast)</span><br />
<span style="color: red;">; 2 = DES</span><br />
<span style="color: red;">; 3 = 3DES (Triple DES)</span><br />
<span style="color: red;">;<span class="Apple-tab-span" style="white-space: pre;"> </span>4 = CAST-128</span><br />
<span style="color: red;">;<span class="Apple-tab-span" style="white-space: pre;"> </span>6 = xTEA</span><br />
<span style="color: red;">;<span class="Apple-tab-span" style="white-space: pre;"> </span>8 = BLOWFISH</span><br />
<span style="color: red;">;<span class="Apple-tab-span" style="white-space: pre;"> </span>9 = TWOFISH</span><br />
<span style="color: red;">;<span class="Apple-tab-span" style="white-space: pre;"> </span>11 = RC2</span><br />
<span style="color: red;">;<span class="Apple-tab-span" style="white-space: pre;"> </span>14 = RIJNDAEL-128 (AES)</span><br />
<span style="color: red;">;<span class="Apple-tab-span" style="white-space: pre;"> </span>20 = SERPENT</span><br />
<span style="color: red;">;encryption_method=14</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;">;# ENCRYPTION PASSWORD</span><br />
<span style="color: red;">; This is the password/passphrase that should be used to encrypt the sent packets. </span><br />
<span style="color: red;">;password=</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;">;# BIND TO ADDRESS</span><br />
<span style="color: red;">; Allows you to bind server to a specific local address. This has to be a dotted ip adress not a hostname.</span><br />
<span style="color: red;">; Leaving this blank will bind to "one" local interface.</span><br />
<span style="color: red;">; -- not supported as of now -- </span><br />
<span style="color: red;">;bind_to_address=</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;">;# LOCAL HOST NAME</span><br />
<span style="color: red;">; The name of this host (if empty "computername" will be used.</span><br />
<span style="color: red;">;hostname=</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;">;# NAGIOS SERVER ADDRESS</span><br />
<span style="color: red;">; The address to the nagios server to submit results to.</span><br />
<span style="color: red;">;nsca_host=192.168.0.1</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;">;# NAGIOS SERVER PORT</span><br />
<span style="color: red;">; The port to the nagios server to submit results to.</span><br />
<span style="color: red;">;nsca_port=5667</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;"><br /></span>
<span style="color: red;">;# CHECK COMMAND LIST</span><br />
<span style="color: red;">; The checks to run everytime we submit results back to nagios</span><br />
<span style="color: red;">; Any command(alias/key) starting with a host_ is sent as HOST_COMMAND others are sent as SERVICE_COMMANDS</span><br />
<span style="color: red;">; where the alias/key is used as service name.</span><br />
<span style="color: red;">;</span><br />
<span style="color: red;">[NSCA Commands]</span><br />
<span style="color: red;">;my_cpu_check=checkCPU warn=80 crit=90 time=20m time=10s time=4</span><br />
<span style="color: red;">;my_mem_check=checkMem MaxWarn=80% MaxCrit=90% ShowAll type=page</span><br />
<span style="color: red;">;my_svc_check=checkServiceState CheckAll exclude=wampmysqld exclude=MpfService</span><br />
<span style="color: red;">;host_check=check_ok</span><br />
<span style="color: red;"><br /></span>
<span style="color: red;">;# REMOTE NRPE PROXY COMMANDS</span><br />
<span style="color: red;">; A list of commands that check other hosts.</span><br />
<span style="color: red;">; Used by the NRPECLient module</span><br />
<span style="color: red;">[NRPE Client Handlers]</span><br />
<span style="color: red;">check_other=-H 192.168.0.1 -p 5666 -c remote_command -a arguments</span><br />
<span style="color: red;"><br /></span>
<span style="color: red;">;# LUA SCRIPT SECTION</span><br />
<span style="color: red;">; A list of all Lua scripts to load.</span><br />
<span style="color: red;">;[LUA Scripts]</span><br />
<span style="color: red;">;scripts\test.lua</span><br />
<div>
</div>
<br /></div>
<div>
<br /></div>
<div>
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">Solo que en la parte de "setting" variara en el "use this fail" la IP del servidor nagios y tambien variara la password (se recomienda poner password debido a que es posible que tire un error llamado ERROR password) que le vayan a poner, tambien en la parte settings.</span></div>
<div>
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"><br /></span></div>
<div>
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">Ahora si terminamos la parte de configuración en las maquinas windows a monitorear, ahora vamos por la parte de configuracion por parte del servidor nagios, en nuestro caso con UBUNTU 11.10.</span></div>
<div>
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"><br /></span></div>
<div>
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">Editaremos en la ruta /srv/nagios/etc/objects el archivo windows.cfg, definiendo el host con su respectiva IP</span></div>
<div>
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">Ejemplo:</span></div>
<div>
<br /></div>
<div>
<pre style="font-size: 11px;">define host{
use windows-server ; Inherit default values from a Windows server template (make sure you keep this line!)
host_name winserver
alias My Windows Server
address 192.168.2.199
}</pre>
</div>
<div>
<br /></div>
<div>
<span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">Tambien en este archivo definiremos los servicios a monitorizar, como por ejemplo la carga del micro donde en estos numeros "<span style="font-size: 11px;">5,80,90" </span>indicamos los porcentajes de carga 5%, 80% y 90% (CPULOAD), y asi otros servicios, nosotros establecimos los siguientes:</span></div>
<div>
<br /></div>
<div>
<pre style="font-size: 11px;">define service{
use generic-service
host_name winserver
service_description NSClient++ Version
check_command check_nt!CLIENTVERSION
}</pre>
<pre style="font-size: 11px;"></pre>
<pre><pre style="font-size: 11px;">define service{
use generic-service
host_name winserver
service_description Uptime
check_command check_nt!UPTIME
}</pre>
<pre style="font-size: 11px;">define service{
use generic-service
host_name winserver
service_description CPU Load
check_command check_nt!CPULOAD!-l 5,80,90
}</pre>
<pre style="font-size: 11px;">define service{
use generic-service
host_name winserver
service_description Memory Usage
check_command check_nt!MEMUSE!-w 80 -c 90
}</pre>
<pre style="font-size: 11px;">define service{
use generic-service
host_name winserver
service_description C:\ Drive Space
check_command check_nt!USEDDISKSPACE!-l c -w 80 -c 90
}</pre>
<pre style="font-size: 11px;">define service{
use generic-service
host_name winserver
service_description W3SVC
check_command check_nt!SERVICESTATE!-d SHOWALL -l W3SVC
}</pre>
<pre style="font-size: 11px;"></pre>
<pre style="font-size: 11px;"></pre>
<pre><span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">Luego editaremos el archivo llamado commands.cfg situado en la misma ruta que windows.cfg, aqui en la parte de 'check_nt' editaremos la linea command_line, por ejemplo:</span></pre>
<pre style="font-size: 11px;"></pre>
<pre style="font-size: 11px;"><strong style="background-color: white; color: #333333; font-family: Verdana, 'Lucida Grande', Lucida, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 19px; margin: 0px; padding: 0px; text-align: justify; white-space: normal;">command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -s asd -v $ARG1$ $ARG2$</strong></pre>
<pre style="font-size: 11px;"><strong style="background-color: white; color: #333333; font-family: Verdana, 'Lucida Grande', Lucida, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 19px; margin: 0px; padding: 0px; text-align: justify; white-space: normal;">
</strong></pre>
<pre><span style="background-color: white; color: #333333; line-height: 19px; margin: 0px; padding: 0px; text-align: justify; white-space: normal;"><span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">aqui es donde establecemos la password que anteriormente indicamos en la máquina windows a monitorear en el NSC.ini.</span></span></pre>
<pre><span style="background-color: white; color: #333333; line-height: 19px; margin: 0px; padding: 0px; text-align: justify; white-space: normal;"><span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">
</span></span></pre>
<pre><span style="background-color: white; color: #333333; line-height: 19px; margin: 0px; padding: 0px; text-align: justify; white-space: normal;"><span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">y asi nos tendria que mostrar en nuestra página nagios (http://localhost/nagios), colocando el respectivo URL en el navegador, nos tendria que mostrar los respectivos servicios con un OK si estaba todo bien, aqui una screen de nuestro nagios funcionando:</span></span></pre>
<pre><span style="background-color: white; color: #333333; line-height: 19px; margin: 0px; padding: 0px; text-align: justify; white-space: normal;"><span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">
</span></span></pre>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdSpXiJuypgGZ2NpQRpZ3PbfC37wjldIL1sDIASumK9yJF26yRhLjhmL7YBKlIsYdeYyT6KqvkNCnFoXXiRACKq60HLUYj57kRpFb3Ew9JN-EUwhLuv5ISs5bG2s6OTh59sl_UAhsd4aA/s1600/nagios-servicios.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="180" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgdSpXiJuypgGZ2NpQRpZ3PbfC37wjldIL1sDIASumK9yJF26yRhLjhmL7YBKlIsYdeYyT6KqvkNCnFoXXiRACKq60HLUYj57kRpFb3Ew9JN-EUwhLuv5ISs5bG2s6OTh59sl_UAhsd4aA/s320/nagios-servicios.png" width="320" /></a></div>
<pre><span style="background-color: white; color: #333333; line-height: 19px; margin: 0px; padding: 0px; text-align: justify; white-space: normal;"><span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">
</span></span></pre>
<pre><span style="background-color: white; color: #333333; line-height: 19px; margin: 0px; padding: 0px; text-align: justify; white-space: normal;"><span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">
</span></span></pre>
<pre><span style="background-color: white; color: #333333; line-height: 19px; margin: 0px; padding: 0px; text-align: justify; white-space: normal;"><span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">
</span></span></pre>
<span style="font-size: x-large;"><div style="text-align: center;">
<u>OCS INVENTORY</u></div>
</span><pre><span style="background-color: white; color: #333333; line-height: 19px; margin: 0px; padding: 0px; text-align: justify; white-space: normal;"><span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">
</span></span></pre>
<pre><span style="background-color: white; color: #333333; line-height: 19px; margin: 0px; padding: 0px; text-align: justify; white-space: normal;"><span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">
</span></span></pre>
<pre><span style="background-color: white; color: #333333; line-height: 19px; margin: 0px; padding: 0px; text-align: justify; white-space: normal;"><span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">Ahora pasaremos a explicar como hicimos para hacer funcionar OCS Inventory, (primero lo descargaremos : <a href="https://launchpad.net/ocsinventory-windows-agent/2.0/2.0.5/+download/OCSNG-Windows-Agent-2.0.5.zip">https://launchpad.net/ocsinventory-windows-agent/2.0/2.0.5/+download/OCSNG-Windows-Agent-2.0.5.zip</a>) la pagina que se utilizo fue:</span></span></pre>
<pre><span style="background-color: white; color: #333333; line-height: 19px; margin: 0px; padding: 0px; text-align: justify; white-space: normal;"><span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">
</span></span></pre>
<pre><span style="background-color: white; color: #333333; line-height: 19px; margin: 0px; padding: 0px; text-align: justify; white-space: normal;"><span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"><a href="http://www.latindevelopers.com/articulos/misc/instalar-ocs-inventory.php">http://www.latindevelopers.com/articulos/misc/instalar-ocs-inventory.php</a></span></span></pre>
<pre><span style="background-color: white; color: #333333; line-height: 19px; margin: 0px; padding: 0px; text-align: justify; white-space: normal;"><span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">
</span></span></pre>
<pre><span style="background-color: white; color: #333333; line-height: 19px; margin: 0px; padding: 0px; text-align: justify; white-space: normal;"><span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">donde no es muy complicada su instalación si seguimos los pasos. Pasaremos a explicar el proceso a seguir en las maquinas windows a las cuales queremos pedir la información para el inventario:</span></span></pre>
<pre style="text-align: justify;"><span style="color: #333333; font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"><span style="line-height: 19px; white-space: normal;">Una vez descargado, ejecutaremos el OCS-NG-Windows-Agent-Setup.exe y le daremos siguiente (next) hasta llegar a la siguiente pantalla:</span></span></pre>
<pre style="text-align: justify;"><span style="color: #333333; font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"><span style="line-height: 19px; white-space: normal;">
</span></span></pre>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://img853.imageshack.us/img853/2810/94505946.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="250" src="http://img853.imageshack.us/img853/2810/94505946.png" width="320" /></a></div>
<pre style="text-align: justify;"><span style="color: #333333; font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"><span style="line-height: 19px; white-space: normal;">
</span></span></pre>
<pre><span style="background-color: white; color: #333333; line-height: 19px; margin: 0px; padding: 0px; text-align: justify; white-space: normal;"><span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">
</span></span></pre>
<pre><span style="background-color: white; color: #333333; line-height: 19px; margin: 0px; padding: 0px; text-align: justify; white-space: normal;"><span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">Ahi en server URL pondremos como aparece nuestra ip del servidor nagios y a continuacion lo que quieran nosotros dejamos el ocsinventory, aunque en la foto pusieron otra cosa. Seguiremos dandole al next:</span></span></pre>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://wiki.ocsinventory-ng.org/images/8/8d/Windows_Agent_2.0_Setup_5.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="247" src="http://wiki.ocsinventory-ng.org/images/8/8d/Windows_Agent_2.0_Setup_5.png" width="320" /></a></div>
<pre></pre>
<pre style="text-align: justify;"><span style="color: #333333; font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"><span style="line-height: 19px; white-space: normal;">Aqui indicaremos el proxy (en nuestro caso none), la address que es la IP del servidor nagios, (la que indicamos anteriormente en una parte de la URL), en el puerto pondremos "80", y lo opcional lo dejaremos en blanco. Y asi le daremos next hasta terminar con la instalacion. Ya con esto tendria que funcionar perfectamente y detectar en el servidor todos los datos de las pc establecidas en los usuarios creados en el OCS del servidor (User/add new user).</span></span></pre>
<pre style="text-align: justify;"><span style="color: #333333; font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"><span style="line-height: 19px; white-space: normal;">
</span></span></pre>
<div class="separator" style="clear: both; text-align: center;">
<a href="http://wiki.ocsinventory-ng.org/images/thumb/d/de/En_admin_GUI_1.jpg/1000px-En_admin_GUI_1.jpg" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="132" src="http://wiki.ocsinventory-ng.org/images/thumb/d/de/En_admin_GUI_1.jpg/1000px-En_admin_GUI_1.jpg" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
</div>
<div class="separator" style="clear: both; text-align: left;">
</div>
<pre style="text-align: justify;"><span style="color: #333333; font-family: Helvetica Neue, Arial, Helvetica, sans-serif;"><span style="line-height: 19px; white-space: normal;">Aca unas imagenes de nuestro inventario con dos máquinas:</span></span></pre>
<pre><span style="background-color: white; color: #333333; line-height: 19px; margin: 0px; padding: 0px; text-align: justify; white-space: normal;"><span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">
</span></span></pre>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhy1F8ebJmQ9JNy9QJVeo3DQSkNNVG-e_9Aums6_dNRf6OCIxppX42pQrngE1qZLBzEgnixEDdEWk0Cgdahg8Fza80LF1uHKLN42hiDn8jjxL8G8155dgoBNlYl4XoFbcRWCIqRrs9vDo4/s1600/ocs-usuarios.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="180" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhy1F8ebJmQ9JNy9QJVeo3DQSkNNVG-e_9Aums6_dNRf6OCIxppX42pQrngE1qZLBzEgnixEDdEWk0Cgdahg8Fza80LF1uHKLN42hiDn8jjxL8G8155dgoBNlYl4XoFbcRWCIqRrs9vDo4/s320/ocs-usuarios.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUe1ChMbCUjoH2iWo6IXADAVF4z0jhGXmaBPv34YMz2urK58IlQj_k5zmiGUo3rqQdTV2QC7Xml3PNGKp2uCn2i3TWTQpxOr-kVmk0EoZB53X0za9CfuIdlHPKqRznaV_q3ebWGT2qFcc/s1600/ocs-usuarios-hardware-ej.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="180" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgUe1ChMbCUjoH2iWo6IXADAVF4z0jhGXmaBPv34YMz2urK58IlQj_k5zmiGUo3rqQdTV2QC7Xml3PNGKp2uCn2i3TWTQpxOr-kVmk0EoZB53X0za9CfuIdlHPKqRznaV_q3ebWGT2qFcc/s320/ocs-usuarios-hardware-ej.png" width="320" /></a></div>
<div class="separator" style="clear: both; text-align: center;">
<a href="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUoRsw_4ZqFyV1Bi_qSLwq1t6B59NNZ119d2cQeRxBrBblp4GXo2e3zA9YykKhrmptWMKLZhZ_8yCifLsWR8uC2MA7T4P4lLNEBo4Ya2HSl-eMinr_hkx64uE7H_IgIpZM7HusdBweF40/s1600/ocs-usuarios-hardware-ej2.png" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"><img border="0" height="180" src="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUoRsw_4ZqFyV1Bi_qSLwq1t6B59NNZ119d2cQeRxBrBblp4GXo2e3zA9YykKhrmptWMKLZhZ_8yCifLsWR8uC2MA7T4P4lLNEBo4Ya2HSl-eMinr_hkx64uE7H_IgIpZM7HusdBweF40/s320/ocs-usuarios-hardware-ej2.png" width="320" /></a></div>
<pre><span style="background-color: white; color: #333333; line-height: 19px; margin: 0px; padding: 0px; text-align: justify; white-space: normal;"><span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">
</span></span></pre>
<pre><span style="background-color: white; color: #333333; line-height: 19px; margin: 0px; padding: 0px; text-align: justify; white-space: normal;"><span style="font-family: Helvetica Neue, Arial, Helvetica, sans-serif;">
</span></span></pre>
</pre>
<pre>Integrantes del grupo: Julián Gómez y Martin Nieto.</pre>
<pre></pre>
<pre>Escuela/Curso: Instituto Industrial Luis.A Huergo/6to Computadoras '12.</pre>
<pre>Materia: Sistemas de procesamiento.</pre>
<pre>Profesor: Juan Jose Lopez.</pre>
<pre><pre style="font-size: 11px;"></pre>
</pre>
<pre><a href="http://huergo.edu.ar/">http://huergo.edu.ar/</a></pre>
<pre></pre>
<pre></pre>
</div>
Anonymoushttp://www.blogger.com/profile/17087284925402725464noreply@blogger.com1