Fix for #181 (duplicate COMMAND sent to Nagios)

Hi,

Here a little patch who fix #181