No notification sent - what am I doing wrong?
Eivind Olsen
eivind at aminor.no
Wed Dec 21 10:36:50 CET 2005
Hello.
I have a server running Nagios v2.0b4. I have configured some test on
some hosts. Tonight one of the monitored hosts (monitored through nrpe)
had a full filesystem, but no notification email was sent from the
Nagios host.
It's probably just me doing something wrong, but I can't see what it
should be and I'm hoping someone here might point me in the right
direction. :)
In nagios/var/nagios.log I see it has detected that the disk is full:
[1135116493] SERVICE ALERT: osl1mux1;Disk use /var;WARNING;SOFT;1;DISK
WARNING - free space: /var 20 MB (1%):
[1135116553] SERVICE ALERT: osl1mux1;Disk use /var;WARNING;SOFT;2;DISK
WARNING - free space: /var 20 MB (1%):
[1135116613] SERVICE ALERT: osl1mux1;Disk use /var;WARNING;HARD;3;DISK
WARNING - free space: /var 20 MB (0%):
[1135119913] SERVICE ALERT: osl1mux1;Disk use /var;CRITICAL;HARD;3;DISK
CRITICAL - free space: /var 11 MB (0%):
[1135150513] SERVICE ALERT: osl1mux1;Disk use /var;OK;HARD;3;DISK OK -
free space: /var 2679 MB (66%):
In the nagios config files, I have defined a contact:
define contact{
contact_name eio
alias Eivind Olsen
service_notification_period 24x7
host_notification_period 24x7
service_notification_options w,u,c,r
host_notification_options d,r
service_notification_commands notify-by-email
host_notification_commands host-notify-by-email
email eio at example.com
}
I have a contactgroup:
define contactgroup{
contactgroup_name admins
alias Nagios Administrators
members eio
}
Here's the generic-host template:
define host{
name generic-host
notifications_enabled 1
event_handler_enabled 1
flap_detection_enabled 1
failure_prediction_enabled 1
process_perf_data 1
retain_status_information 1
retain_nonstatus_information 1
max_check_attempts 3
notification_interval 60
notification_period 24x7
notification_options d,r
contact_groups admins
register 0
}
Here is the host definition:
define host{
use generic-host
host_name osl1mux1
parents oslo-mail
alias Mail mux Oslo
address 10.0.1.2
check_command check-host-alive
}
Here is the service definition for the filesystem-check:
define service{
use generic-service
host_name osl1mux1
service_description Disk use /var
is_volatile 0
check_period 24x7
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
contact_groups admins
notification_interval 960
notification_period 24x7
check_command check_nrpe_ssl!check_disk_var
}
--
Regards / Hilsen
Eivind Olsen
<eivind at aminor.no>
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list