Page 1 of 1

No Agent URL not working

PostPosted: Tue Jul 22, 2014 9:36 am
by mav2287
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

Re: No Agent URL not working

PostPosted: Tue Jul 22, 2014 6:56 pm
by mflorell
Some versions of wget will require you to ignore the certificate.

Re: No Agent URL not working

PostPosted: Tue Jul 22, 2014 11:17 pm
by mav2287
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.

Re: No Agent URL not working

PostPosted: Wed Jul 23, 2014 7:33 am
by mflorell
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.

Re: No Agent URL not working

PostPosted: Wed Jul 23, 2014 8:57 am
by mav2287
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?