博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
nagios插件nagiosql安装配置
阅读量:5174 次
发布时间:2019-06-13

本文共 2296 字,大约阅读时间需要 7 分钟。

nagios插件nagiosql安装配置

 

# Nagiosql install[root@Cagios ~]# yum install -y libssh2 libssh-devel[root@Cagios ~]# cd /usr/local/src[root@Cagios src]# wget http://pecl.php.net/get/ssh2-0.12.tgz[root@Cagios ssh2-0.12]# phpize[root@Cagios ssh2-0.12]# ./configure --with--ssh2[root@Cagios ssh2-0.12]# make && make install[root@Cagios ~]# vi /etc/php.d/ssh2.iniextension=ssh2.sowget http://nchc.dl.sourceforge.net/project/nagiosql/nagiosql/NagiosQL%203.2.0/nagiosql_320.tar.gz# nagiosql 权限设置[root@Cagios src]# tar zxf nagiosql_320.tar.gz[root@Cagios src]# mv nagiosql/ /usr/local/nagios/[root@Cagios ~]# cd /usr/local/nagios/nagiosql/[root@Cagios nagiosql]# chmod 777 config/[root@Cagios nagiosql]# chown -R nagios:nagcmd *[root@Cagios nagiosql]# find . -type d -exec chmod 775 {} \;[root@Cagios nagiosql]# find . -type f -exec chmod 664 {} \;# 配置nagiosql文件写路径及权限[root@Cagios ~]# mkdir -p /etc/nagiosql/backup/hosts[root@Cagios ~]# mkdir -p /etc/nagiosql/backup/services[root@Cagios ~]# mkdir -p /etc/nagiosql/hosts[root@Cagios ~]# mkdir -p /etc/nagiosql/services[root@Cagios ~]# chown -R nagios:nagcmd /etc/nagiosql[root@Cagios ~]# chmod -R 775 /etc/nagiosql[root@Cagios ~]# chown -R nagios.nagcmd /usr/local/nagios# 配置apache[root@Cagios ~]# vi /etc/httpd/conf.d/nagios.confAlias /nagiosql "/usr/local/nagios/nagiosql"
# SSLRequireSSL Options None AllowOverride None Order allow,deny Allow from all
# 编辑nagios配置文件,注释以cfg开头的配置,并添加vim /usr/local/nagios/etc/nagios.cfg## Timeperiodscfg_file=/etc/nagiosql/timeperiods.cfg## Commandscfg_file=/etc/nagiosql/commands.cfg## Contactscfg_file=/etc/nagiosql/contacts.cfgcfg_file=/etc/nagiosql/contactgroups.cfgcfg_file=/etc/nagiosql/contacttemplates.cfg## Hostscfg_dir=/etc/nagiosql/hostscfg_file=/etc/nagiosql/hosttemplates.cfgcfg_file=/etc/nagiosql/hostgroups.cfgcfg_file=/etc/nagiosql/hostextinfo.cfgcfg_file=/etc/nagiosql/hostescalations.cfgcfg_file=/etc/nagiosql/hostdependencies.cfg## Servicescfg_dir=/etc/nagiosql/servicescfg_file=/etc/nagiosql/servicetemplates.cfgcfg_file=/etc/nagiosql/servicegroups.cfgcfg_file=/etc/nagiosql/serviceextinfo.cfgcfg_file=/etc/nagiosql/serviceescalations.cfgcfg_file=/etc/nagiosql/servicedependencies.cfg# 安装页面http://192.168.88.128/nagiosql/install/

 

 

 

 

 

 

 

转载于:https://www.cnblogs.com/caoguo/p/5021568.html

你可能感兴趣的文章
./linux下表示启动某个软件
查看>>
北斗授时系统介绍及应用
查看>>
bzoj1009矩阵快速面+kmp
查看>>
isinstance
查看>>
CentOS克隆机器步骤,图文教程
查看>>
JwtTokenUtil
查看>>
得到缩写的类名
查看>>
Android--->ExpandableListView的基本使用
查看>>
Dragon Balls[HDU3635]
查看>>
[hihocoder][Offer收割]编程练习赛62
查看>>
IRM and the Object Model
查看>>
CString成员函数详解[转]
查看>>
实验一
查看>>
转:Javascript中document.execCommand()的用法
查看>>
django -过滤器的使用
查看>>
模拟摩天轮的效果
查看>>
Github 开源项目(一)websocketd (实战:实时监控服务器内存信息)
查看>>
ubuntu12.04安装Oracle11g,64位系统
查看>>
iOS 跳转到设置界面
查看>>
JAXB和XStream比较
查看>>