2016-03-24 10:34:56 -04:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
* LibreNMS
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify it
|
|
|
|
* under the terms of the GNU General Public License as published by the
|
|
|
|
* Free Software Foundation, either version 3 of the License, or (at your
|
|
|
|
* option) any later version. Please see LICENSE.txt at the top level of
|
|
|
|
* the source code distribution for details.
|
2016-08-28 12:32:58 -05:00
|
|
|
*/
|
2016-03-24 10:34:56 -04:00
|
|
|
|
|
|
|
if (!$os) {
|
|
|
|
if (preg_match('/^CANOPY/', $sysDescr)) {
|
|
|
|
$os = 'canopy';
|
2016-08-28 12:32:58 -05:00
|
|
|
} elseif (preg_match('/^CMM/', $sysDescr)) {
|
2016-03-24 10:34:56 -04:00
|
|
|
$os = 'canopy';
|
|
|
|
}
|
|
|
|
}
|