GithubHelp home page GithubHelp logo

other_nagios_check's Introduction

Other_Nagios_Check

以下是在Nagios运维中的一些奇葩开发脚本,

##Check_SPN.vbs 检查windos AD中的指定用户下SPN注册状态

使用方法:

Check_SPN.vbs 用户名 SPN

example:
 
 Check_SPN.vbs sqladmin MSSQLSvc/MySQL.company.com:1433

##check_directory.vbs 检查指定目录的状况

注:脚本的告警阈值,请修改脚本的中的内容(14~15行位置)
Warning=53964800
Critical=1073741824

使用方法:
       
check_directory.vbs c:\windos

##check_uptime.vbs 检查系统启动时间

使用方法:

	check_uptime.vbs 10 gt 如果系统启动时间大于指定小时数告警
	
	check_uptime.vbs 10 lt 如果系统启动时间小于指定小时数告警

##check_microsoft_cluster.vbs 微软群集检查,继承Creation脚本完善

使用方法:

	check_microsoft_cluster.vbs CLRESP  资源状态监控,是否在首选节点
	check_microsoft_cluster.vbs CLRES   也是资源节点监控,不监控是否在首选节点上
	check_microsoft_cluster.vbs	CLNODE  节点状态监控

##mssql_job_check.py SQLsERVER数据库JOB执行监控

使用方法:

		mssql_job_check.py -h  自己查看吧写得很详细,注需要pymssql 支持

##check_time.vbs windos时间同步检查

使用方法:

	check_time.vbs -h 查看吧
	
注意:如果系统是windos2003以上的版本,脚本中需要修改地方为:
   
   第30行 : strCommand = "%SystemRoot%\System32\w32tm.exe /monitor /computers:" & serverlist
   
   修改为:  strCommand = "%SystemRoot%\System32\w32tm.exe /monitor /nowarn /computers:" & serverlist

##check_apache.py 检查Apache状态

使用方法:
	
	check_apache.py -H 127.0.0.1 -o IdleWorkers -w 80 -c 90 C gt

	check_apache.py -h 其他用法请查看帮助吧
	
注意:需要python支持,脚本为python2.7下开发,需要apache启用管理

##check_mysql.py 检查Apache状态

使用方法:
	
	check_mysql.py -H 127.0.0.1 -u mysqluser -p mysqlpassword -o Max_Used_Connections -w 80 -c 90 C gt

	check_mysql.py -h 其他用法请查看帮助吧
	
注意:需要python支持,脚本为python2.7下开发,需要pymysql支持,可使用pip install MySQLdb进行安装,

		mysql目前只支持5.7以下版本。

##Check_WMI_IIS.VBS 检查IIS性能状况

使用方法:
	
	cscript //nologo Check_WMI_IIS.vbs mail BytesTotalPersec

	cscript //nologo Check_WMI_IIS.vbs mail TotalLockedErrors 5 10

	cscript //nologo Check_WMI_IIS.vbs mail ServiceUptime 3600 2400 lt

other_nagios_check's People

Contributors

dcl-lily avatar

Stargazers

chenchongbing avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.