nagios-添加oracle数据库监控
[root@mi6 ~]# cd /usr/local/nagios/[root@mi6 nagios]# lsbin etc libexec share[root@mi6 nagios]# cd libexec/[root@mi6 libexec]# ./check_oracle --helpcheck_oracle v1.5 (nagios-plugins 1.5)The nagios plugins come with ABSOLUTELY NO WARRANTY. You may redistributecopies of the pl...
nagios-添加内存监控
被监控端修改:1、进入/usr/local/nagios/libexec目录下并更改脚本权限chmod 755 check_memorychown nagios:nagios check_memory2、修改nrpe配置文件 vim /usr/local/nagios/etc/nrpe.cfg添加以下内容 command[check_free_mem]=/usr/local/nagios/libexec/check_memory -f -w 10 -c 53、重启nrpe服务&nb...
nagios-创建内存监控脚本
创建内存监控脚本[root@mi3 hosts]# cd /usr/local/nagios/libexec[root@mi3 hosts]#vi check_memory#!/usr/bin/perl -w# $Id: check_memory 2 2002-02-28 06:42:51Z egalstad $# Original script stolen from:# check_memory Copyright (C) 2000 Dan Larsson <dl@tyfon.net># hacked by# Justin Ell...
nagios-被监控端的mi1.cfg配置
监控主机:cd /usr/local/nagios/etc/objects/hosts vi mi1.cfgdefine host{ use linux-server host_name mi1 alias mi1-server&nbs...
nagios-监控端的localhost.cfg配置
[root@icaimi3 ~]# cd /usr/local/nagios/etc/objects[root@icaimi3 objects]# lscommands.cfg contacts.cfg hosts localhost.cfg printer.cfg switch.cfg templates.cfg timeperiods.cfg windows.cfg[root@icaimi3 objects]# cat localhost.cfg #########...
nagios的配置(监控端和被监控端)
配置如下:[root@mi3 etc]# cd /usr/local/nagios/etc[root@mi3 etc]# lscgi.cfg htpasswd.users nagios.cfg objects resource.cfg[root@mi3 etc]#[root@mi3 etc]# cd objects/[root@mi3 objects]# lscommands.cfg contacts.cfg hosts localhost.cfg printer...