<?php
//accept the table name for service monitoring to calculate
//should be created using HolderFactory
Final Class SNMPHolder extends Holder {
private $snmpmon;
public function __construct($tableservice){
parent::__construct($tableservice);
$this->snmpmon = new SNMPMon();
$this->snmpmon->selectByID($this->tablename);
}
public function getWarningThreshold(){
return $this->snmpmon->getGreenLine();
}
public function getCriticalThreshold(){
return $this->snmpmon->getRedLine();
}
}
?>