read_config(); $smon = date('m' , $start); $sday = date('d' , $start); $syear = date('Y' , $start); $shour = date('G' , $start); $smin = date('i' , $start); $ssec = date('s' , $start); $emon = date('m' , $end); $eday = date('d' , $end); $eyear = date('Y' , $end); $ehour = date('G' , $end); $emin = date('i' , $end); $esec = date('s' , $end); $nagios_base = $config->conf['nagios_base']; print "\n"; } public static function AvailLink($hostname,$servicedesc,$start,$end){ $config = new Config_Model(); $config->read_config(); $hostname = urlencode($hostname); $servicedesc = urlencode($servicedesc); $smon = date('m' , $start); $sday = date('d' , $start); $syear = date('Y' , $start); $shour = date('G' , $start); $smin = date('i' , $start); $ssec = date('s' , $start); $emon = date('m' , $end); $eday = date('d' , $end); $eyear = date('Y' , $end); $ehour = date('G' , $end); $emin = date('i' , $end); $esec = date('s' , $end); $nagios_base = $config->conf['nagios_base']; if($servicedesc == "Host+Perfdata"){ print "\n"; } }