PowerShell: Check Service Status


To ensure the Backup Exec Agent service running OK on each cluster nodes. I created a list to include each nodes and named it as CS_servers.txt, then use the following script to get the status of it. Get-WmiObject win32_service -ComputerName (Get-Content CS_servers.txt) -Filter "name='BackupExecAgentAccelerator'" | select __server,name,startmode,state,status The results are like: __SERVER  : CS-node-01 name      … Continue reading PowerShell: Check Service Status

PowerShell: Find a Specific Event ID


We have a bunch Windows servers having the notorious 333 error issue periodically. To catch this error as soon as possible, I wrote a script and added it into schedule tasks. $Servers = Get-Content servers_list.txt Foreach ($Server in $Servers) { Write-Host -backgroundcolor yellow **************$Server********************* Get-EventLog -ComputerName $Server -LogName System -After (Get-Date).date | Where-Object {$_.EventID -eq … Continue reading PowerShell: Find a Specific Event ID

AlienVault: File Integrity Monitor


AlienVault is an OSSIM product. OSSIM stands for Open Source Security Information Management. The installation package can be found here. One of the things that AlienVault can do is to monitor the file integrity. To do that, you have to install ossec agent on the servers that you want to monitor. ossec is an open … Continue reading AlienVault: File Integrity Monitor

Nagios: Synthetic Transaction


What is synthetic transaction? Simply speaking, it is a way to check the availability of an application across network. By definition, a synthetic transaction continues an automated, self-contained set of user operations that can be excuted against a service in the same way of a real cosumer of the service operates an application. For example, … Continue reading Nagios: Synthetic Transaction

Nagios XI: A restriction


One of the disadvantages of using Nagios XI is that it does not allow you directly modify the configuration file, like /usr/local/nagios/etc/services/*.cfg, /usr/local/nagios/etc/hosts/*.cfg. Well, let me make it more accurate. I should say that you are able to directly modify the configuration files, but your modifications will be overwritten by NagiosQL when you configured something … Continue reading Nagios XI: A restriction