Home Directory

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Directory

vrelease

Reviews(1)
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":