rapid response url help
rapid response url help
I'm getting lost in trying to set up the rapid response url
i saw that XI has it avail by default
but i'm not sure on what to do?
Do I just add %responseurl% to this line, and click the check box?
then do the same for Service state?
i saw that XI has it avail by default
but i'm not sure on what to do?
Do I just add %responseurl% to this line, and click the check box?
then do the same for Service state?
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: rapid response url help
Rapid response URL is only available in Notifications sent to XI users and is not available for event handlers as the rapid response URL contains a sequence that is different for each user that receive it so the system know what user to log the activity as.
To see the available options for these event handlers see here:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
To see the available options for these event handlers see here:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf
Re: rapid response url help
y, all they want is a link directly to the check when the notification email goes out
is there a simpler way to do it?
I do not see it in the list of standard macros
is there a simpler way to do it?
I do not see it in the list of standard macros
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: rapid response url help
You would want to craft a URL like the following replacing XISERVER, HOSTNAME and SERVICENAME
service
host
service
Code: Select all
http://XISERVER/nagiosxi/?xiwindow=includes%2Fcomponents%2Fxicore%2Fstatus.php%3Fshow%3Dservicedetail%26host%3DHOSTNAME%26service%3DSERVICENAME%26dest%3DautoCode: Select all
http://XISERVER/nagiosxi/?xiwindow=includes%2Fcomponents%2Fxicore%2Fstatus.php%3Fshow%3Dhostdetail%26host%3DHOSTNAMERe: rapid response url help
sometimes you guys make it really hard to do stuff
I did a hack
I stole the service notes macro and crafted a url like this to link me directly to the check in the email
http://prdnagxi01.example.net/nagiosxi/ ... &dest=auto
Can I ask that you create a standard macro for $XISERVER$ so I don't have to customize the check for every one of my XI installations
I did a hack
I stole the service notes macro and crafted a url like this to link me directly to the check in the email
http://prdnagxi01.example.net/nagiosxi/ ... &dest=auto
Can I ask that you create a standard macro for $XISERVER$ so I don't have to customize the check for every one of my XI installations
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: rapid response url help
There is this from the doc I sent, you can use that as part of the URLjenstar13 wrote:sometimes you guys make it really hard to do stuff
I did a hack
I stole the service notes macro and crafted a url like this to link me directly to the check in the email
http://prdnagxi01.example.net/nagiosxi/ ... &dest=auto
Can I ask that you create a standard macro for $XISERVER$ so I don't have to customize the check for every one of my XI installations
Code: Select all
%xiserverurl%"Adding Nagios Core Macros To The Global Event Handler Component"
Re: rapid response url help
when I used your url, it said event not found, so I made the assumption that I was supposed to change the Variables to standard Nagios macros.
https://assets.nagios.com/downloads/nag ... olist.html
https://assets.nagios.com/downloads/nag ... olist.html
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: rapid response url help
Did you enclose it in quotes when adding it to the handler?jenstar13 wrote:when I used your url, it said event not found, so I made the assumption that I was supposed to change the Variables to standard Nagios macros.
https://assets.nagios.com/downloads/nag ... olist.html
Code: Select all
"%xiserverurl%"Re: rapid response url help
no, I copy and pasted what was sent
it's all good not and I will try the other macro
thank you
it's all good not and I will try the other macro
thank you
Re: rapid response url help
I really wish it was a standard macro like $SERVICENOTESURL$ so I could just add the macro here
Code: Select all
/usr/bin/printf "%b" "***** Lvsprdnagxi01 Alert *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$\n\nService Notes: $SERVICENOTES$\n\nService Notes URL:$SERVICENOTESURL$\n\n Comments: $SERVICEACKCOMMENT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ LVSPRD Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$