Update nagios.php

Based on http://www.mogilowski.net/lang/en-us/projects/racktables/ original description to use custom attribute. Original code lacks this feature.
I've decided to add simple check if the given attribute exists and is not empty - then it is used to call Nagios.