monitoring: move stuff out of nagios.pp, part 1

Change-Id: Ia9e29b7dcb7a468814cb8443b15e92ef6a4a83ad
Signed-off-by: Giuseppe Lavagetto <glavagetto@wikimedia.org>