My nagios.log and /var/log/messagesUNKNOWN localhost - Hostname info not available. Likely invalid hostname
Code: Select all
[1446798122] SERVICE NOTIFICATION: nagiosadmin;localhost;Check Multiple Metrics;UNKNOWN;notify-service-by-email;UNKNOWN localhost - Hostname info not available. Likely invalid hostnameIn error_log I'm getting this warning which I think is irrelevant.
tail -f /var/log/httpd/error_log
Code: Select all
[Fri Nov 06 11:12:46 2015] [error] [client ::1] PHP Warning: date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'Europe/Helsinki' for 'EET/2.0/no DST' instead in /usr/share/ganglia/cluster_view.php on line 36Code: Select all
define command {
command_name check_ganglia_multiple_metrics
command_line /bin/sh /var/www/html/ganglia2/nagios/check_multiple_metrics.sh host=$HOSTNAME$ checks='$ARG1$'
}
define service {
service_description Check Multiple Metrics
use generic-service
check_command check_ganglia_multiple_metrics!disk_free_rootfs,less,10:disk_free_tmp,less,20
host_name localhost
}