You are not logged in.
Pages: 1
Hi,
I implemented GLPI + Fusion Inventory for GLPI + Fusion Inventory of the same server (Running Ubuntu Serever 20.04): My goal is to set-up a GLPI/Fusion Inventory box that will run network discovery & inventory on a TCP/IP network. I need clarification regarding the documentation.
*/10 * * * * /usr/local/bin/fusioninventory-agent
With this CRON, in root CRONTABLE everything works perfectly: Inventory + Net Discovery + Net Inventory.
Then, I tried to set-up a service system by editing /etc/systemd/system/fusioninventory-agent.service file :
# It is not recommended to modify this file in-place, because it will be
# overwritten during package upgrades. If you want to customize, the best
# way is to use the "systemctl edit" command to create an override unit.
# For example, to pass additional options (for instance,
# --no-category=software) to the agent at startup, create an override unit
# (as is done by systemctl edit) and enter the following:
# [Service]
# Environment="OPTIONS=--no-category=software"
[Unit]
Description=FusionInventory agent
Documentation=man:fusioninventory-agent
After=network.target
[Service]
ExecStart=/usr/local/bin/fusioninventory-agent --daemon --no-fork $OPTIONS
ExecReload=/bin/kill -HUP $MAINPID
CapabilityBoundingSet=~CAP_SYS_PTRACE
[Install]
WantedBy=multi-user.target
After that, I enabled the service & started it.
ubuntu@GLPI:~$ ps aux | grep "fusion"
root 650 0.0 2.7 71932 65184 ? Ss 14:02 0:01 fusioninventory-agent: waiting
ubuntu 2777 0.0 0.1 8160 2560 pts/0 S+ 16:12 0:00 grep --color=auto fusion
Service is running, and a web-server is running on http://[[IPADDRESS]:62354 (BTW, no firewalls are running between the servers or software firewalls on the server). But this way of running the agent seems to only launch the local data collection of the server, NOT the net discovery & net inventory jobs.
My question is: What is the best practice to have local data collection and net discovery & net inventory jobs scheduling?
Regards,
CB
Offline
Hi,
i do everything via cron (+1000 systems) or controlled and initiated by our monitoring.
Because we have many firewalls (DMZ) i use collect.php https://fusioninventory.org/documentati … llect.html on some tiny apache httpd's
switche and router inventories (on debian >> fusioninventory-agent-task-network ) and also vmware inventory (fusioninventory-agent-task-esx ) i do from my monitoring server , because the monitoring system already nows all snmp and vmware esx credentials .
so:
* local check on win/linux/... >> fusioninventory-agent >> dest to fusioninventories collect.php
* esx vmware >> check fusioninventory-esx >> dest to fusioninventories collect.php
* router/switches with snmp >> fusioninventory-netinventory from the linux base monioring >> dest to fusioninventories collect.php
* from the httpd with fusioninventories collect.php i use fusioninventory-injector ( a small bash sript runs via cron every minute) to send all xml/ocs files to our central glpi server with fusioninventory4glpi plugin
Offline
Pages: 1