mirror of
https://github.com/stylersnico/librenms.git
synced 2026-08-03 00:11:49 +02:00
Merge pull request #1434 from paulgear/pr-1402-scrutinizer
Fix closing tag best practice, tidy formatting
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
if (!$os) {
|
if (!$os) {
|
||||||
if (preg_match("/^Meraki MR/", $sysDescr)) { $os = "merakimr"; }
|
if (preg_match("/^Meraki MR/", $sysDescr)) {
|
||||||
|
$os = "merakimr";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
if (!$os) {
|
if (!$os) {
|
||||||
if (preg_match("/^Meraki MS/", $sysDescr)) { $os = "merakims"; }
|
if (preg_match("/^Meraki MS/", $sysDescr)) {
|
||||||
|
$os = "merakims";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
|
||||||
|
|||||||
@@ -11,7 +11,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
if (!$os) {
|
if (!$os) {
|
||||||
if (preg_match("/^Meraki MX/", $sysDescr)) { $os = "merakimx"; }
|
if (preg_match("/^Meraki MX/", $sysDescr)) {
|
||||||
|
$os = "merakimx";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
|
||||||
|
|||||||
@@ -10,9 +10,6 @@
|
|||||||
* the source code distribution for details.
|
* the source code distribution for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if(empty($hardware)) {
|
if (empty($hardware)) {
|
||||||
$hardware = snmp_get($device, "sysDescr.0", "-Osqv", "SNMPv2-MIB");
|
$hardware = snmp_get($device, "sysDescr.0", "-Osqv", "SNMPv2-MIB");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|||||||
@@ -10,9 +10,6 @@
|
|||||||
* the source code distribution for details.
|
* the source code distribution for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if(empty($hardware)) {
|
if (empty($hardware)) {
|
||||||
$hardware = snmp_get($device, "sysDescr.0", "-Osqv", "SNMPv2-MIB");
|
$hardware = snmp_get($device, "sysDescr.0", "-Osqv", "SNMPv2-MIB");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|||||||
@@ -10,9 +10,6 @@
|
|||||||
* the source code distribution for details.
|
* the source code distribution for details.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
if(empty($hardware)) {
|
if (empty($hardware)) {
|
||||||
$hardware = snmp_get($device, "sysDescr.0", "-Osqv", "SNMPv2-MIB");
|
$hardware = snmp_get($device, "sysDescr.0", "-Osqv", "SNMPv2-MIB");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
?>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user