- 论坛徽章:
- 0
|
本帖最后由 chenzq1604 于 2010-04-30 00:56 编辑
/usr/lib/nagios/plugins/check_nrpe -H 192.168.54.23 -p 5666 -c check_mssql
check_mscount!check_ms ...
chenl 发表于 2010-04-28 13:53 ![]()
我在 alias段中定义了- [External Scripts]
- ;check_es_long=scripts\long.bat
- ;check_es_ok=scripts\ok.bat
- ;check_es_nok=scripts\nok.bat
- ;check_vbs_sample=cscript.exe //T:30 //NoLogo scripts\check_vb.vbs
- ;check_powershell_warn=cmd /c echo scripts\powershell.ps1 | powershell.exe -command -
- [color=Red]check_mssqlcount=scripts\check_mssql_nt.exe /H:dolphin.rix.local /CHK_CONNECTIONCOUNT[/color]
- ;check_mssqlcount=C:\Program Files\NSClient++\scripts\check_mssql_nt.exe /H:dolphin.rix.local /CHK_CONNECTIONCOUNT -w:50 -c:100
- check_update=cscript.exe //NoLogo //T:40 scripts\check_updates.wsf
- [External Alias]
- alias_cpu=checkCPU warn=80 crit=90 time=5m time=1m time=30s
- alias_cpu_ex=checkCPU warn=$ARG1$ crit=$ARG2$ time=5m time=1m time=30s
- alias_disk=CheckDriveSize MinWarn=10% MinCrit=5% CheckAll FilterType=FIXED
- alias_service=checkServiceState CheckAll
- alias_process=checkProcState $ARG1$=started
- alias_mem=checkMem MaxWarn=80% MaxCrit=90% ShowAll type=physical
- alias_up=checkUpTime MinWarn=1d MinWarn=1h
- alias_file_age=checkFile2 filter=out "file=$ARG1$" filter-written=>1d MaxWarn=1 MaxCrit=1 "syntax=%filename% %write%"
- check_ok=CheckOK Everything is fine!
- [color=Red]checkmssql=check_mssqlcount[/color]
- ckPLM=check_db_EPicorPLM
复制代码 见红色部分,但是还是出现之前的错误,这个很奇怪, 而且我在客户端停掉服务,直接运行 nsclient++.exe /test 来查看,如果是命令的话会有取值返回的,而nagios web界面执行的没有任何输出.- d NSClient++.cpp(1110) Injected Performance Result: ''
- d NSClient++.cpp(1073) Injecting: CheckVersion:
- d NSClient++.cpp(1109) Injected Result: OK '0.3.7.493 2009-10-12'
- d NSClient++.cpp(1110) Injected Performance Result: ''
- d NSClient++.cpp(1073) Injecting: checkupdate:
- d NSClient++.cpp(1073) Injecting: check_update: $ARG1$, $ARG2$
- d NSClient++.cpp(1109) Injected Result: CRITICAL 'Critical: 45 Updates detected!
- No Reboot required!'
- d NSClient++.cpp(1110) Injected Performance Result: ''
- d NSClient++.cpp(1109) Injected Result: CRITICAL 'Critical: 45 Updates detected!
- No Reboot required!'
复制代码 我的其它插件没有问题,石头大哥碰到过没有? |
|