Here's the official documentation regarding notifications:
https://assets.nagios.com/downloads/nag ... tions.html
michaelpn wrote:Hi,
I would like be reminded when my drive space is for example under 5 GB at my Exchange Server.
How do I do this ?
Essentially, you can configure your host/service objects to trigger a notification whenever and however you like. The conditions under which a notification is triggered for a given host/service object are dictated in that object's configuration.
I notice all of your contact objects are configured to use the following host notification options:
Code: Select all
host_notification_period 24x7
host_notification_options d,u,r
host_notification_commands notify-host-by-sms,notify-host-by-email
There are also directives that dictate how service notifications are handled for a given contact; Directives like:
Code: Select all
service_notifications_enabled [0/1]
service_notification_period timeperiod_name
service_notification_options [w,u,c,r,f,s,n]
service_notification_commands command_name
I assume you are currently inheriting these options from the
generic-contact template? Can you share a copy of the
generic-contact contact definition?
michaelpn wrote:As written I would also like to be reminded by a sms or mail if my drive is under a curtained limited.
You could essentially copy your
notify-host-by-sms command definition and modify it a bit to create a notify-service-by-sms command that uses slightly different macros that are more appropriate for service notifications. Then, once that command definition is finished, assign it to your contact objects via the service_notification_commands directive.