02-24-2023 08:54 PM - last edited on 04-01-2024 03:40 PM by Mercedes_O
Hi all,
New user here, really liking the asset scanning and hoping I can utilize this for some very simple server alerts should they go offline since the last scan.
Has anyone developed such a "report" that I can setup an email alert on perhaps? I must admit the only thing I find difficult is report building, I'm not great with databases and most of the tools I've used in the past had much friendlier report editing without dealing with tables and joins, etc. Even if I have to tweak it a bit I'd be very appreciative if someone has already come up with something like that!
Or maybe I'm missing something in the built-in reports?
Thanks all!
03-01-2023 02:05 PM
Hello there!
Lansweeper is not a real-time monitoring tool but an inventory tool, but you can use the following workaround as you suggest.
Setup our report alert functionality as documented in this KB article: https://www.lansweeper.com/knowledgebase/sending-email-alerts/
Then, do the following:
Select Top 1000000 tblAssets.AssetID,
tblAssets.AssetName,
tblAssets.Domain,
tsysAssetTypes.AssetTypename,
tsysAssetTypes.AssetTypeIcon10 As icon,
tblAssets.Username,
tblAssets.Userdomain,
tblAssets.IPAddress,
tblAssets.Firstseen,
tblAssets.Lastseen,
DateDiff(mi, tblAssets.Lastseen, GetDate()) As LastSeenXMinutesAgo,
tblAssetGroups.AssetGroup
From tblAssets
Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID
Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype
Inner Join tblAssetGroupLink On tblAssets.AssetID = tblAssetGroupLink.AssetID
Inner Join tblAssetGroups On tblAssetGroups.AssetGroupID =
tblAssetGroupLink.AssetGroupID
Where DateDiff(mi, tblAssets.Lastseen, GetDate()) > 15 And
tblAssetGroups.AssetGroup = 'My asset group' And tblAssetCustom.State = 1
Order By LastSeenXMinutesAgo Desc
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now