I changed this script because it didnt work out of the box like it should. While doing this I fixed a warning and moved it to Nagios plugins utils.pm
Now it timeout everytime after 15sec (default) or after a given time defined by '-t <seconds>'
.
You don't need libplugins.pm anymore. If nagios is installed in
/usr/local/nagios, then just download it and copy it to
/usr/local/nagios/libexec, chmod 755 it and be happy.
Else copy it to your Nagios libexec folder, edit it and change the
"use lib "/usr/local/nagios/libexec";"
line to your nagios libexec folder.