Welcome to OCS Inventory NG community support, where you can ask questions and receive answers from other members of the community.

Please ask questions only in English or French.

Release 2.12.3 available

The official documentation can be found on https://wiki.ocsinventory-ng.org. Read it before asking your question.

Linux OCSNG 2.3.1 With Agent 2.3.1.1 Missing Users

Our OCS Inventory NG 2.3.1 With Agent 2.3.1.1 has been missing a lot of computer's usernames. It is very random and nothing seems to fix it. We have tried to uninstall and reinstall it without any changes. I tried to upgrade to OCSNG 2.4 however, I ran into a lot of issues. Is there something I can try to fix this? It has been happening for years. Thanks

- Debian 8.5 64 Bit

in OCS Inventory NG server for Unix by (1.4k points)
edited by

5 Answers

+1 vote
I have empty usernames in my database too. My guess is the agent rant without any user logged in. Take a look at the time the agent contacted the database too see if there is any correlation.

2017-12-18 21:02:30 SEC18901 Microsoft Windows 10 Pro
by (550 points)
0 votes
Thank you for the reply. However, it looks like the times it happens is when the user was logged in to the computer. Would it be possible to give the agent more rights to fix this issue?
by (1.4k points)
+1 vote
Have you tried deleting the record and performing a forced inventory while a user is currently logged in? Interested in if the issue follows some computers and not others. Just guessing here as I am not a programmer.
by (550 points)
0 votes

"Have you tried deleting the record and performing a forced inventory while a user is currently logged in? Interested in if the issue follows some computers and not others. Just guessing here as I am not a programmer."

Okay, so I tested your theory and you are correct. I deleted the record from a computer that was missing the username on OCS and reinstalled it while the user was logged out and it came back without a username again. And than I tested it when a user was logged in and it works however, the next time the inventory runs and the user is logged out the username is gone again. So it seems that it only does this when the user is logged out. There has to be a way to add rights or something allowing it to work.

by (1.4k points)
0 votes
Hi there, have same issue. Is there a way to tell agent to not update username databese field if there is no user logged in? Something like if "userID" is !blank update databese filed else do not update database field :D
by (160 points)
 
Powered by Question2Answer
...