mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 16:08:55 +02:00
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:
@@ -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,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;
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
<?php
|
||||
include("unix-graphing.php");
|
||||
?>
|
||||
Reference in New Issue
Block a user