fix perfdata output and use v3 query API to avoid depreaction warning
Merge pull request #1 from visibilityspots/master

Thanks!