\PluginFusioninventoryCommunicationNetworkDiscovery

Manage the communication of network discovery feature with the agents.

Summary

Methods
Properties
Constants
import()
sendCriteria()
rulepassed()
importDevice()
updateNetworkInfo()
initSpecificInfo()
updateSNMPInfo()
addtaskjoblog()
getMethod()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

import()

import(string  $p_DEVICEID, array  $a_CONTENT, array  $arrayinventory) : string

Import data, so get data from agent to put in GLPI

Parameters

string $p_DEVICEID

device_id of agent

array $a_CONTENT
array $arrayinventory

Returns

string —

errors or empty string

sendCriteria()

sendCriteria(array  $arrayinventory) 

Prepare data and send them to rule engine

Parameters

array $arrayinventory

inventory array

rulepassed()

rulepassed(integer  $items_id, string  $itemtype, integer  $entities_id) 

After rule engine passed, update task (log) and create item if required

Parameters

integer $items_id

id of the item (0 = not exist in database)

string $itemtype
integer $entities_id

importDevice()

importDevice(object  $item) 

Import discovered device (add / update data in GLPI DB)

Parameters

object $item

updateNetworkInfo()

updateNetworkInfo(array  $arrayinventory, string  $itemtype, integer  $items_id, string  $instanciation_type, boolean  $check_addresses) 

Update networkport information

Parameters

array $arrayinventory
string $itemtype
integer $items_id
string $instanciation_type

type of port (ethernet, wifi...)

boolean $check_addresses

initSpecificInfo()

initSpecificInfo(string  $key_field, integer  $id, object  $item) : array

Get info from database

Parameters

string $key_field
integer $id
object $item

Returns

array

updateSNMPInfo()

updateSNMPInfo(array  $arrayinventory, array  $input, object  $item) 

Update SNMP information of a device (sysdescr, SNMP authentication.

..)

Parameters

array $arrayinventory
array $input
object $item

addtaskjoblog()

addtaskjoblog() 

Used to add log in the taskjob

getMethod()

getMethod() : string

Get method name linked to this class

Returns

string