I have developed an agent plugin that gets the last system update date from Windows computers. The problem is that although I collect the date and correctly generated the XML, the information is not correctly imported into the database. Any ideas on how to do it? Any help would save my life!!!
XML
...
<UPDATE>
<LASTUPDATE>2017-01-20</LASTUPDATE>
</UPDATE>
...
Database
CREATE TABLE update (
ID INTEGER NOT NULL AUTO_INCREMENT,
HARDWARE_ID INTEGER NOT NULL,
LASTUPDATE DATE NOT NULL,
PRIMARY KEY(ID,HARDWARE_ID),
UNIQUE(ID,HARDWARE_ID)
) ENGINE=INNODB;