Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
vrelease
byvrelease, February 19, 2013
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":
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":