mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
bad klaver :>
git-svn-id: http://www.observium.org/svn/observer/trunk@1277 61d68cd4-352d-0410-923a-c4978735b2b8
This commit is contained in:
15
includes/services.inc.php
Normal file
15
includes/services.inc.php
Normal file
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
|
||||
function add_service($service) {
|
||||
global $id;
|
||||
global $hostname;
|
||||
echo "$service ";
|
||||
$sql = "INSERT INTO `services` (`device_id`,`service_ip`,`service_type`,`service_desc`,`service_param`,`service_ignore`)
|
||||
VALUES ('" . mres($id). "','" . mres($hostname) . "','" . mres($service) . "',
|
||||
'" . mres("auto discovered: $service") . "','" . mres("") . "','0')";
|
||||
|
||||
$query = mysql_query($sql);
|
||||
}
|
||||
|
||||
|
||||
?>
|
Reference in New Issue
Block a user