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 = true
Best regards,
Victor
Is creating a threshold on data collection error not enough?
This is available as a Function in Threshold definition.
From what I understand from your post, creating an event on data collection error should be enough for what you want to do.
Quote from: Victor Kirhenshtein on March 21, 2016, 06:34:57 PM
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 = true
Best regards,
Victor
Victor ,
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
Ops my mistake ;D
I will wait for next release :D
Tks! :)
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.