标签: nagios

chcon:在使用 SELinux 安装 nagios 时无法将部分上下文应用于未标记的文件

我正在使用 SELINUX=enforcing 在 CentOS 上设置 Nagios 核心。

我试着跑

chcon -R -t httpd_sys_content_t /usr/local/nagios/sbin/
Run Code Online (Sandbox Code Playgroud)

按照手册中的建议,但我收到此错误消息:

chcon: can't apply partial context to unlabeled file `cmd.cgi'
chcon: can't apply partial context to unlabeled file `trends.cgi'
chcon: can't apply partial context to unlabeled file `histogram.cgi'
chcon: can't apply partial context to unlabeled file `avail.cgi'
chcon: can't apply partial context to unlabeled file `history.cgi'
chcon: can't apply partial context to unlabeled file `status.cgi'
chcon: can't apply partial context to unlabeled file `tac.cgi'
chcon: …
Run Code Online (Sandbox Code Playgroud)

linux selinux centos nagios

9
推荐指数
1
解决办法
3万
查看次数

/swapfile 的交换问题和“读取交换标头失败”

我的交换内存显示SWAP critical 0% free在 NMS 上。

我试过:

 `$ swapon --show`
Run Code Online (Sandbox Code Playgroud)

但什么也没有出现。我继续做:

$ free -m
         total        used        free      shared  buff/cache   available
Mem:      7873        2858        1151        1295        3863        3373
Swap:        0           0           0
Run Code Online (Sandbox Code Playgroud)

然后:

$ swapon -a
swapon: /swapfile: insecure permissions 0644, 0600 suggested. 
swapon: /swapfile: read swap header failed
Run Code Online (Sandbox Code Playgroud)

linux ubuntu swap nagios

2
推荐指数
1
解决办法
6177
查看次数

“无法安装 Nagios::Plugin,不知道是什么。”

数月/数周前,我使用此命令在多个服务器上安装 Nagios::Plugins:

perl -MCPAN -e 'install Nagios::Plugin'
Run Code Online (Sandbox Code Playgroud)

现在我收到此错误消息:

Reading '/root/.cpan/Metadata'
Database was generated on Mon, 27 Apr 2015 00:29:02 GMT
Warning: Cannot install Nagios::Plugin, don't know what it is.
Run Code Online (Sandbox Code Playgroud)

据我所知,该模块仍在 CPAN 中:http : //search.cpan.org/dist/Nagios-Plugin/

怎么了?

perl nagios cpan

0
推荐指数
1
解决办法
1万
查看次数

标签 统计

nagios ×3

linux ×2

centos ×1

cpan ×1

perl ×1

selinux ×1

swap ×1

ubuntu ×1