Plugin check_http takes too long to response

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
jguzzetti
Posts: 17
Joined: Wed Mar 13, 2019 9:09 am

Re: Plugin check_http takes too long to response

Post by jguzzetti »

With this flags the wget command takes more time to respond that without it. I'll let you two attachments with the different outputs.
You do not have the required permissions to view the files attached to this post.
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Plugin check_http takes too long to response

Post by mbellerue »

That is very strange. Is there anything on your network that may monitor packets for suspicious traffic? Because really all we changed here was the user agent, which is just informational data.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
jguzzetti
Posts: 17
Joined: Wed Mar 13, 2019 9:09 am

Re: Plugin check_http takes too long to response

Post by jguzzetti »

We belieave that it isn't a theme of network traffic issue. This same plugin works fine with anothers webservices and web sites that we are monitoring on the company. the webservice is in json format, Could be this the reason? Or the length of the file that should be downloaded is too long? Maybe the file size is the problem? What does the plugin do to get downloaded the file?
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Plugin check_http takes too long to response

Post by mbellerue »

Can we do one more test with the useragent? Could you run your check_http command again, but with this additional flag,

Code: Select all

--useragent="Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0"
See if that comes back in a reasonable amount of time.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
jguzzetti
Posts: 17
Joined: Wed Mar 13, 2019 9:09 am

Re: Plugin check_http takes too long to response

Post by jguzzetti »

Wait a minute...I've tried the flags that you pass to me in the WGET command, not in the check_http plugin. Where should I agrregate this flags?
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Plugin check_http takes too long to response

Post by mbellerue »

The previous flag was for the wget command. You were able to see that without the useragent set, it was able to do its job in a timely fashion, where as with the useragent flag it took a long time.

Now we're going to try modifying check_http's useragent flag to change it to a standard useragent. So with your check_http command, add this flag.

Code: Select all

--useragent="Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:69.0) Gecko/20100101 Firefox/69.0"
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
jguzzetti
Posts: 17
Joined: Wed Mar 13, 2019 9:09 am

Re: Plugin check_http takes too long to response

Post by jguzzetti »

Those flags doesn't change the response time. Anyway, we decided to check de webservice without the json format, so it can response correctly.
You can close this issue.
Thanks for your help.
Yours faithfully.
Locked