Automatically create alerts in GLPI

naby007 -  
 eden -
Hello,

I am in the last week of my internship and I need to automatically create alerts with GLPI

EX: when there is no longer a certain type of cartridge, send me an email.

If someone knows how to do this, please help me.
Configuration: Windows XP Firefox 2.0.0.12

6 answers

  1. Yogui
     
    I sent it too quickly.

    Give me an overview of your requests and I will adjust my code to suit them.
    1
  2. eden
     
    Hello,

    can you tell me how you proceeded to generate notifications upon the triggering of an event?

    Because I am working on a PLUGIN for GLPI, which has the role of presenting the user with a photocopy request form. When the user fills out the form, a notification is sent to an agent.

    Does anyone among you know how to send a notification (to a specific type of profile) in the form of a ticket or anything just to inform that a photocopy request has been made?
    1
  3. MyTux Posted messages 228 Status Member 44
     
    Hello,

    You can do this with a PHP page using the mail() function in PHP. After making a query on the table corresponding to the ink cartridges (or printers, I don't know the name of the table that manages this).

    First, you need to know if you have some knowledge of PHP and SQL. If so, I think you can jump in without any problem.
    0
    1. naby007
       
      Hello

      Thank you for your invaluable help, but when it comes to PHP and SQL, I’m not very skilled.

      Do you think we can set up an automatic alert in the GLPI interface?


      Thank you, best regards.
      0
  4. MyTux Posted messages 228 Status Member 44
     
    Yes, you can do it, I think, but I don't know if it's for a type of cartridge. However, given how they designed their software, I think it is.

    Go to configuration -> notification, then to alert options, and there you choose the groups that should be informed about supplies. Confirm it. After that, you can set the default alert threshold for supplies in the general configuration under inventory.

    That's it. If you test it and it works, keep me posted :)
    0
    1. naby007
       
      ok that's going quite easy!!

      the problem is that in the settings I don't have notifications and not in any other tab either??!!

      thanks for your help again
      0
    2. naby007
       
      Sorry, the problem is solved. My internship supervisor hadn't given me super admin access. Thanks a lot again!
      0
      1. naby007 > naby007
         
        re


        the problem now is how to receive these alerts on the mobile phone??




        thank you, have a good evening
        0
  5. MyTux Posted messages 228 Status Member 44
     
    Uh, that's a good question. I'm not sure if anything is already set up on GLPI.

    Otherwise, you can get a BlackBerry to receive emails ^^ or you can manage to configure your mobile phone to receive emails. If it's a recent phone, it should have the feature; otherwise, you'll need to look online to find out how you can add that.

    Have a good evening.
    0