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