Hi Tom, Yeah, I found those; ./includes/functions.php in function isPingable starting on line 517 $timeout min is 50, max is 2000. $retries min is 1, max is 10.
I ended up setting them manually just under where it checks they are within those limits $timeout = 500; $retries = 3;
Since doing this everything has gone back to how it was before the update :)
Clearly this is a dirty hack so but it'll do for the moment.
Cheers, Nathan
-----Original Message----- From: observium [mailto:observium-bounces@observium.org] On Behalf Of Tom Laermans Sent: Wednesday, 12 February 2014 7:29 PM To: Observium Network Observation System Subject: Re: [Observium] Ping settings don't apply when set in config.php
Hi Nathan,
Somewhere in the code is a min/max for these values, I'm not sure what they are though...
Tom
On 12/02/2014 03:37, Nathan Phelan wrote:
Hi Guys, I've just updated our version to the subscription one and found several of our devices now show in Observium as going up and down. After a big of digging it looks like this is because their latency is around the 50ms mark and they fluctuate up and down around 5ms so the default ping timeout times out. I tried setting the following in config.php but the behaviour did not change.
Ping Settings $config['ping']['timeout'] = 500; # timeout in ms $config['ping']['retries'] = 6; # how many times to retry the query
I added a bit of code to the debug to print out the values of $timeout and $retries in the isPingable function and found that it didn't matter what was set in config.php the values would always end up at $timeout=50 and $retries=1. I set them manually in the function just above $sleep and it kicked in and worked and the up/down notifications behaved as they used to.
Have I goofed up the config.php somehow (I used the same as above) or is something else NQR somewhere?
All other options in config.php seem to work and php -l config.php returns "No syntax errors detected in config.php"
Cheers, Nathan Phelan
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
_______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium