是否有任何工具或腳本持續檢查IBM Websphere nodeagents是否停機。如果下來,它可以通過電子郵件(有關人員)發送通知。如果有任何你的幫助將不勝感激。找到IBM websphere nodeagents的任何方法都停機
-1
A
回答
1
您可以使用在系統進程列表中查找「nodeagent」進程的進程監視工具或自定義腳本。通過您的節點代理的
1
0
我通常會在系統上始終檢查節點代理PID做到這一點,通知的人,但如果你需要一個自動重新 - 在nodeagent上啓動,那麼你可以在/ etc/inittab中配置它,如前面的響應中提供的鏈接中所述。 謝謝 注:這些意見是我自己的。
0
這會做你。修改srvinfoList和sendmail,然後粘貼到PowerShell中。
function sendMail($smtpServer, $Eto, $EFrom, $ESubject, $EBody) {
$msg = new-object Net.Mail.MailMessage ; $smtp = new-object Net.Mail.SmtpClient($smtpServer) ; $msg.From = $EFrom ; $msg.ReplyTo = $EFrom ; $msg.To.Add($Eto) ; $msg.subject = $ESubject ; $msg.IsBodyHTML = $false ; $msg.body = $Ebody ; $smtp.Send($msg)}
Function CheckServers($srvlist) {
ForEach ($srv in $srvlist) {
$SrvName = $srv.split(",")[0] ; $path = "\\" + $SrvName + $srv.split(",")[1]
$PIDs = (Get-ChildItem -recurse $path | %{if($_ -match ".pid") {$_.name} })
$ProcInfo = foreach($PIDName in $PIDS) { $PIDName + "`t" + (get-content ($path + $PIDName.substring(0, $PIDName.Length -4) + "\" + $PIDName)) }
$perflist = (get-wmiobject Win32_PerfFormattedData_PerfProc_Process -computername $SrvName)
foreach ($perf in $perflist) { $SrvName + "`t" + $perf.PercentProcessorTime + "`t" + $perf.IdProcess + "`t" + [system.math]::ceiling($perf.WorkingSetPrivate/1024000) + "`t" + (LU_PIDNAME $perf.IdProcess $ProcInfo $perf.name) }}}
Function LU_PIDNAME($PIDsrch,$PIDdata,$PIDefault) { foreach ($PID1 in $PIDdata) { if ($PID1.split("`t")[1] -eq $PIDsrch) { $PID1.split("`t")[0] ; $PIDefault = $False } } if($PIDefault -ne $False) { $PIDefault } }
[email protected]((@"
WAS7ND1,\d$\WebSphere\AppServer\profiles\AppSrv01\logs\
WAS7ND2,\d$\WebSphere\AppServer\profiles\AppSrv01\logs\
"@).split(10))
while($true){
cls;"Checking Servers for nodeagent`n"
$Results = CheckServers $srvinfoList ; $Results
if((($Results -match "nodeagent").count -eq 0)) {sendMail "mail.isp.com" "[email protected]" "[email protected]" "NodeCheck" "Node is Down"}
start-sleep -seconds 60 }
相關問題
- 1. IBM Websphere Portal認證方法
- 2. IBM Websphere BPM/Lombardi
- 3. IBM Websphere MQ Monitoring
- 4. 卸載IBM WebSphere
- 5. IBM WebSphere Commerce Promotions
- 6. 在IBM WebSphere上
- 7. 無法登錄到IBM Websphere控制檯
- 8. java.lang.ArrayStoreException IBM Websphere
- 9. IBM WebSphere Commerce 8
- 10. IBM Websphere Datapower Xi52
- 11. IBM Websphere JPA org.apache.openjpa.persistence.ArgumentException
- 12. IBM Websphere OutOfMemoryException
- 13. IBM WebSphere vs Oracle Fusion
- 14. IBM Websphere中的ConnectionWaitTimeoutException
- 15. 的IBM WebSphere XMS.Net CWSMQ0082E錯誤
- 16. 哪裏可以找到IBM WebSphere WMQ 6.0 jar文件
- 17. IBM WebSphere MQ創建腳本
- 18. IBM Websphere Application Server和IBM Websphere Process Server之間的區別?
- 19. IBM WCM/WebSphere開發資源
- 20. ibm webSphere Portal個性化
- 21. C#IBM MQ WEBSPHERE MQRC_NOT_AUTHORIZED
- 22. IBM WebSphere MQ JMS Jar文件
- 23. IBM Connections和IBM Websphere Portal集成
- 24. 爲IIS和IBM Websphere開發
- 25. 禁用ibm websphere中的跟蹤/跟蹤方法
- 26. 無法使用IBM WebSphere Application Server執行JNDI查找Liberty
- 27. 無法在任何地方找到App.xaml.cs
- 28. 任何人都可以在我的php中找到語法misstake?
- 29. IBM WebSphere中的事務
- 30. IBM的WebSphere MQ 7.1.0.2跟蹤
我懷疑有人給你-1沒有提供有關你的環境或你已經嘗試過的信息。 – user2655065