disbale SMS alert
Posted: Wed May 05, 2010 7:01 am
Hi guys,
I have nagios working in my office. Problem is if I make any changes in config and restart the service I get sms alerts. All I wanted to know is there any good way by taking all nagios config in maintenance mode so I shouldnt get any sms alert for that time?
Today I replace the sms entry in contacts.cfg with a temp email id.
define contact{
contact_name ABCSMS
alias ABCSMS
service_notification_period workhours
host_notification_period workhours
service_notification_options c,r
host_notification_options d,r
service_notification_commands notify-by-sms
host_notification_commands host-notify-by-sms
# email 07---------.nqsgq---@24xgateway.com
email abc@officedomain.com
}
After making changes I restarted the nagios service and tested every thing was fine. but when I put the sms gateway back in contacts.cfg and restarted the nagios service I got 1000 sms again ... As restarting nagios send alerts that these services/hosts are down .....
If we make any changes in contacts.cfg do we have to restart the nagios service?
Many thanks in advance.
Sam
I have nagios working in my office. Problem is if I make any changes in config and restart the service I get sms alerts. All I wanted to know is there any good way by taking all nagios config in maintenance mode so I shouldnt get any sms alert for that time?
Today I replace the sms entry in contacts.cfg with a temp email id.
define contact{
contact_name ABCSMS
alias ABCSMS
service_notification_period workhours
host_notification_period workhours
service_notification_options c,r
host_notification_options d,r
service_notification_commands notify-by-sms
host_notification_commands host-notify-by-sms
# email 07---------.nqsgq---@24xgateway.com
email abc@officedomain.com
}
After making changes I restarted the nagios service and tested every thing was fine. but when I put the sms gateway back in contacts.cfg and restarted the nagios service I got 1000 sms again ... As restarting nagios send alerts that these services/hosts are down .....
If we make any changes in contacts.cfg do we have to restart the nagios service?
Many thanks in advance.
Sam