You will need to change the line:
for i in range(15):
to:
for i in range(16):
For this script to work with the latest version of Nagios (Dec, 2017)
You will need to change the line:
for i in range(15):
to:
for i in range(16):
For this script to work with the latest version of Nagios (Dec, 2017)