码迷,mamicode.com
首页 >  
搜索关键字:opmanager 邮件告警    ( 170个结果
linux下实现监控和邮件告警
#!/bin/bash #Scriptmonitor.sh Usermonitor(){ LoginUser=`uptime|awk‘{print$6}‘` if[$LoginUser-ge2] then Critical="当前系统的登录人数过多,具体人数为:$LoginUser个,请确认操作人数." status=0 else echo"loginuserok" status=1 fi } forninUsermonitor do $n if[$stat..
分类:系统相关   时间:2016-06-06 01:24:36    阅读次数:313
【7】Zabbix WEB指标监控
先创建一个Template如果需要在Template上使用Application需要先链接到要监控的主机准备测试用的WEB页面:添加Trigger:添加Trigger后,再可以添加Actions,如邮件告警(告警升级),执行脚本等操作。
分类:Web程序   时间:2016-04-30 01:12:29    阅读次数:213
【4】Zabbix添加Templates、邮件告警
下面添加Templates:Configuration--Templates---CreateTemplate找到刚新建的Template(Configuration---Templates---NetworkTraffic)在Template上添加Application/Items/Triggers/Graphs/Screens等。按之前新建的方法创建:链接刚创建的模版:Screens还是得新创建:Action配置..
分类:其他好文   时间:2016-04-29 20:13:06    阅读次数:216
监控web服务器是否正常
写一个监控网站的脚本。发现不正常发邮件告警。每分钟检测一次。提示:使用curl命令检测,根据结果判断。#!/bin/bash url=http://www.apelearn.com/bbs/forum.php ip1=1.1.1.1 ip2=2.2.2.2 ip3=3.3.3.3 cop="--connect-timeout3-I" check(){ curl$cop-x$1:80$url2>/dev/null..
分类:Web程序   时间:2016-04-22 01:14:46    阅读次数:249
nagios监控mysql主从,并且邮件告警!
客户端操作:yuminstall-ynagios-pluginsnagios-plugins-allnrpenagios-plugins-nrpe#安装vim/etc/nagios/nrpe.cfg#更改客户端的nrpe配置文件allowed_hosts=192.168.20.168#IP更改成监控端的地址,如果是多个使用,分割开#漏了这个后期会出现CHECK_NRPE:Error-CouldnotcompleteS..
分类:移动开发   时间:2016-04-01 16:17:47    阅读次数:261
zabbix 邮件告警配置
使用外部邮箱账号发送报警邮件设置 一、关闭sendmail或者postfix 备注: 使用外部邮箱账号时,不需要启动sendmail或者postfix 如果在sendmail或者postfix启动的同时使用外部邮箱发送报警邮件,首先会读取外部邮箱 配置信息。 二、安装邮件发送工具mailx 1 yu ...
分类:其他好文   时间:2016-03-31 14:23:46    阅读次数:137
zabbix解决方案整理
脚本(一键)安装zabbixhttp://10955691.blog.51cto.com/10945691/1736615zabbix邮件告警原安装AlertScriptsPath在/usr/lib/zabbixhttp://linuxerxy.blog.51cto.com/10707334/1747628zatreeforzabbix-2.4.6原web目录/usr/share/zabbixhttp://leyin01.blog.51cto.com/9062123/17..
分类:其他好文   时间:2016-03-23 11:29:35    阅读次数:291
利用curl监控web返回状态码监控web service
#/bin/bash #monitoringwebisrunning curlwww.163.com-I|awk-F‘‘‘{print$2}‘|sed‘s/[a-zA-Z]//g‘|grep200 if[$?==0] then echo"webisrunningok" else echo"webisdead"|mail-s"webisnotrunning"1306xxx@139.com fi注:只要返回不是200,就会发邮件告警缺点:如果返回的是301,就..
分类:Web程序   时间:2016-02-23 19:18:39    阅读次数:227
Linux监控和安全运维 2.0 zabbix配置邮件告警
1.发邮件启动postfix /etc/init.d/postfix start mail -s "test" 836503270@qq.com < /etc/inittab mailq 查看发送结果 2.配置发邮件文件 mkdir -p /home/zabbix/bin vim /home/zab
分类:系统相关   时间:2016-01-28 00:39:38    阅读次数:257
系统磁盘监控脚本
前言:此脚本用于监控磁盘容量,当大于80%的时候,发送邮件告警!脚本:#!/bin/bash ###thisisaDiskMonitorscript a=`df-h|awk-F‘‘‘{print$5-$1}‘|sort-n|tail-n1` #b=`echo${a:0:2}` if(($a>80));then df-h|awk-F‘‘‘{print$5$1}‘|sort-n|tail-n1>/data/1.txt echo"请注..
分类:其他好文   时间:2016-01-07 18:26:51    阅读次数:111
170条   上一页 1 ... 13 14 15 16 17 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!