cycle all configured communities on addhost, remove dead code, minor optimisation on isdomainresolves

git-svn-id: http://www.observium.org/svn/observer/trunk@1933 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
Tom Laermans
2011-03-19 10:18:45 +00:00
parent 163b66b044
commit afb40ceac9
4 changed files with 16 additions and 17 deletions
+1 -1
View File
@@ -528,7 +528,7 @@ function createHost($host, $community, $snmpver, $port = 161, $transport = 'udp'
function isDomainResolves($domain)
{
return (gethostbyname($domain) != $domain | count(dns_get_record($domain)) != 0);
return (gethostbyname($domain) != $domain || count(dns_get_record($domain)) != 0);
}
function hoststatus($id)
-1
View File
@@ -1,7 +1,6 @@
<?php
## FIXME not used, do we still need this?
## included from includes/unix.php, which is also unused
function mailerrorgraphUnix ($rrd, $graph, $from, $to, $width, $height, $title, $vertical) {
global $config, $installdir;
-3
View File
@@ -1,3 +0,0 @@
<?php
include("unix-graphing.php");
?>