[minor] tweak flapping agents query
[minor] only use linux agent watchdog is respawn is set