0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

CentOS7へocsinventory-agentをインストール

Posted at

##OCSInvebntory-agentをCentOS7へインストール
###インストール

wget https://rpm.ocsinventory-ng.org/ocsinventory-release-latest.el7.ocs.noarch.rpm
wget https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm

yum install epel-release-latest-7.noarch.rpm ocsinventory-release-latest.el7.ocs.noarch.rpm
yum install ocsinventory-agent

###設定変更
OCSInventory-serverへ向ける設定
・/etc/ocsinventory/ocsinventory-agent.cfg抜粋

- local = /var/lib/ocsinventory-agent
+ #local = /var/lib/ocsinventory-agent #コメントアウト
+ server = "http://[ocsinventory-server]/ocsinventory" #追記

・/etc/sysconfig/ocsinventory-agent抜粋

# Mode, change to "cron" to activate
- OCSMODE[0]=none
+ OCSMODE[0]=cron #none→cronへ設定変更 

→コメントにもある通りOCSinventory-agentをAcitveにするためcronと設定する。

###OCSINventory-Serverとの通信
Cronによる毎時起動(cron.hourly)もしくは以下のコマンドを実行すると、OCSINventory-Serverへ通信をおこなう。

ocsinventory-agent

通信が行われると、OCSINventory-Server上にAgentをインストールしたサーバが自動的に登録される。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?