Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
@rlinux57 - did this have to do with your previous post, or are you still experiencing an issue?
Can you post the host / service and contact configuration that are using the notify-host-by-sms? Also, what are the permissions of /usr/local/nagios/sms/sendsms.php?
[root@monitor ~]# cat /usr/local/nagios/etc/objects/contacts.cfg
define contact{
contact_name nagiosadmin ; Short name of user
use generic-contact ; Inherit default values from generic-contact template (defined above)
alias Nagios Admin ; Full name of user
service_notification_period 24x7 ; service notifications can be sent anytime
host_notification_period 24x7 ; host notifications can be sent anytime
service_notification_options w,u,c,r,f,s ; send notifications for all service states, flapping events, and scheduled downt$
host_notification_options d,u,r,f,s ; send notifications for all host states, flapping events, and scheduled downtime$
service_notification_commands notify-service-by-email ; send service notifications via email
host_notification_commands notify-host-by-email ; send host notifications via email
service_notification_commands notify-service-by-email,notify-service-by-sms
host_notification_commands notify-host-by-email,notify-host-by-sms
email Email ID ; <<***** CHANGE THIS TO YOUR EMAIL ADDRESS ******
}
###############################################################################
###############################################################################
#
# CONTACT GROUPS
#
###############################################################################
###############################################################################
# We only have one contact in this simple configuration file, so there is
# no need to create more than one contact group.
define contactgroup{
contactgroup_name admins
alias Nagios Administrators
members nagiosadmin
}
I have fixed the issue, it was happened due to wrong syntax in commands.cfg file. Kindly let me know how to setup timeperiod of notify by email/sms, it send same trap/event again and again after sometime.