#!/usr/bin/env php | Poll single device -h all Poll all devices -p Poll for specific poller_id OPTIONS: -h Device hostname, id or hostname or keys all. -q Quiet output. -V Show version and exit. DEBUGGING OPTIONS: -d Enable debugging output. -dd More verbose debugging output. %rInvalid arguments!%n", 'color'); exit; } print_cli_heading("%WStarting notifications run at " . date("Y-m-d H:i:s"), 0); if ($res = process_notifications($params)) { $runtime = elapsed_time($start); // Send all notifications (also for syslog from queue) logfile('observium.log', count($res) . " notifications processed in " . substr($runtime, 0, 5) . "s."); } else { // For debug: //logfile('observium.log', "No new notifications."); } print_cli_heading("%WFinished notifications run at " . date("Y-m-d H:i:s"), 0); // EOF