Parameters
Parameters GLPI
| -u,--user | GLPI user. Example: glpi. Required. |
| -x,--password | GLPI password, Example: glpi. Required |
| -i, --url | GLPI URL (with port), Example: http://localhost:8200. Required |
| -a, --app_token | Application token, Example: xZvyKomCYHSSva5oTXTNmMiy4SWzfi7O1FF. Required |
Ticket Parameters
| -t,--ticket_name |
Title or name for the ticket. Example: Module 8025 incident. Required |
| -d,--ticket_description |
Message or description for the ticket. Example: " |
| -p,--ticket_priority |
Ticket priority. Example: 4. Required * |
| -c,--ticket_category |
Category for the ticket. Example: Category1. Required |
| -g,--ticket_group |
Group for the ticket. Example: Group1. Required |
|
-j,--ticket_request_type
|
Type of request to add to the ticket (field requesttypes_id), default: 8. |
|
-k,--ticket_name_error
|
Title of the ticket that will be added to tickets created when no computer is found. |
Macros for ticket_name and ticket_description
| %ticketID% | Add the GLPI ticket number to the ticket description/title. |
Example of use:
./pandora_glpi --user "glpi" --password "glpi" --url "http://127.0.0.1:8090/" --app_token "IwSQ9070LzaAQyg3vJKuRQZxPSfXuD16cOKOK7EA" --alias_agent "Rocky Linux 8" --id_module "1" --ticket_name "Incidencia modulo %ticketID%" --ticket_priority 4 --ticket_category 1 --ticket_group 1 --log_file "/tmp/glpi_logfile.txt" --recovery 0 --ticket_description "2023-11-30 11:49:03 Free RAM 172.34.56.1 ID ticket %ticketID%" --ticket_name_error "Error: No se encontró el equipo %ticketID%"
Pandora Parameters
| -n,--alias_agent |
Agent alias. Example: RockyLinux8. Required. |
| -m,--id_module |
Module ID. Example: 8025. Required |
Pandora API parameters
| --api_url |
Pandora API URL. Example: http://172.42.42.101 Default: http://localhost |
| --api_user |
Pandora API user. Example: admin. Default: admin |
| --api_pass |
Pandora API user password. Example: pandora. Default: pandora |
| --api_user_pass |
Pandora API user password. Example: 1234. Default: 1234 |
Additional parameters
| -l,--logfile |
Path where the log file will be added. Example: /tmp/glpi_logfile.txt. Default: /tmp/glpi_logfile.txt |
| -r, --recovery |
To activate recovery mode. Example: 1. Required |
- The priority must be specified numerically. The table below shows each value and its corresponding priority.
| Value | Priority |
| 1 | Very low |
| 2 | Low |
| 3 | Medium |
| 4 | High |
| 5 | Very High |
| 6 | Essential |
Help
| Help | The plugin has a help option where you can see all its parameters and their descriptions. |
If you want to see the plugin help, run it with this parameter only.
