Logo
Explore Help
Sign In
mirror/librenms-librenms
1
0
Fork 0
You've already forked librenms-librenms
mirror of https://github.com/librenms/librenms.git synced 2024-10-07 16:52:45 +00:00
Code Issues Actions Packages Projects Releases Wiki Activity
Files
d302d1a4cef1e09f06939774d1f78b240c202b84
librenms-librenms/includes/discovery/os.inc.php

13 lines
307 B
PHP
Raw Normal View History

small fixes and updates git-svn-id: http://www.observium.org/svn/observer/trunk@541 61d68cd4-352d-0410-923a-c4978735b2b8
2009-12-02 23:50:09 +00:00
<?php
More cleanups and reindents, half way there git-svn-id: http://www.observium.org/svn/observer/trunk@1838 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-15 10:54:59 +00:00
$os = getHostOS($device);
small fixes and updates git-svn-id: http://www.observium.org/svn/observer/trunk@541 61d68cd4-352d-0410-923a-c4978735b2b8
2009-12-02 23:50:09 +00:00
More cleanups and reindents, half way there git-svn-id: http://www.observium.org/svn/observer/trunk@1838 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-15 10:54:59 +00:00
if ($os != $device['os'])
{
$sql = mysql_query("UPDATE `devices` SET `os` = '$os' WHERE `device_id` = '".$device['device_id']."'");
echo("Changed OS! : $os\n");
eventlog("Device OS changed ".$device['os']." => $os", $device['device_id']);
$device['os'] = $os;
}
small fixes and updates git-svn-id: http://www.observium.org/svn/observer/trunk@541 61d68cd4-352d-0410-923a-c4978735b2b8
2009-12-02 23:50:09 +00:00
More cleanups and reindents, half way there git-svn-id: http://www.observium.org/svn/observer/trunk@1838 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-15 10:54:59 +00:00
?>
Reference in New Issue Copy Permalink
Powered by Gitea Page: 303ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API