Useful but I’ve some problem?

Hi, I tried to use it.
From command line it works great!
But when I execute plugin from nagios, I get this response:
HTTPAUTH OK: host authenticated successfully
HTTPAUTH: Critical – ExitTrap: 0 (Redefine exit to trap plugin exit with eval BLOCK) at /usr/bin/p1.pl line 61
And then service is down!
Even if I execute command in terminal with debugging options (-d or -s), “HTTPAUTH: Critical – ExitTrap….” doesn’t appear…
May you help me, please?
Thanks in advance 🙂