一、sendmail报警通知1、停止系统自带的sendmail服务
#/etc/init.d/postfixstop
2、安装sendmail和mailx
#yum-yinstallsendmailmailx
3、修改sendmail配置文件
#cp/etc/mail.rc/etc/mail.rc.bak
#cat>>/etc/mail.rc<<EOF
setfrom=13260071987@139.comsmtp=smtp.1..
分类:
系统相关 时间:
2014-09-29 02:41:27
阅读次数:
540
上篇简单介绍了CentOS 7 在服务和网络方面的一点变化,先前很多烂熟于心的操作指令已经不适用了,不管是否习惯,总要接受、熟悉这些变化。写上篇的时候还没有最小安装的ISO(CentOS-7.0-1406-x86_64-Minimal.iso),后来安装了首先发现ifconfig、netstat、r...
分类:
其他好文 时间:
2014-09-29 01:49:07
阅读次数:
440
监控server端的安装部署一、apache的安装下载httpd-2.2.15.tar.gz gunzip httpd-2.2.15.tar.gztar xvf httpd-2.2.15.tarcd httpd-2.2.15./configure --prefix=/usr/local/apache...
分类:
移动开发 时间:
2014-09-28 19:08:24
阅读次数:
312
1、下载nrpe2.15wgethttp://cznic.dl.sourceforge.net/project/nagios/nrpe-2.x/nrpe-2.15/nrpe-2.15.tar.gz2、yuminstallopensslopenssl-develcdnrpe-2.15./configure--enable-ssl--with-nagios-user=nagios--with-nagios-group=nagcmd--with-nrpe-user=nagios--with-nrpe-gro..
分类:
移动开发 时间:
2014-09-28 18:21:37
阅读次数:
193
一、简介NSClient++官网:http://www.nsclient.org/1、利用NSClient++监控的资源CPU负载内存占有率Disk利用率服务状态运行的进程等2、NSClient++监控的工作原理只需要在被监控机上安装NSClient++,则不需要安装更多额外的插件。当监控主机将监控请求发给NSClient++后,NSClient..
分类:
移动开发 时间:
2014-09-28 11:11:52
阅读次数:
474
一、简介1、NRPE介绍NRPE是Nagios的一个功能扩展,它可在远程Linux/Unix主机上执行插件程序。通过在远程服务器上安装NRPE插件及Nagios插件程序来向Nagios监控平台提供该服务器的本地情况,如CPU负载,内存使用,磁盘使用等。这里将Nagios监控端称为Nagios服务器端,而将远程被..
分类:
移动开发 时间:
2014-09-28 02:32:51
阅读次数:
418
1.硬件和系统配置 CPU 双核 内存 1480M swap 4G /u01 16G 核心版本 3.10.0-123.el7.x86_642.配置系统和安装所需软件包 2.1 关闭selinux sed -i 's/SELINUX=enforcing/SELINUX...
分类:
数据库 时间:
2014-09-28 02:21:10
阅读次数:
6602
#!/usr/bin/envpython
importsys
fromoptparseimportOptionParser
importstring
OK=0
WARNING=1
CRITICAL=2
UNKNOWN=3
unit={‘t‘:2**40,‘g‘:2**30,‘m‘:2**20,‘k‘:2**10,‘b‘:1}
defopt():
parser=OptionParser(usage="usage:%prog-wWARNING-cCRITICAL")
parser.add_option("..
分类:
移动开发 时间:
2014-09-27 19:10:10
阅读次数:
177
#!/usr/bin/envpython
importdatetime
importre
importsys
REG_SYSLOG=re.compile(r‘(?P<logtime>\w+\d+[\d:]+)(?P<hostname>[\d\w.]+)(?P<progname>\w+)(\[\d*\])?:(?P<msg>.*)‘)
DELTA=datetime.timedelta(minutes=3)
MONTH_MAPPING={"Jan":1,"F..
分类:
移动开发 时间:
2014-09-27 18:37:00
阅读次数:
361
nagios server 端实现nagios + nsca + pnp4nagios bulk + npcd的配置...
分类:
移动开发 时间:
2014-09-26 23:13:38
阅读次数:
602