Git Product home page Git Product logo

glpiagentutils's Introduction

GLPI Agent Utils

Twitter Web License

Disclaimer

You can use them at your own risk. If you need professional support, please don't hesitate to get in touch with us.

What are GLPI Agent Utils?

GLPI-Agent-Utils aims to be a toolkit to complement GLPI Agent. It's a set of scripts designed to improve how you use the GLPI Agent for managing IT assets. Currently, these are the scripts:

What is the GLPI Agent?

For more information about the GLPI Agent, please visit this link.

What do GLPI Agent Utils include?

This script lets you start a local inventory process without installing any agents.

It relies on the GLPI Agent AppImage version and the glpi-agent-portable.sh generator script

Currently, it runs and saves a local inventory to /tmp

Supported OS

glpi-agent-portable-inventory.sh works with any operating system supporting Flatpak and the GLPI Agent.

It has been tested on:

  • Ubuntu

How to use it

To use GLPI-Agent-Utils, all you need to do is:

  1. Download it
  2. Run it as sudo
  3. This will create an inventory in the /tmp folder.

Alternatively, you can run this one-liner:

curl -s https://raw.githubusercontent.com/ticgal/glpiagentutils/master/glpi-agent-portable-inventory.sh | sudo bash

A quick GLPI Agent updater script It relies on the glpi-agent-linux-installer.pl to perform the update.

Supported OS

glpi-agent-wrapper.sh works with any operating system supported by the official glpi-agent-linux-installer.pl

It has been tested on:

  • Ubuntu However, it should work on any glpi-agent-linux-installer.pl supported OS

How to use it

To use GLPI-Agent-Utils, all you need to do is:

  1. Download it
  2. Make it executable (chmod +x)
  3. Run it as sudo

There are three parameters:

  1. --install
  2. --update
  3. --help

--install

It works as a wrapper to the plugin, making the installation pass the parameters to the script. At least a --server or --local is needed to install and generate an inventory. All the installations are silent by default. If you want them lengthy, use the official script.

Alternatively, you can run this one-liner:

curl -s https://raw.githubusercontent.com/ticgal/glpiagentutils/master/glpi-agent-wrapper.sh | sudo bash /dev/stdin --install --server="https://yourserver.tld/" [add any other parameters needed]

--update

This is a helpful parameter since the official script won't update the agent, preserving the parameters nor the installed modules.

Running the agent with the `--update´ parameter will:

  • Check for the last version of the agent
  • Download it
  • Save your agent settings
  • Save your installed agent modules
  • Install the new agent with the previously installed modules
  • Retrieve previous settings
  • Run the agent

Another convenient one-liner:

curl -s https://raw.githubusercontent.com/ticgal/glpiagentutils/master/glpi-agent-wrapper.sh | sudo bash /dev/stdin --update

--help

Self-explanatory :)

A deployable script to automate the creation of a service to update glpi-agent at computer startup It relies on the glpi-agent-wrapper.sh to perform the update.

Supported OS

glpi-agent-autoupdater.sh should work with any operating system supported by the official glpi-agent-linux-installer.pl using systemd

It has been tested on:

  • Ubuntu

How to use it

Just download and run It was created to be distributed using GLPI Agent Deploy tasks ;)

Contribute

PR, suggestions, or improvements are always welcome. Open an Issue and send a PR to be reviewed.

glpiagentutils's People

Contributors

oscarbeiro avatar

Watchers

 avatar

glpiagentutils's Issues

Keep current installed tasks

--reinstall parameter doesn't preserve settings or tasks.

Agent config is backed up and returned to their path. Tasks and other settings need to be handled.

I will focus on the tasks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.