$argValue = false;
             }
         } else {
             Log::warning("Ingnoring unexpected parameter '{$arg}'");
         }
     }
     $argIndex++;
 }
 if ($argValue === false) {
     $argValue = 3600;
 }
 $grantedCount = 0;
 $deniedCount = 0;
 $errorCount = 0;
 $dbh = new DBH(DBDSN, DBUSER, DBPASS);
 $select = $dbh->prepare("SELECT typeid, count(typeid) FROM event WHERE last >= ? GROUP BY typeid");
 $select->bindValue(1, time() - $argValue, PDO::PARAM_INT);
 $select->execute();
 $select->bindColumn(1, $typeid, PDO::PARAM_STR);
 $select->bindColumn(2, $count, PDO::PARAM_INT);
 while ($select->fetch(PDO::FETCH_BOUND) !== false) {
     switch ($typeid) {
         case MonitorEvent::TYPEID_GRANTED:
             $grantedCount = $count;
             break;
         case MonitorEvent::TYPEID_DENIED:
             $deniedCount = $count;
             break;
         case MonitorEvent::TYPEID_ERROR:
             $errorCount = $count;
             break;