set hasstatus and hasrestart attribute to nagios service