add the website url in email notification

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.
Locked
raingary
Posts: 9
Joined: Tue Nov 29, 2011 2:04 pm

add the website url in email notification

Post by raingary »

We are doing website URL monitoring by using check_http plugin and passing arguments for port and URL with -p and -u option.Now for any service we want to have the full URL like http://<servername>:<port>/URL in the email notification whenever we get Nagios notifications.
Can someone suggest a way how I can save the arguments passed in check_http plugin for any service and fetch those same values in the email notification.
I saw the notify_service_mail plugin but unable to understand how to save the arguments for port and URL in MACROS.
Locked