set hasstatus and hasrestart attribute to nagios