jueves, 21 de abril de 2016

Monitor printers with Nagios


1.- Descargar plugin

2.- Agregarlo al directorio plugins de nagios ya darle permisos de ejecución:

# chmod o+x check_snmp_printer

3.- Agregar el comando correspondiente al archivo commands.cfg de Nagios:


define command{
        command_name check_snmp_printer
        command_line $USER1$/check_snmp_printer -H $HOSTADDRESS$ -C $ARG1$ -x $ARG2$ -w $ARG3$ -c $ARG4$


4.- Agregar el servicio a la impresora que se desea monitorear, estas son algunas opciones:

  • CONSUM {"string" | TEST | ALL} 
  • DEVICE 
  • DISPLAY 
  • MESSAGES 
  • MODEL 
  • PAGECOUNT 
  • STATUS 
  • TRAY {number(s) | TEST | ALL} 
  • VERSION 


Ejemplo:

define service{
        use                     generic-service
        host_name               My_Printer
        service_description     Printer Model
        check_command           check_snmp_printer!community!"MODEL"
}




Referencia:

Exchange Nagios

miércoles, 20 de abril de 2016

Centos Nagios install



1.- yum install nagios

2.- vi /etc/nagios/objects/contacts.cfg

 contact_name              admin
 email                           admin@localhost ;

 members                     admin


3.-   vi /etc/httpd/conf.d/nagios.conf

## Comment Lines

#   Order allow,deny
#   Allow from all

## Uncomment and Change lines

Order deny,allow
Deny from all
Allow from 127.0.0.1 192.168.1.0/24

4.-  htpasswd /etc/nagios/passwd nagiosadmin


5.- service nagios start
     chkconfig nagios on

6.- Conf check

 nagios -v /etc/nagios/nagios.cfg




Referencia:

Unixmen

jueves, 14 de abril de 2016

Boot CD/DVD VMware Hypervisor (vSphere)





1.- Insert CD/DVD

2.- Connect CD/DVD - Host Device

3.- Guest  - Send Ctrl-Alt-Del