set $user to <unknown> if lsof could not tell the username
authorEvgeni Golov <evgeni@debian.org>
Sat, 24 Sep 2016 09:25:33 +0000 (11:25 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sat, 24 Sep 2016 09:54:42 +0000 (11:54 +0200)
commit6e1c9dcd866cae677f7f995693e337ae8ab7510c
treebae7bac4c9fca44f540eaac1af1cc48fef6e0eea
parentf50ffddc56451331a78862cf6e59087059c4ddd6
set $user to <unknown> if lsof could not tell the username

this happens e.g. on hosts that run containers in own user namespaces

without, the output will be full of warnings:
 Use of uninitialized value $user in hash element at dsa-check-libs line 188.

Signed-off-by: Peter Palfrader <peter@palfrader.org>
dsa-nagios-checks/checks/dsa-check-libs