avoid a segfault, if ulimit is set to unlimited
make constants from maxfd values (#1300)

its good practice to use constants instead of (random) values.

Signed-off-by: Sven Nierlein <sven@nierlein.de>
Merge pull request #1304 from monitoring-plugins/pr-1183-enhanced

merge pull request #1300 while moving values to constants