KS-Soft. Network Management Solutions
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister    ProfileProfile    Log inLog in 

Null value when logging to database

 
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting
View previous topic :: View next topic  
Author Message
argis



Joined: 06 May 2019
Posts: 31

PostPosted: Wed Jun 12, 2019 11:19 pm    Post subject: Null value when logging to database Reply with quote

I'm having some problems with the common log. I'm logging to MariaDB using ODBC, but occasionally a record will have a field with a null value.
I'm using a custom string variable called 'Site' which is set per device, and is included in the SQL query to export to the database. Sometimes, quite randomly, it will be null.
I'm running MariaDB v10.3 and HM v11.97 on the same server, which is Server 2016, using the 32-bit MySQL ODBC connector.

Does anyone have any clues as to what might cause this?
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Thu Jun 13, 2019 5:16 am    Post subject: Reply with quote

Sorry, I do not understand how you could setup "Site" variable.
If you set folder-level variable, it will be named like %fvar_site%.
If you set global variable, it will be named like %udv_site%.
if you use test comment, then you should use variable like %CommentLine1%

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
argis



Joined: 06 May 2019
Posts: 31

PostPosted: Thu Jun 13, 2019 1:26 pm    Post subject: Reply with quote

My mistake, I was looking at the field names in the database and not paying attention...
The variable is indeed called %fvar_site%.
Back to top
View user's profile Send private message
KS-Soft



Joined: 03 Apr 2002
Posts: 12795
Location: USA

PostPosted: Thu Jun 13, 2019 2:21 pm    Post subject: Reply with quote

I assume you did not specify this variable for some folders?

Regards
Alex
Back to top
View user's profile Send private message Visit poster's website
argis



Joined: 06 May 2019
Posts: 31

PostPosted: Thu Jun 13, 2019 3:48 pm    Post subject: Reply with quote

Yes it was specified for all folders, but it was randomly missing sometimes but not most of the time.
However I've just been talking to our developer and he thinks that it might be a problem with the database itself, so please ignore this and I'll see if we can sort it out at our end.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    KS-Soft Forum Index -> Configuration, Maintenance, Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group

KS-Soft Forum Index