简体   繁体   English

如何在不安装Sensu服务器的情况下安装Sensu客户端?

[英]How to install Sensu client without installing Sensu server?

I am trying to install a Sensu client without the server.我正在尝试在没有服务器的情况下安装 Sensu 客户端。

According to the documentation :根据文档

"The Sensu Core package installs several processes including sensu-server , sensu-api , and sensu-client ." “Sensu Core 软件包安装了多个进程,包括sensu-serversensu-apisensu-client 。”

However after adding the repository, I was only able to locate the aggragate sensu package and could not locate or install sensu-client .但是,在添加存储库后,我只能找到 aggragate sensu包,而无法找到或安装sensu-client

I noticed a ticket on github stating it was not possible however that was 2 years ago so maybe things have changed?我注意到github 上的一张票说这是不可能的,但是那是 2 年前的事了,所以也许事情已经改变了?

Is it possible to install Sensu server without having to install Redis, RabbitMQ and Sensu server?是否可以在不安装Redis、RabbitMQ和Sensu服务器的情况下安装Sensu服务器?

The sensu package will install sensu-server, sensu-api, and sensu-client services, you can however, setup a functional sensu-client without installing Redis, RabbitMQ, and without configuring sensu-server. sensu 包将安装 sensu-server、sensu-api 和 sensu-client 服务,但是您可以在不安装 Redis、RabbitMQ 和配置 sensu-server 的情况下设置功能性 sensu-client。

sudo yum install sensu
vi /etc/sensu/config.json 
vi /etc/sensu/conf.d/client.json
sudo /etc/init.d/sensu-client start
sudo /sbin/chkconfig sensu-client on

/etc/sensu/config.json should at least have the rabbitmq location of the server, while /etc/sensu/conf.d/client.json of course needs to have the ip and name of the client. /etc/sensu/config.json至少要有服务器的rabbitmq位置,而/etc/sensu/conf.d/client.json当然需要有客户端的ip和name。

If someone facing an error with installation provide by @Enrique sudo yum install sensu如果有人遇到安装错误 @Enrique sudo yum install sensu

https://sensu.global.ssl.fastly.net/yum/latest/x86_64/repodata/repomd.xml: [Errno 14] HTTPS Error 404 - Not Found

The above was not working on aws ec2 linux.以上不适用于aws ec2 linux。

They can try this to add sensu repo.他们可以尝试添加 sensu repo。

vim /etc/yum.repos.d/sensu.repo

Add this添加这个

  [sensu]
name=sensu
baseurl=http://sensu.global.ssl.fastly.net/yum/$basearch/
gpgcheck=0
enabled=1

then install sensu然后安装sensu

sudo yum install sensu -y

Remaining steps same as answerd by @Enrique Arriaga其余步骤与@Enrique Arriaga 的回答相同

It's not possible with sensu core.使用 sensu 核心是不可能的。 But you can install it using the new product from sensu, sensu go which has sensu backend (replaces sensu server) and sensu agent (replaces sensu client) allows to install only sensu agent on your infrastructure.但是您可以使用来自 sensu 的新产品安装它,sensu go 具有 sensu 后端(取代 sensu 服务器)和 sensu 代理(取代 sensu 客户端)允许在您的基础设施上仅安装 sensu 代理。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM