Mostrando entradas con la etiqueta nagios. Mostrar todas las entradas
Mostrando entradas con la etiqueta nagios. Mostrar todas las entradas

jueves, 26 de julio de 2012

Nagios Notifications

To enable notifications the first step is edit contact email (example mail: test@gmail.com)

[root@BMNG001 soporte]# cd /etc/nagios/objects
[root@BMNG001 soporte]# vi contacts.cfg

1. Edit this lines:


define contact{
        contact_name  Soporte          ; Short name of user
        use           generic-contact  ; Inherit default values...
        alias         Soporte          ; Full name of user
        email         test@gmail.com   ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
        }
 
2. And Then
 
edit hosts
 
vi /etc/hosts 
 
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
192.168.160.6 BMNG001.ZEUS.loc BMNG001
 
Add your: IP - host.domain.com - HOSTNAME
[root@BMNG001 soporte]# service nagios restart
 

 
This is because I see that many have problems with notifications to 
the end and it is something simple but not everyone knows it.






Regards,