Page 1 of 1
change the SMS Contents
Posted: Mon Nov 05, 2018 8:45 am
by bashar.abed
Hi,
we have nagios XI version 5.4.13 VM machine ,we need to change SMS contents notification
the below is SMS send to admin we need to add contact group IT for example
before change
OK -RECOVERY : PG-APP-ser/Temperature2 State: OK Time: 02:26:07 Additional Info:OK - . Temperature is 30C
after change
OK -RECOVERY : PG-APP-ser/Temperature2 State: OK Time: 02:26:07 Additional Info:OK - . Temperature is 30C contact group is IT
Thanks
Re: change the SMS Contents
Posted: Mon Nov 05, 2018 9:20 am
by bashar.abed
and please we need to add the SMS notification
Manage Contacts
how do this
for example i added Ahmad and Mohammad as contact we need to appear them to SMS notification
Thanks
Re: change the SMS Contents
Posted: Mon Nov 05, 2018 2:10 pm
by npolovenko
Hello,
@bashar.abed. In Nagios web interface go to the Configure menu, then click on Core Configurations Manager, click on the commands menu in the left column. Search for the following commands:
xi_host_event_handler and
xi_service_event_handler. Add the following at the end of each command:
--contactgroupname=$CONTACTGROUPNAME$
In the notification message template on your screenshot underneath the Info line insert the follwoing line:
Contactgroup: %contactgroupname%
Re: change the SMS Contents
Posted: Tue Nov 06, 2018 1:26 am
by bashar.abed
Hi,
many thanks for your response i will check it and feedback but we need a single contact not group contact as shown graph
Thanks
Re: change the SMS Contents
Posted: Tue Nov 06, 2018 5:00 am
by bashar.abed
Hi,
i added the command below and there is no effect on Nagios System what is a problem
Re: change the SMS Contents
Posted: Tue Nov 06, 2018 5:22 am
by bashar.abed
i think in this commands right or not
xi_host_notification_handler
i applied the command the same no effect
Re: change the SMS Contents
Posted: Tue Nov 06, 2018 11:05 am
by npolovenko
@bashar.abed, Looks like you haven't added the macro to the actual message:
command2.PNG
If you just want to include the contact's name instead of the contactgrpoups name change:
--contactgroupname=$CONTACTGROUPNAME$
to
--contactname=$CONTACTNAME$
And
Contactgroup: %contactgroupname%
to
Contact: %contactname%
Re: change the SMS Contents
Posted: Tue Nov 06, 2018 12:19 pm
by bashar.abed
Hi,
many thanks
Re: change the SMS Contents
Posted: Tue Nov 06, 2018 2:13 pm
by npolovenko
@bashar.abed, You're welcome. Are we good to close this thread as resolved?