################################################################################
#
# OCS Inventory NG Management Server Setup
#
# Copyleft 2008 OCS Inventory NG Team
# Web: http://www.ocsinventory-ng.org
#
# This code is open source and may be copied and modified as long as the source
# code is always made freely available.
# Please refer to the General Public Licence http://www.gnu.org/ or Licence.txt
################################################################################


OCS Inventory NG logs format

--> GDH;Process ID;Event code;DeviceID;IP address;User agent;Phase;(comment)

Codes elements :

ERRORS
------
500--Query forbidden
502--Invalid device ID or hostname 
503--Impossible to get a key from the config table
504--Impossible to get the last date inventory
505--Impossible to connect to database
506--Inflation problem
507--XML Parsing error
508--Update message unreadeable
509--Impossible to get the account infos
510--Bad content-type
511--File does not exist
512--Malformed request
513--Bad old deviceid
514--synchronisation problem
515--Script error, rollback transaction.
516--Deviceid locked
517--Cannot handle normal duplicate
518--Cannot retrieve database id
519--A device try to add a new computer whereas it is forbidden by filter inventory rules
520--The request for the group is not valid
521--Invalid database connection mode
522--Inventory Cache handling error (Creation)
523--Inventory Cache handling error (Truncate)
524--No checksum
525--Cannot reuse session
526--Error while checking session
527--Cannot end session (DB Fault)
528--No account infos sent
529--Unknown notify type
530--Cannot update ip address (notify handler)

INVENTORY
---------
100--Inventory accepted
101--Inventory succeed
102--Inventory refused
103--New machine(deviceid)
104--Inventory incoming
105--Inventory refused but other task required
106--Prolog stopped by module
107--Inventory stopped by module
108--Cleaning inventory cache
109--Inventory cache handling success
110--Inventory cache out of date
111--Inventory cache already handled (lock fault)
112--Inventory cache updated
113--Inventory section has changed => write it
114--No prolog connection found
115--Inventory refused (no session)

MANAGEMENT
----------
300--Device replaced
301--Device can be duplicated
302--File transmitted (deploy)
304--Deploy off
305--Files transmitted
306--Group out-of-date
307--Revalidate group cache
308--Group is locked by another process
309--Group cache update problem
310--Trusted computer
311--Session started(prolog)
314--Checking expired sessions 
315--Checking is already handled by another process (skipping)
316--Found old sessions (according to OCS_OPT_SESSION_CLEAN_TIME)
317--Session validity undefined : check always succeed
318--Session not found
319--Valid session found
320--End of session
321--Compression used is not zlib
322--Notify event
323--Update ipaddress for device (Notify)
324--No such mac address (notify) New iface ?
325--The computer does not exist
326--A old deviceid is present

IPDISCOVER
----------
1001--Ipdiscover enabled
1002--Ipdiscover disabled
1003--Ipdiscover report error
1004--Ipdiscover incoming
1005--Ipdiscover conflict with group exception

DOWNLOAD
--------
2500--Impossible to get config
2501--Message refers to an unexisting package
2502--Cannot retrieve package history (db error)
2001--Download agent event incoming