Notification

Icon
Error

LsAgent on Ubuntu 18.04 - Not getting updated in the console

Posted: Tuesday, May 21, 2019 6:39:43 AM(UTC)
rpokkyarath

rpokkyarath

Member Original PosterPosts: 3
0
Like
This issue has been solved! Click here to view the solution
Hi,

Installed LsAgent on an Ubuntu (18.04). I'm testing before rolling it out to other Linux machines in our environment. systemctl status LansweeperAgentService shows the service is up and running. However I do not see the machine listed in the Scanning -> Lsagent Scanning -> Assets section of the console even after 2 days.

Following is the output from the /opt/LanSweeperAgent/lsagentlog.txt on the machine with the agent.
Code:

2019-05-21 09:50:01,409 [DEBUG] : Waiting for next scheduled scan...
2019-05-21 10:05:01,415 [INFO ] : CreateReachableEndPoint for <CLOUD-RELAY-AUTHENTICATION-KEY>
2019-05-21 10:05:01,420 [INFO ] : Url Check with address failed. Endpoint with address 'https://<LOCAL-LANSWEEPER-IP>:9524/lsagent' was not reachable: No such device or address No such device or address
2019-05-21 10:05:01,420 [WARN ] : Connection to url https://<LOCAL-LANSWEEPER-IP>:9524/lsagent failed
2019-05-21 10:05:01,422 [INFO ] : Url Check with address failed. Endpoint with address 'http://<LOCAL-LANSWEEPER-IP>:9524/lsagent' was not reachable: No such device or address No such device or address
2019-05-21 10:05:01,422 [WARN ] : Connection to url http://<LOCAL-LANSWEEPER-IP>:9524/lsagent failed
2019-05-21 10:05:01,422 [DEBUG] : Created RelayCommunicationSender to URL ÷ñÒ153020026êÖ0õæ÷https://relay.lansweeper.com/EchoService.svc÷ñÒ153020026êÖ1õæ÷
2019-05-21 10:05:02,747 [DEBUG] : Asset is enabled.
2019-05-21 10:05:02,747 [DEBUG] : Retrieving configuration...
2019-05-21 10:05:03,075 [DEBUG] : Updating local config
2019-05-21 10:05:03,079 [DEBUG] : Checking version.
2019-05-21 10:05:03,079 [DEBUG] : No installer found.
2019-05-21 10:05:03,079 [DEBUG] : Update needed to version 7.1.110.1
2019-05-21 10:05:03,430 [DEBUG] : Waiting for schedule...
2019-05-21 10:05:03,431 [DEBUG] : Waiting for next scheduled scan...


Verified the cloud relay key in /opt/Lansweeperagent/lsagentconfiguration.xml - All seems fine.

Is there any other setting that I need to turn on to make this work? Thanks

PS - I'm assuming the error associated with not being able to contact the local lansweeper sever can be ignored since these machines are going to be outside our office network.
Esben.D
#1Esben.D Member Administration Posts: 1,834  
posted: 5/22/2019 9:13:21 AM(UTC)
What's your scanning schedule set to? It almost seems like it is still waiting to be triggered.

You can also update to the latest hotfix version just released: https://www.lansweeper.com/update-lansweeper/

If it still doesn't show up after some time, you can take a look at your Lansweeper errorlog or contact support.
rpokkyarath
#2rpokkyarath Member Original PosterPosts: 3  
posted: 5/22/2019 10:03:26 AM(UTC)
Originally Posted by: Esben.D Go to Quoted Post
What's your scanning schedule set to? It almost seems like it is still waiting to be triggered.

Thank you. I looked into the lsagentconfiguration.xml again and see this section below. I assume these values are auto-populated since I don't recall providing any of these values at install time. The StartDateTime is set to 05/22/2019 (today) even though I installed this 3-4 days ago. Not sure if this file is getting updated daily with the next scan time. I see a huge value for 'Interval' and not sure what that even means.
Code:

	<LsAgentConfigItem>
		<Type>Trigger</Type>
		<Settings>
			<DataItem>
				<Key>Type</Key>
				<Value>FullScan</Value>
			</DataItem>
			<DataItem>
				<Key>ScheduleName</Key>
				<Value>Daily at Midday</Value>
			</DataItem>
			<DataItem>
				<Key>StartDateTime</Key>
				<Value>05/22/2019 01:37:12</Value>
			</DataItem>
			<DataItem>
				<Key>Interval</Key>
				<Value>864000000000</Value>
			</DataItem>
			<DataItem>
				<Key>WeekDays</Key>
				<Value>0</Value>
			</DataItem>
			<DataItem>
				<Key>MonthDays</Key>
				<Value>0</Value>
			</DataItem>
			<DataItem>
				<Key>ExecutionMode</Key>
				<Value>Daily</Value>
			</DataItem>
		</Settings>
	</LsAgentConfigItem>

Have sent an email to support. Will check the latest installer version as well.
rpokkyarath
#3rpokkyarath Member Original PosterPosts: 3  
posted: 5/22/2019 10:15:22 AM(UTC)
Originally Posted by: Esben.D Go to Quoted Post

If it still doesn't show up after some time, you can take a look at your Lansweeper errorlog or contact support.

I see that the scan output is present in my /var/log/LansweeperAgentService.log. So it seems to be running daily but the results are not getting pushed to the Lansweeper servers or the local console is not able to pull it down.

The LansweeperAgentService.err has a few errors, though none of it looks important enough to cause the issue
Code:
/bin/bash: xl: command not found
/bin/bash: prtdiag: command not found
/bin/bash: /usr/sbin/prtdiag: No such file or directory
/bin/bash: /usr/sbin/eeprom: No such file or directory
uname: invalid option -- 'X'
Try 'uname --help' for more information.
/bin/bash: lshal: command not found
Susan.A
#4Susan.A Member Administration Posts: 1,535  
posted: 6/1/2019 4:56:38 AM(UTC)
I just wanted to post some updated information for anyone who might be reading this topic. The behavior reported by the customer can occur if scanning exclusions exist for the client machines under Scanning\Scanning Targets in the web console. It is important to keep in mind that an exclusion will prevent an asset from being scanned by any scanning method, even by the LsAgent or LsPush scanning agent.

Active Discussions

Lansweeper Asset Value Report
by  RC62N   Go to last post Go to first unread
Last post: 9/20/2019 7:12:29 PM(UTC)
Lansweeper Display Hyper-V Guest User report
by  GlenTB  
Go to last post Go to first unread
Last post: 9/20/2019 2:26:15 PM(UTC)
Report Center Windows Defender Antivirus Broken Scan Audit
by  Esben.D   Go to last post Go to first unread
Last post: 9/20/2019 12:18:02 PM(UTC)
Lansweeper Reports are empty
by  Mendoza  
Go to last post Go to first unread
Last post: 9/20/2019 11:12:18 AM(UTC)
Lansweeper Custom Helpdesk Report
by  StevoCamaro   Go to last post Go to first unread
Last post: 9/19/2019 11:13:05 PM(UTC)
Lansweeper Windows 7 EOL
by  RC62N  
Go to last post Go to first unread
Last post: 9/19/2019 4:42:11 PM(UTC)
Lansweeper Drive Encryption statuses
by  DFox   Go to last post Go to first unread
Last post: 9/19/2019 12:54:06 PM(UTC)
Lansweeper Patch Tuesday report, last 3 months
by  Esben.D  
Go to last post Go to first unread
Last post: 9/19/2019 10:55:07 AM(UTC)