Raspberry Pi nagios

来源:互联网 发布:iphone6plus在线软件 编辑:程序博客网 时间:2024/06/07 17:10

前期准备

  • 下载tarball
nagios-3.5.1.tar.gznagios-plugins-2.1.1.tar.gznrpe-2.15.tar.gz
  • 建立用户
groupadd nagcmduseradd -G nagcmd nagiosuseradd -G nagcmd apache
  • 安装软件包
apt install -y gcc libgd-dev libapache2-mod-php5 php5-cgi apache2 
  • 编译nagios
./configure --with-command-group=nagcmdmake allmake install && make install-init && make install-commandmode && make install-config && make install-webconfcp -p sample-config/httpd.conf /etc/apache2/conf-enabled/nagios.confchmod 644 /etc/apache2/conf-enabled/nagios.confsystemctl restart apache2

存在问题,nagios站点的链接无法打开,直接下载status.cgi文件,暂时未解决

0 0
原创粉丝点击