mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fixes
git-svn-id: http://www.observium.org/svn/observer/trunk@257 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -38,9 +38,9 @@ while ($device = mysql_fetch_array($device_query)) {
|
||||
|
||||
# include("includes/discovery/unix-memory.php");
|
||||
|
||||
include("cisco-pw.php");
|
||||
# include("cisco-pw.php");
|
||||
|
||||
# include("cisco-vrf.php");
|
||||
include("includes/discovery/cisco-vrf.php");
|
||||
|
||||
echo("\n"); $devices_polled++;
|
||||
}
|
27
test.php
27
test.php
@@ -1,27 +0,0 @@
|
||||
#!/usr/bin/php
|
||||
|
||||
<?php
|
||||
|
||||
include("config.php");
|
||||
include("includes/functions.php");
|
||||
|
||||
$query = mysql_query("SELECT * FROM devices WHERE device_id = '8'");
|
||||
|
||||
$array = mysql_fetch_array($query);
|
||||
|
||||
echo($array[1] . "\n");
|
||||
|
||||
mysql_query("UPDATE `devices` SET `hostname` = 'sotsci-fw-office01.vostron.net' WHERE `device_id` = '8'");
|
||||
|
||||
echo(mysql_affected_rows() . " rows changed\n");
|
||||
|
||||
$query = mysql_query("SELECT * FROM devices WHERE device_id = '8'");
|
||||
|
||||
$array = mysql_fetch_array($query);
|
||||
|
||||
echo($array[1] . "\n");
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
Reference in New Issue
Block a user