nagios进程监控check_ps.sh

nagios-plugins自带的有一个check_procs插件。用来做进程监控,不过该插件只能做已存在的进程fork超出多少个子进程的监控告警。而对进程是否存在不能做监控。对进程的监控可以借助check_ps.sh这个脚本去实现,而且其还可以配合pnp4nagios方便的出图……

Continue reading

svn备份和还原

svn的备份和还原是svn维护中的日常工作。以下将对其备份和还原策略做下分类说明。 一、 备份策略 svn的备份方式一般有三种: 11)svnadmin dump 22)svnadmin hotcopy 33)svnsync 注意,svn备份不宜采用普通的文件拷贝方式(除非你备份的时候将库暂停),如copy命令、rsync命令。 笔者曾经用 rsync命令来做增量和全量备份,……

Continue reading

SVN版本库的备份、还原、移植(初级篇、中级篇和高级篇)

一、初级篇 版本库数据的移植:svnadmin dump、svnadmin load 导出: $svnlook youngest test //查看到目前为止最新的版本号 $svnadmin dump test > dumpfile //将指定的版本库导出成文件dumpfile 导入: $svnadmin load newtest 二、中级篇 1$svnadmin dump test –r 23 >rev-23.dumpfile //将version23导出 2$svnadmin dump test –r 100:200 >rev-100-200.dumpfile //将version100~200……

Continue reading

svn的安装(整合apache、ldap)

以下是centos环境下,以yum安装apache及其相关软件。svn使用源码包编译,使用官网最新的1.8.5版本。 一、安装apache openldap及其相关模块 1yum -y install httpd httpd-devel openldap openldap-devel mod_authz_ldap openssl openssl-devel zlib zlib-devel apr apr-uti 二、安装sqlite 由于centos6.4上自带的sqlite 3.6.20版本太低,不符……

Continue reading

Nagios notification_options

在nagios的几个触发参数里会有w、d、u、f这样的调用方式。具体每个字母代表的意思如下: 1host_notification_options: 2d = notify on DOWN host states, 3u = notify on UNREACHABLE host states 4r = notify on host recoveries (UP states) 5f = notify when the host starts and stops flapping 6s = send notifications when host or service scheduled downtime starts and ends 7n (none) as an option, the contact will not receive any type of host notifications. 8service_notification_options: 9w = notify on WARNING service……

Continue reading

nagios模板、主机、服务与通知

监控的作用有两个:一是可以通过查看历史或当前了解主机一段时间内的运行情况、负载情况;一是在出现状况时及时发出通知,告知相关人员进行处理。这里主要说下后者。 在nagios的配置中,关于主机状态和服务状态通知的方式主要有三种调用方法,一是通过contacts或contact_grou……

Continue reading

nagios分组相关

nagios监控功能非常强大,不仅仅适用于几台设备的监控,也适合用于上千台的主机和设备进行的监控。但当机器变得越来越多时,管理就会变得越来越混乱,这时分组就会显的比较清晰明了。nagios的分组功能非常强大,可以进行主机分组、服务分组、通知分组等。以下主要针对主机分组,服务分组和……

Continue reading

windows下利用ftp批处理备份

一台sqlserver的数据库想要实现每天从该机的备份数据传到另外一台上。备份文件是以日期的形式存在的。在备份机上开的有ftp,具体通过bat实现的批处理如下: 1@echo off 2echo open 192.168.6.8>ftp.txt 3echo use ftpuser>>ftp.txt 4echo ftppassword>>ftp.txt 5echo lcd D:CrmDbBack>>ftp.txt 6echo bin>>ftp.txt 7echo put Crm_backup_%date:~0,4%%date:~5,2%%date:~8,2%1325.bak >>ftp.txt 8echo bye >>ftp.txt 9echo quit >>ftp.txt 10echo exit >>ftp.txt 11cd /d d:Crm 12ftp -n -s:ftp.txt 其中ftpuser为ftp的用户名,ftppassw……

Continue reading

Deny Hosts Using Nginx

I was noticing my nginx log file fill up with requests for a site who had misconfigured their DNS. Normally I wouldn’t worry about it, but it became quickly evident that the domain was used for an image server for a parent site. There were thousands of RPS that I really didn’t need. All I did was add the following expression to my nginx.conf file. 1Server { 2 ...snip... 3 ## Deny illegal Host headers 4 if ($host !~* ^(mydomain.com|www.mydomain.com)$ ) { 5 return 444; 6 } 7 ...snip... 8} Now if you look at the code, you may be thinking “But Jared, what is a 444 error? That is totally not valid bro.” And indeed, you are correct. But here is what the nginx documentation has to say about it. _“Furthermore, nonstandard code 444 closes the connection without sending any headers.……

Continue reading

php防止wordpress网站被f5刷新的例子

最近比较晕了,博客经常给朋友f5不停的刷新了,这个让一个空间根据搞不定呀,后来网上整理了一些防止刷新的代码才得己解决,下面来看到整理的代码吧,希望这些例子对你有帮助. 搬家到阿里云的头两天头痛了,主机配置低,尼玛的wp的需求高,F5几下就刷死了,你让俺情何以堪,以前用过的主机配置哪……

Continue reading

Latest articles

Categories

Tags

ACL AD AES AI Alpine Android Anpic Ansible Apache Apm Apparmor Appfog Apr Apt-Get Aria2 Array Atlassian Atop Audit Awk AWS Awstats Axel Azure Backdoor Backup Bamboo Bash Bat Benchmark Bigdata Bin Bind Bitwise Blockchain BMC Book Bootstrap Brocade Bsd C1000 Cache Capistrano Catlog CDH5 Centos Centos7 Chatops Chattr Check_mk Checkinstall Cisco CL210 Clickhouse Cloud Cloud-Desktop Cmdb Cms Cobbler Collectd Comm Compress Confd Conver Corosync Cpu Crontab Crunchbang Css Curl C语言 Date DDOS Decode Dell Desktop Devops Df Dhcp Diff Diskpart DISTINCT Django DNS Docker Dos2unix Dpkg Drupal Duckdb EKS ELK Etcd Excel Fail2ban Fastcgi Fdisk Fiddler Find Firewalld Flask Flvtool Ftp Function Fuser GCP Geek Ghost Gin Git Github Gitlab Glances Glusterfs Go Godaddy Golang Google Gooupadd Grafana Graphviz Gravatra Grep Grub2 Hadoop Haproxy Hardware HBA HCIE Heartbeat Helm Hexdump Hhvm History Hotspot Html Http/Html/Web Http/Html/Web Httplogs Https HttpWatch Huawei Huaweicloud Hugo IBM Icmp Iconv Ifconfig IIS InfluxDB Ingress InnoDB Inotify Iopp IOS Ipmitool Iptables Iredmail Iscsi Isito It-News Java JavaScript Jdk Jenkins Jinja2 Jira Join Joomla K3s K8s Kdump Keepalived Kernel Kingate KVM Lamp Last Leetcode Lib Linux Linux高级篇 Ln Ls Lsi Lsof Lvm Lvs Mac Mail Man Mark Markdown Matplotlib Maven Memcached Microservice Mimikatz Mkdocs Mkpasswd Mmonit Mod_jk Mongodb Monit Monitor Mono Moodle Mosh Mount Mplayer Mpm Mrtg Mtr My.cnf Mysql Mysqlbinlog Mysqld_multi MySQLdb Mysqldump Mysqlhotcopy Nagios Nc Nethogs Netlify Nexus Nfs Nginx Nmon Nocatlog Node.js Nrpe Ntfs Ntop Ntp Obs Ocr Open-Falcon Openbox Opencv Openldap OpenResty Openssl Openstack Oracle Oswatch Paas Pacemaker Pam Pandas Parted Pcp Pcre Pdf Percona Perl Pexpect Pgrep Php Php-Fpm Ping Plsql Develope PM Postfix PostgreSQL Powershell Prettify Proc Prometheus Puppeteer Pushd Pwgen Pxe Pyecharts Python Python模块 QoS Radmin Raid Rdesktop Read Redhat Redis Redmine Regex Rh134 RH318 RH442 RHCA RHCE Rhel7 Rhel8 RHEV Rm Rman Rootkit Route Rpm Rpmforge Rrdtool RSA Rsync Rsyslog Safe Saltstack Samba Scapy Screen SecureCRT Sed Selenium Selinux Seo Seq Session Set Shc Sheepdog Shell Shopt Sitemap Skydns Smokeping Snffier Snmp Socket Soft Sort Spider Sql Sqlserver Squid SRE Ss Ssh Sshpass Statuscode Strace Strings Su SublimeText2 Sudo Suse Svn Sysbench Syslog-Ng Sysstat Systemd T Tar TC Tcpcopy Tcpdump Tech Telecom Telnet Tencentcloud Tengine Test Testlink Threads Time Tmux Tomcat Touch Tr Tsar Twisted Ubuntu Udev Ulimit Unix Unixbench User-Agent Useradd Varnish VBA Vbs Vercel Vi Vim Visudo Vmstat Vmware Vnc Voice Vpn Vscode Vsftp Vsftpd Vue Watchdog Web Webcam Webistrano Wget Wiki Windows Wol Wordpress Workshop Wsl X-Windows Xampp Xcache Xmllint Xtrabackup Yule Yum Zabbix Zeromq Zip Zonetime Zookeeper 下载工具 云主机 云原生 代理 加密 古意 吐槽 圈里圈外 娱乐 字符串函数 安全 平台架构 推理 提权 故事汇 故障案例 数据结构 每日看点 民国史 生活 科学记录 站长管理工具 算法 管理 网站架构 翻墙 股票 行业 诗韵 负载均衡 远程管理 面试题

Links

Meta