Hello,
I just installed icinga2 with icinga web 2 interface on CentOS 6.6 VPS server. I installed it using yum ...
Problem is, that when service or host is down, Icinga wont send any email. Postfix is running and i can send email to me trough command line just fine.
User configuration:
object User "cpanel" {
import "generic-user"
display_name = "cpanel alarm"
groups = [ "cpanel" ]
enable_notifications = true
email = "mail@mail.si " // I have legit email in real thing
}
Notifications configuration:
apply Notification "mail-cpanel" to Host {
import "mail-service-notification"
user_groups = [ "cpanel" ]
assign where host.vars.contactgroup == "cpanel"
}
apply Notification "mail-cpanel" to Service {
import "mail-service-notification"
user_groups = [ "cpanel" ]
assign where service.vars.contactgroup == "cpanel"
}
Host configuration:
object Host "cpanel-server" {
address = "192.168.0.12" // fake Ip
check_command = "hostalive"
groups = [ "cpanel" ]
vars.contactgroup = [ "cpanel" ]
}
Service configuration:
object Service "http" {
import "generic-service"
host_name = "cpanel-server"
check_command = "http"
groups = [ "cpanel" ]
vars.contactgroup = [ "cpanel" ]
}
Groups configuration:
object HostGroup "cpanel" {
display_name = "cpanel Servers"
assign where host.vars.group == "cpanel"
}
object ServiceGroup "cpanel" {
display_name = "Hosterdam Servers"
assign where service.vars.group == "cpanel"
}
When I restart icinga2 it restarts without error. I looked in mail log and there is nothing. Icinga just wont send any email. Even if i try fo send notification through web interface, no mail. And also when I check in web interface in History -> notifications, it says "No notifications found matching the filter".
What could be wrong?
Thank you!
I just installed icinga2 with icinga web 2 interface on CentOS 6.6 VPS server. I installed it using yum ...
Problem is, that when service or host is down, Icinga wont send any email. Postfix is running and i can send email to me trough command line just fine.
User configuration:
object User "cpanel" {
import "generic-user"
display_name = "cpanel alarm"
groups = [ "cpanel" ]
enable_notifications = true
email = "mail@mail.si " // I have legit email in real thing
}
Notifications configuration:
apply Notification "mail-cpanel" to Host {
import "mail-service-notification"
user_groups = [ "cpanel" ]
assign where host.vars.contactgroup == "cpanel"
}
apply Notification "mail-cpanel" to Service {
import "mail-service-notification"
user_groups = [ "cpanel" ]
assign where service.vars.contactgroup == "cpanel"
}
Host configuration:
object Host "cpanel-server" {
address = "192.168.0.12" // fake Ip
check_command = "hostalive"
groups = [ "cpanel" ]
vars.contactgroup = [ "cpanel" ]
}
Service configuration:
object Service "http" {
import "generic-service"
host_name = "cpanel-server"
check_command = "http"
groups = [ "cpanel" ]
vars.contactgroup = [ "cpanel" ]
}
Groups configuration:
object HostGroup "cpanel" {
display_name = "cpanel Servers"
assign where host.vars.group == "cpanel"
}
object ServiceGroup "cpanel" {
display_name = "Hosterdam Servers"
assign where service.vars.group == "cpanel"
}
When I restart icinga2 it restarts without error. I looked in mail log and there is nothing. Icinga just wont send any email. Even if i try fo send notification through web interface, no mail. And also when I check in web interface in History -> notifications, it says "No notifications found matching the filter".
What could be wrong?
Thank you!