mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
add more files
git-svn-id: http://www.observium.org/svn/observer/trunk@411 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
@@ -15,9 +15,10 @@ if($argv[1] && $argv[2] && $argv[3]) {
|
|||||||
|
|
||||||
list($hostshort) = explode(".", $host);
|
list($hostshort) = explode(".", $host);
|
||||||
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' ) {
|
||||||
$snmphost = trim(shell_exec($config['snmpget'] ." -m SNMPv2-MIB -Oqv -$snmpver -c $community $host:$port sysName.0 | sed s/\"//g"));
|
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")));
|
||||||
# var_dump($snmphost);
|
# var_dump($snmphost);
|
||||||
if ($snmphost == $host || $hostshort = $host) {
|
if ($snmphost == $host || $hostshort = $host) {
|
||||||
$return = createHost ($host, $community, $snmpver, $port);
|
$return = createHost ($host, $community, $snmpver, $port);
|
||||||
|
7
html/pages/device/collectd.inc.php
Normal file
7
html/pages/device/collectd.inc.php
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
<?
|
||||||
|
|
||||||
|
include("collectd/collectd.php");
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
18
html/pages/device/graphs/os-ios.inc.php
Normal file
18
html/pages/device/graphs/os-ios.inc.php
Normal file
@@ -0,0 +1,18 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
echo("<div class=graphhead>CPU Usage</div>");
|
||||||
|
$graph_type = "cpu"; include ("includes/print-device-graph.php");
|
||||||
|
echo("<br />");
|
||||||
|
echo("<div class=graphhead>Memory Usage</div>");
|
||||||
|
$graph_type = "mem"; include ("includes/print-device-graph.php");
|
||||||
|
echo("<br />");
|
||||||
|
if(mysql_result(mysql_query("SELECT count(*) FROM temperature WHERE temp_host = '" . $device['device_id'] . "'"),0)) {
|
||||||
|
echo("<div class=graphhead>Temperatures</div>");
|
||||||
|
$graph_type = "dev_temp"; include ("includes/print-device-graph.php");
|
||||||
|
echo("<br />");
|
||||||
|
}
|
||||||
|
|
||||||
|
include("netstats.inc.php");
|
||||||
|
include("uptime.inc.php");
|
||||||
|
|
||||||
|
?>
|
5
html/pages/device/graphs/os-ios_xe.inc.php
Normal file
5
html/pages/device/graphs/os-ios_xe.inc.php
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<?
|
||||||
|
|
||||||
|
include("os-ios.inc.php");
|
||||||
|
|
||||||
|
?>
|
5
html/pages/device/graphs/os-linux.inc.php
Normal file
5
html/pages/device/graphs/os-linux.inc.php
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
include("os-unix.inc.php");
|
||||||
|
|
||||||
|
?>
|
5
html/pages/device/graphs/os-unix.inc.php
Normal file
5
html/pages/device/graphs/os-unix.inc.php
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
<?php
|
||||||
|
|
||||||
|
#include("group-collectd.inc.php");
|
||||||
|
|
||||||
|
?>
|
Reference in New Issue
Block a user