我正在使用 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) 我的交换内存显示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) 数月/数周前,我使用此命令在多个服务器上安装 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/
怎么了?