Build precise queries to find exactly what you need
Press ESC to close
Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More
Instead of using gethostname():
hostname = socket.gethostname()
to identify a local node and check its status if node.attributes[‘name’].value == hostname:
is better use directly: if node.attributes[‘local’].value == “1”: