Error: This rapid response URL has expired and can no longer

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Error: This rapid response URL has expired and can no longer

Post by dlukinski »

Hi

with 5.5.4 upgrade we now getting "Error: This rapid response URL has expired and can no longer be used." on emails only couple of hours old.
How to fix this problem (we have to be able to respond to emails up to 1 week old)?

Thank you
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Error: This rapid response URL has expired and can no lo

Post by scottwilkerson »

This was added in 5.5.0 to expire after 30 minutes.

We have had other requests to make this adjustable and that feature will be added in 5.6.0 when it is released.

Until then, you can adjust the time with the following command to increase the value to 1 week
If you have a upgraded system still using postgresql

Code: Select all

echo "INSERT INTO xi_options (name, value) VALUES ('rr_valid_link_timeout', '604800');"|psql nagiosxi nagiosxi
Or mysql

Code: Select all

echo "INSERT INTO xi_options (name, value) VALUES ('rr_valid_link_timeout', '604800');"|mysql -pnagiosxi nagiosxi
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Error: This rapid response URL has expired and can no lo

Post by dlukinski »

scottwilkerson wrote:This was added in 5.5.0 to expire after 30 minutes.

We have had other requests to make this adjustable and that feature will be added in 5.6.0 when it is released.

Until then, you can adjust the time with the following command to increase the value to 1 week
If you have a upgraded system still using postgresql

Code: Select all

echo "INSERT INTO xi_options (name, value) VALUES ('rr_valid_link_timeout', '604800');"|psql nagiosxi nagiosxi
Or mysql

Code: Select all

echo "INSERT INTO xi_options (name, value) VALUES ('rr_valid_link_timeout', '604800');"|mysql -pnagiosxi nagiosxi

How to check which DB our XI is using?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Error: This rapid response URL has expired and can no lo

Post by scottwilkerson »

run the following

Code: Select all

grep dbtype /usr/local/nagiosxi/html/config.inc.php
If any of the returned lines say

Code: Select all

"dbtype" => 'pgsql',
then it is postgresql otherwise mysql
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Error: This rapid response URL has expired and can no lo

Post by dlukinski »

scottwilkerson wrote:run the following

Code: Select all

grep dbtype /usr/local/nagiosxi/html/config.inc.php
If any of the returned lines say

Code: Select all

"dbtype" => 'pgsql',
then it is postgresql otherwise mysql
Hi

Did not quite work that way:


[root@fikc-nagxiprod01 ~]# grep dbtype /usr/local/nagiosxi/html/config.inc.php
$cfg['dbtype'] = ''; // this setting is no longer used - use settings below
"dbtype" => 'pgsql',
"dbtype" => 'mysql',
"dbtype" => 'mysql',
//if (!defined('CFG_ONLY')) { require_once(dirname(__FILE__).'/db/'.$cfg['dbtype '].'.inc.php'); }
[root@fikc-nagxiprod01 ~]# grep dbtype => 'pgsql' /usr/local/nagiosxi/html/config.inc.php
grep: =: No such file or directory
[root@fikc-nagxiprod01 ~]# grep dbtype => 'mysql' /usr/local/nagiosxi/html/config.inc.php
grep: =: No such file or directory
[root@fikc-nagxiprod01 ~]#
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Error: This rapid response URL has expired and can no lo

Post by scottwilkerson »

dlukinski wrote:"dbtype" => 'pgsql',
this line exists as I mentioned, so you would run the following

Code: Select all

echo "INSERT INTO xi_options (name, value) VALUES ('rr_valid_link_timeout', '604800');"|psql nagiosxi nagiosxi
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
dlukinski
Posts: 1130
Joined: Tue Oct 06, 2015 9:42 am

Re: Error: This rapid response URL has expired and can no lo

Post by dlukinski »

scottwilkerson wrote:
dlukinski wrote:"dbtype" => 'pgsql',
this line exists as I mentioned, so you would run the following

Code: Select all

echo "INSERT INTO xi_options (name, value) VALUES ('rr_valid_link_timeout', '604800');"|psql nagiosxi nagiosxi
This is now resolved. Thank you
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Error: This rapid response URL has expired and can no lo

Post by lmiltchev »

I am glad your issue has been resolved!

I am closing this topic.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked