works perfectly well

The script works perfectly well. Although, I was a bit unhappy with the output. So I changed it slightly.
It makes use of Nagios multi line output capabilities and returns all services, that are running.
https://github.com/pashol/nagios-checks/blob/master/check_snmp_win.pl