agent端:zabbix 自定义脚本[root@localhost script]# cat check_ping.sh #!/bin/bashresult=$(/usr/local/nagios/libexec/check_icmp -s $1 $2)a=$(echo $result | awk...
分类:
其他好文 时间:
2014-09-01 14:00:33
阅读次数:
600
操作系统:CentOSMini 6.5yum install httpd.x86_64 httpd-manual.x86_64 php-xml php-mbstring mysql-server.x86_64 mysql.x86_64 php-mysql.x86_64 php.x86_64 php-...
分类:
其他好文 时间:
2014-09-01 12:21:23
阅读次数:
256
LNMP环境配置Linux,NGINX,PHP,MYSQLPHP 依赖库安装安装GD库-让php支持gif,png,jpeg格式GD库需要以下模块的支持jpeg,libpng,freetypewget http://www.ijg.org/files/jpegsrc.v9.tar.gztar -zx...
分类:
其他好文 时间:
2014-08-31 22:39:01
阅读次数:
291
环境:zabbixserver:192.168.1.1mysqlserver:192.168.1.2webserver:192.168.1.3一、zabbix编译安装1.同时安装server和agent,并支持将数据库放入mysql数据中,可使用类似如下配置命令:./configure--enable-server--enable-agent--with-mysql--enable-ipv6--with-net-snmp..
分类:
其他好文 时间:
2014-08-31 18:49:08
阅读次数:
293
sendmail.sh的内容如下:#!/bin/bashto=$1subject=$2body=$3cat <<EOF|mail -s "$subject" "$to"$bodyEOF脚本权限为755的。
分类:
其他好文 时间:
2014-08-30 19:04:39
阅读次数:
238
SELinux相关的工具/usr/bin/setenforce 修改SELinux的实时运行模式setenforce 1 设置SELinux 成为enforcing模式setenforce 0 设置SELinux 成为permissive模式如果要彻底禁用SELinux 需要在/etc/syscon...
分类:
系统相关 时间:
2014-08-30 11:12:49
阅读次数:
192
1.vim$zabbix_PATH/include/menu.inc.php284行增加以下内容284‘zatree‘=>array(285‘label‘=>_(‘Zatree‘),286‘user_type‘=>USER_TYPE_ZABBIX_USER,287‘default_page_id‘=>0,288‘force_disable_all_nodes‘=>true,289‘pages‘=>array(290array(‘url‘=>‘http:/..
分类:
其他好文 时间:
2014-08-30 02:28:09
阅读次数:
1092
一,准备环境RHEL6.4最小化安装(关iptables,关selinux)+ssh+yumyum-yinstallsubversion(svn服务器),mysql-server(用于codestriker),httpdmod_dav_svn,mod_perl(用于支持web方式管理SVN服务器)sendmail(用于配置用户提交代码后发邮件提醒)wgetgcc-c++makeunzipperl*(必备软件..
分类:
其他好文 时间:
2014-08-29 16:21:48
阅读次数:
488
RHCE模拟考试之配置Samba服务,共享出/groupdir目录,要求只有192.168.0.0/24和192.168.1.0/24和127.0.0.1可以访问,共享出的名字是[common],用户不能查看到,只有student组才有写的权限,同时,要把student组里的每个用户的家目录也要共享出来,同时要求selinux必须为enforcin..
分类:
系统相关 时间:
2014-08-29 03:00:27
阅读次数:
265