Update nagios.php

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