DDL:
Code: Select all
CREATE TABLE `hmlog` (
`TestName` varchar(77),
`Date_Time` datetime,
`StatusID` tinyint(3) unsigned,
`Reply` int(11)
) ENGINE=MyISAM
SQL query:
Code: Select all
INSERT INTO hmlog (TestName, Date_Time, StatusID, Reply) VALUES ('%TestName%', Now(), '%StatusID%', '%Reply_Number%')
Code: Select all
Method = SNMP
;--- Common properties ---
Title = load system for 5 min
Comment =
RelatedURL =
ScheduleMode= Regular
Schedule =
Interval = 300
Alerts = Alert2
ReverseAlert= No
UnknownIsBad= No
UseCommonLog= Yes
PrivLogMode = Default
CommLogMode = Reply
SyncCounters= Yes
SyncAlerts = No
DependsOn = list
MasterTest-Alive =
;--- Test specific properties ---
Agent = xx.xx.xx.xx
Community = public
Timeout = 2000
Retries = 1
OID = 1.3.6.1.4.1.2021.10.1.3.2
Condition = MoreThan
Value = 5
TestName = load system for 5 min
Date_Time = <date and time>
StatusID = 7
Reply = 0
When I run manually SQL query (also by MyODBC via MS Access):
Code: Select all
INSERT INTO hmlog (TestName, Date_Time, StatusID, Reply) VALUES ('load system for 5 min', Now(), '7', '1.2')
TestName = load system for 5 min
Date_Time = <date and time>
StatusID = 7
Reply = 1
How to receive a rounding off of the Reply at ODBC log?
PS: Hostmonitor v5.71, Win2000 SP4+SecUpd