add port parser to default config, rename some stuff

git-svn-id: http://www.observium.org/svn/observer/trunk@1328 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Adam Amstrong
2010-07-10 11:47:27 +00:00
parent 1c997b30b5
commit 776f655055
8 changed files with 18 additions and 14 deletions
+4 -2
View File
@@ -1,12 +1,14 @@
#!/usr/bin/php
<?php
### ObserverNMS Device Poller
include("includes/defaults.inc.php");
include("config.php");
include("includes/functions.php");
$poller_start = utime();
echo("Observer Poller v".$config['version']."\n\n");
echo("ObserverNMS Poller v".$config['version']."\n\n");
$options = getopt("h:t:i:n:d::a::");
@@ -259,7 +261,7 @@ $poller_end = utime(); $poller_run = $poller_end - $poller_start; $poller_time =
$string = $argv[0] . " $doing " . date("F j, Y, G:i") . " - $polled_devices devices polled in $poller_time secs";
if ($debug) echo("$string\n");
shell_exec("echo '".$string."' >> ".$config['install_dir']."/observer.log"); # FIXME EWW
shell_exec("echo '".$string."' >> ".$config['install_dir']."/observernms.log"); # FIXME EWW
?>