Email Notification website address and arguments in Email
Posted: Tue Jun 09, 2020 11:02 am
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
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