Email Notification website address and arguments in Email

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
imadc
Posts: 58
Joined: Wed Jun 14, 2017 12:10 pm

Email Notification website address and arguments in Email

Post by imadc »

Hello Team

We have websites that are being monitored over time and alert us in email if site is down

for example:
HOSTADDRESS= www.test.com

$USER1$/check_http -H $HOSTADDRESS$ $ARG1$ -t 120
$ARG1$ = -f ok -u '/test/default.aspx' -S -p 443



How can we add the argument parameter in the email notification send out to the team so that they can validate access to the page right away? For example the email will reconstruct the full url with the values in HOSTADDRESS & argument -> %hostaddress%/test/default.aspx


Currently it is set the default way as mentioned below

***** Nagios XI Alert *****
%alertsummary%
Notification Type: %type%
Service: %service%
Host: %host%
Address: %hostaddress%
State: %servicestate%
Info: %serviceoutput%
Date/Time: %datetime%

Respond: %responseurl%
Nagios URL: %xiserverurl%


Thanks
Insurity
User avatar
jbrunkow
Posts: 441
Joined: Fri Mar 13, 2020 10:45 am

Re: Email Notification website address and arguments in Emai

Post by jbrunkow »

You may want to define a macro for that purpose.

Please have a look at our documentation on the subject.
MACROS DOCUMENT
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked