-#!/usr/bin/python2
+#!/usr/bin/env python
#
# Authors:
# rafael@postgresql.org.es / http://www.postgresql.org.es/
result = getKeys(health_data,health_keys,node_fqdn)
- except Exception, e:
- print "1"
+ except Exception as e:
+ print ("1")
sys.exit(1)
return result
break
if returncode != 0:
- print "1"
+ print ("1")
sys.exit(1)
else:
- print "1"
+ print ("1")
sys.exit(1)
- except Exception, e:
- print "1"
+ except Exception as e:
+ print ("1")
sys.exit(1)
# Delete temp file with zabbix_sender data
os.remove(tmp_stat_file.name)
# Return value 0 = execution OK
- print "0"
+ print ("0")