No Agent URL not working

All installation and configuration problems and questions

Moderators: gerski, enjay, williamconley, Op3r, Staydog, gardo, mflorell, MJCoate, mcargile, Kumba, Michael_N

No Agent URL not working

Postby mav2287 » Tue Jul 22, 2014 9:36 am

I have been using the No Agent URL for a while now and it recently stopped working. If I copy and paste the url into the browser it works fine and I have debugged the script about a million times. I have checked the other URL triggers and they work except for no agent for example the DISPO URL works fine. I put the No agent URL into the dispo URL and it wouldn't work either. I figured out that this has to do with us switching to SSL for some reason when we are running with SSL the no agent url is not being hit. Does anyone know what would cause this or where in the code I would go to find it the trigger

EDIT
After doing even more playing with this the issue does not seem to be the SSL for the agent. It seems to be an issue with the dispo url being an "https" or SSL address. For some reason it doesn't seem to be able to call it. For example https://www.sample.com/script.php would not run but http://www.sample.com/script.php would run fine. I have tried this on local and even a remote server
ViciBox5.x86_64-5.0.3.preload from .iso upgraded to 13.1 | VERSION: 2.10-444c BUILD: 150129-0828 | 1.8.32.2-vici | Dual Server | No Digium/Sangoma Hardware | No Extra Software After Installation | Intel twin quad core 3Ghz Xeon chips | 32gb of RAM
mav2287
 
Posts: 256
Joined: Thu Oct 03, 2013 6:47 pm

Re: No Agent URL not working

Postby mflorell » Tue Jul 22, 2014 6:56 pm

Some versions of wget will require you to ignore the certificate.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: No Agent URL not working

Postby mav2287 » Tue Jul 22, 2014 11:17 pm

How would I go about doing that and where in the code does it call the no agent URL. I found it interesting that it was only the no agent URL that didn't work and not any others.
ViciBox5.x86_64-5.0.3.preload from .iso upgraded to 13.1 | VERSION: 2.10-444c BUILD: 150129-0828 | 1.8.32.2-vici | Dual Server | No Digium/Sangoma Hardware | No Extra Software After Installation | Intel twin quad core 3Ghz Xeon chips | 32gb of RAM
mav2287
 
Posts: 256
Joined: Thu Oct 03, 2013 6:47 pm

Re: No Agent URL not working

Postby mflorell » Wed Jul 23, 2014 7:33 am

You have to add --no-check-certificate to the wget command executions in the AST_send_URL.pl script.

The URL commands are sent in several different scripts. For the NA url, they go through the above script.
mflorell
Site Admin
 
Posts: 18387
Joined: Wed Jun 07, 2006 2:45 pm
Location: Florida

Re: No Agent URL not working

Postby mav2287 » Wed Jul 23, 2014 8:57 am

Awesome thanks matt. Is there any other place that will need to have wget modified as well? This is the only thing I found that didn't seem to work right. Also I noticed the /tmp files up with those requests from the wget should there be cron to delete those out?
ViciBox5.x86_64-5.0.3.preload from .iso upgraded to 13.1 | VERSION: 2.10-444c BUILD: 150129-0828 | 1.8.32.2-vici | Dual Server | No Digium/Sangoma Hardware | No Extra Software After Installation | Intel twin quad core 3Ghz Xeon chips | 32gb of RAM
mav2287
 
Posts: 256
Joined: Thu Oct 03, 2013 6:47 pm


Return to Support

Who is online

Users browsing this forum: Bing [Bot] and 117 guests

cron