You are not logged in.

Announcement

 Téléchargez la dernière version stable de GLPI      -     Et vous, que pouvez vous faire pour le projet GLPI ? :  Contribuer
 Download last stable version of GLPI                      -     What can you do for GLPI ? :  Contribute

#1 2022-09-20 15:39:06

jvuz
Member
Registered: 2010-01-18
Posts: 320

launch GLPI agent on Mac

Hi everyone,

GLPI agent is working great now on our Window devices.
I've just installed and configured it on a Macbook. How can we force the inventory with the agent?

Jo

Offline

#2 2022-09-21 08:29:07

gbougard
Moderator
From: Montpellier, France
Registered: 2021-07-21
Posts: 537
Website

Re: launch GLPI agent on Mac

Hi jvuz,

the most common way is to access `http://localhost:62354/` URL and clic on "runnow". If you don't have it you may have to enable httpd interface and maybe trust localhost. For that you may need to tune `no-httpd` & `httpd-trust` in configuration, see online documentation.

Also, as root user, you can search for the glpi-agent service pid and send a USR1 signal to it with the kill command. I don't know if another command (pkill) is available on macos, but you may also try to run as root:

pkill -USR1 glpi-agent

GLPI-Agent developer from Teclib' and GLPI-Network team
Previously FusionInventory-Agent maintainer

Offline

#3 2022-09-22 08:23:39

jvuz
Member
Registered: 2010-01-18
Posts: 320

Re: launch GLPI agent on Mac

Dear gbougard,

thank you for your info. As the url doesn't give a result, we'll have to look further and checking the httpd interface.

Another question, in de config file we've entered the url of the server, with the same address as we're using for the Windows client. I suppose this is the same address?

You're telling something about killing a process? But I suppose it will kill the process? is there a possibility to start the process instead of killing it?

Jo

Offline

#4 2022-10-11 10:16:13

gbougard
Moderator
From: Montpellier, France
Registered: 2021-07-21
Posts: 537
Website

Re: launch GLPI agent on Mac

Hi jvuz,

sorry missed your questions.

Using the "kill" command, indeed, doesn't mean you will kill the process. By default, meaning not using any option, it will kill the process. But indeed, the "kill" command is made to send a system signal to a process. The default signal is "-9" or "-TERM" to kill the process (this is why the command was named "kill"... as this was the first need for that command). Here a was using the "-USR1" option which ask "kill" command to send "USR1" signal to the agent. The agent when receiving that "USR1" signal will understand it has to run tasks now and it won't be killed.


GLPI-Agent developer from Teclib' and GLPI-Network team
Previously FusionInventory-Agent maintainer

Offline

Board footer

Powered by FluxBB