We are planning to use NetXMS with our custom push-type counters. All numeric counters seem to work well, but string one has some problems.
First of all, they are limited to 255 chars (according to database configuration). Moreover, they can cause server to crush due to lack of string NULL-terminator.
Way to reproduce:
- Create DCI, Parameter:Test, Type: string; Origin: Push Agent
- Excute:
C:\NetXMS\bin>nxpush.exe -H localhost -u user -P pass host.local:Test=123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789-123456789
(it is string with 300+ symbols)
3) Open "Last values" -- here you will see probably all of string
4) Open "Show history" -- here are 2 possibilities:
a) server crush and you wont see anything
b) you are lucky to see first 127 symbols and a bunch of garbage from server memory till first NULL-symbol
Server 1.0.4, Windows; DB: MSSQL
In spite of server crush, Is there a way work with strings longer than 127 symbols?