Http timeout
-
Hi all,
Im using ServiceCheck.HTTP to monitor local websites.
Sometimes we have timeout in these websites.
When this occour i see message <<< ERROR >>> in dci last values and no value is registered in history.Is there any way to set a timeout in that request and register a value?
Example: if site not response in 5 minutes register value 10 in history.I can use too ECS.HttpLoadTime to got response time from site, but without a timeout value and register i cant define some threholds.
Or tranformation script, like if website not response in 1000 ms write value 1000 so i can make a threhold based in values.Tks a lot!


-
Hi,
I've added configuration parameter NegativeResponseTimeOnError for portcheck subagent to return negative value instead of data collection error in case of service communication error. Config example:
MasterServers = 127.0.0.1, ::1, 10.5.0.0/24 LogFile = /opt/netxms/log/nxagentd.log SubAgent = portcheck.nsm [PORTCHECK] NegativeResponseTimeOnError = trueBest regards,
Victor -
-
@victor said in Http timeout:
Hi,
I've added configuration parameter NegativeResponseTimeOnError for portcheck subagent to return negative value instead of data collection error in case of service communication error. Config example:
MasterServers = 127.0.0.1, ::1, 10.5.0.0/24 LogFile = /opt/netxms/log/nxagentd.log SubAgent = portcheck.nsm [PORTCHECK] NegativeResponseTimeOnError = trueBest regards,
VictorVictor ,
I added the parameter.
Let's see what happens now:)
Thank you very much.tomaskir,
It's not possible because the error has no return.
Only appear in dci status, not in event or history.
Thanks for always trying to help. -
I mean that I just added it
You have to wait for 2.0.3 release or build agent from git repository.Best regards,
Victor -
-
You can use a "Data collection error" threshold.
Of course a data collection has no value and will not show in history, but you can still create a threshold that will generate an event when a data collection error occurs.
As I mentioned, its available as a Function in Threshold definition.Go in an try it out.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register Login