GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - pluginsGLPI/databaseinventory

BranchesTags
Open more actions menu

Latest commit

 

History

116 Commits
116 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
.tx
.tx
 
 
ajax
ajax
 
 
docs
docs
 
 
front
front
 
 
inc
inc
 
 
locales
locales
 
 
templates
templates
 
 
tests
tests
 
 
tools
tools
 
 
.gitignore
.gitignore
 
 
.php-cs-fixer.php
.php-cs-fixer.php
 
 
.twig_cs.dist.php
.twig_cs.dist.php
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
Makefile
Makefile
 
 
README.md
README.md
 
 
README_FR.md
README_FR.md
 
 
SECURITY.md
SECURITY.md
 
 
composer.json
composer.json
 
 
composer.lock
composer.lock
 
 
databaseinventory.xml
databaseinventory.xml
 
 
hook.php
hook.php
 
 
phpstan.neon
phpstan.neon
 
 
phpunit.xml
phpunit.xml
 
 
psalm.xml
psalm.xml
 
 
rector.php
rector.php
 
 
setup.php
setup.php
 
 

Repository files navigation

Database inventory plugin

French README

This plugin allows you to "manage" the Teclib' inventory agents in order to perform an inventory of the databases present on the workstation.

Table of Contents

  • How it works
    • Agent => GLPI
    • GLPI => Agent: response
    • Agent => plugin: get parameters
  • Computer group
    • Dynamic group
    • Static group
  • Credentials
  • Task
  • Partial inventory

How it works

Agent => GLPI

When the agent wakes up, it contacts the GLPI server via the CONTACT communication protocol.

{
  "action": "contact",
  "deviceid": "classic-agent-deviceid",
  "name": "GLPI-Agent",
  "version": "1.0",
  "installed-tasks": [
    "inventory",
    "register",
    "..."
  ],
  "enabled-tasks": [
    "collect",
    "deploy",
    "..."
  ],
  "tag": "awesome-tag"
}

GLPI => Agent: response

The plugin adds the database inventory setting to the computer inventory task if required.

{
  "status": "<token>",
  "message": "<optional string>",
  "tasks": [
    {
      "task": "inventory",
      "params": [
        {
          "params_url": "get_databaseparams",
          "category" : "database",
          "use": [ "mysql", "oracle" ],
          "delay": "2h",
          "params_id": 1
        }
      ]
    },
  ]
}

Agent => plugin: get parameters

When running the database inventory, the agent retrieves the database inventory configuration settings from the URL provided by the CONTACT protocol (get_databaseparams).

{
  "action": "get_params",
  "deviceid": "classic-agent-deviceid",
  "params_id": "id",
  "use": "mongodb",
  "name": "GLPI-Agent",
  "version": "1.0",
}

Example of a response:

{
  "credentials": [
    {
      "id": "id",
      "type": "login_password",
      "use": "mongodb",
      "login": "login",
      "password": "password"
    }
  ]
}

Computer group

Allows you to define the set of items where the database inventory should be carried out.

Dynamic group

It is possible to define a dynamic list based on a search.

computergroup_dynamic

Static group

It is possible to define a static list.

computergroup_static

Credentials

Allows you to fill in the database connection credentials.

credential

Task

Allows you to set the following items:

  • name;
  • activation state;
  • partial inventory;
  • execution frequency for partial inventory;
  • computer list;
  • credentials list.

databaseparam_credential

databaseparam_computergroup

databaseparam_credential

Partial inventory

Partial inventory allows the agent to perform only the database inventory (without the asset inventory) according to the frequency defined in the task.

Additional resources

  • Translations on Transifex

About

No description or website provided.

Topics

sync-org-files

Resources

Readme
GPL-3.0 license

Security policy

Security policy
Activity
Custom properties

Stars

2 stars

Watchers

3 watching

Forks

4 forks
Report repository

Releases

Packages

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.