/build/static/layout/Breadcrumb_cap_w.png

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.

 


0 Comments   [ + ] Show comments

Answers (1)

Posted by: Jbr32 10 years ago
10th Degree Black Belt
0

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

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ