I have the file /usr/local/nagios/etc/servers/clients.cfg containing the following contents:
Code: Select all
define host{
use linux-server
host_name planetlab2.emich.edu
alias server
address 198.108.101.61
max_check_attempts 5
check_period 24x7
notification_interval 30
notification_period 24x7
}
define service {
use generic-service
host_name planetlab2.emich.edu
service_description SSH
check_command check_ssh
notifications_enabled 0
}
Code: Select all
define service {
use generic-service
host_name planetlab2.emich.edu
service_description Uptime
check_command check_nrpe!check_uptime!1051200!10512000
max_check_attempts 2
normal_check_interval 1
retry_check_interval 1
check_period 24x7
notification_interval 120
notification_period 24x7
notification_options w,c,r
contact_groups admins
notifications_enabled 0
}
nss@nss-X450LA:~$ sudo /etc/init.d/nagios start
[....] Starting nagios (via systemctl): nagios.serviceJob for nagios.service failed. See "systemctl status nagios.service" and "journalctl -xe" for details.
failed!
Anyone knows how to solve this?
Thx