mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-30 16:14:21 +02:00
fixes
git-svn-id: http://www.observium.org/svn/observer/trunk@414 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -17,7 +17,6 @@ if($argv[1] && $argv[2] && $argv[3]) {
|
|||||||
if ( isDomainResolves($argv[1])){
|
if ( isDomainResolves($argv[1])){
|
||||||
if ( isPingable($argv[1])) {
|
if ( isPingable($argv[1])) {
|
||||||
if ( mysql_result(mysql_query("SELECT COUNT(*) FROM `devices` WHERE `hostname` = '".mres($host)."'"), 0) == '0' ) {
|
if ( mysql_result(mysql_query("SELECT COUNT(*) FROM `devices` WHERE `hostname` = '".mres($host)."'"), 0) == '0' ) {
|
||||||
echo($config['snmpget'] ." -m SNMPv2-MIB -Oqv -$snmpver -c $community $host:$port sysName.0");
|
|
||||||
$snmphost = trim(str_replace("\"", "", shell_exec($config['snmpget'] ." -m SNMPv2-MIB -Oqv -$snmpver -c $community $host:$port sysName.0")));
|
$snmphost = trim(str_replace("\"", "", shell_exec($config['snmpget'] ." -m SNMPv2-MIB -Oqv -$snmpver -c $community $host:$port sysName.0")));
|
||||||
# var_dump($snmphost);
|
# var_dump($snmphost);
|
||||||
if ($snmphost == $host || $hostshort = $host) {
|
if ($snmphost == $host || $hostshort = $host) {
|
||||||
|
|||||||
Reference in New Issue
Block a user