change the SMS Contents

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
bashar.abed
Posts: 153
Joined: Tue Oct 11, 2016 1:34 am
Location: Ramallah West Bank Palestine
Contact:

change the SMS Contents

Post 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
bashar.abed
Posts: 153
Joined: Tue Oct 11, 2016 1:34 am
Location: Ramallah West Bank Palestine
Contact:

Re: change the SMS Contents

Post 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
You do not have the required permissions to view the files attached to this post.
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: change the SMS Contents

Post 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%
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
bashar.abed
Posts: 153
Joined: Tue Oct 11, 2016 1:34 am
Location: Ramallah West Bank Palestine
Contact:

Re: change the SMS Contents

Post 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
You do not have the required permissions to view the files attached to this post.
bashar.abed
Posts: 153
Joined: Tue Oct 11, 2016 1:34 am
Location: Ramallah West Bank Palestine
Contact:

Re: change the SMS Contents

Post by bashar.abed »

Hi,

i added the command below and there is no effect on Nagios System what is a problem
You do not have the required permissions to view the files attached to this post.
bashar.abed
Posts: 153
Joined: Tue Oct 11, 2016 1:34 am
Location: Ramallah West Bank Palestine
Contact:

Re: change the SMS Contents

Post by bashar.abed »

i think in this commands right or not

xi_host_notification_handler

i applied the command the same no effect
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: change the SMS Contents

Post 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%
You do not have the required permissions to view the files attached to this post.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
bashar.abed
Posts: 153
Joined: Tue Oct 11, 2016 1:34 am
Location: Ramallah West Bank Palestine
Contact:

Re: change the SMS Contents

Post by bashar.abed »

Hi,

many thanks
npolovenko
Support Tech
Posts: 3457
Joined: Mon May 15, 2017 5:00 pm

Re: change the SMS Contents

Post by npolovenko »

@bashar.abed, You're welcome. Are we good to close this thread as resolved?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked