How do I create an email alert for kace agent first inventory?
Hello,
Is it possible to hace an alert when the Kace agent is install on a computer? As we install ampgent as the last post-install task in the k2000, in this way we could be inform by email that a computer deployment is finished.
Answers (1)
Yes! We use the following mysql to generate a daily report of objects created within the last 24 hours. You can probably just modify it to show last hour and have it run hourly; or change it to the last 15 minutes if need be.
SELECT MACHINE.NAME AS SYSTEM_NAME, BIOS_SERIAL_NUMBER as Serial_Number, RAM_TOTAL as Installed_Ram, OS_NAME as Operating_System, USER_LOGGED as LastUser, (SELECT MACHINE_CUSTOM_INVENTORY.STR_FIELD_VALUE FROM MACHINE_CUSTOM_INVENTORY WHERE MACHINE_CUSTOM_INVENTORY.ID=MACHINE.ID AND MACHINE_CUSTOM_INVENTORY.SOFTWARE_ID=12092) AS Local_Admin_List_WIN_ONLY FROM MACHINE where CREATED > DATE_SUB(NOW(), INTERVAL 1 DAY) ORDER BY SYSTEM_NAME
Comments:
-
Thank you for your answer, but this is not what I want. Your solution only show new computers registered in the k1000, what I want is when a computer is deployed or re-deployed, when the ampagent is install and send the computer inventory, the k1000 send me an email. - gwir 10 years ago
-
That maybe difficult to do as if the machine is redeployed but the record still is in the KBOX. To the KBOX it would have looked like the machine hasn't checked in for awhile. You would have to ensure that if a machine is being taken out of usage, that you delete it from Inventory, That way if it is redeployed and checks in for the first time, it will be a new machine to the KBOX and will send you an email as Jbr32 wrote out. - nshah 10 years ago
-
I think I found another way to do it : I check the "OS_INSTALLED_DATE" every 15 minutes :
SELECT
MACHINE.NAME AS NomNetbios,
SYSTEM_DESCRIPTION,
OS_INSTALLED_DATE
FROM
MACHINE
WHERE
OS_INSTALLED_DATE > DATE_SUB(NOW(), INTERVAL 15 MINUTE)
And made an email alert. - gwir 10 years ago