This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place – Suite 330, Boston, MA 02111-1307, USA.


Date: 17.07.2011

Version: 1

First release



Check Windows logs for errors and warnings. The script returns a critical if it founds errors and a warning if it founds warnings.



cscript.exe check_windows_logs.vbs -h hostname -l Log_name -ex “event-idx”

-no arguments Help.
-h hostname Host name or IP address. Use the “.” for the local host.
-l “Log_name” Windows log name. Use a the quotes to include names that have spaces
-ex “event-id” Windows event ID name. If you have many events please separate them with a “,”. This option must not contain spaces between the excluded IDs



cscript check_windows_logs.vbs -h SQL_SERVER -l “Application”
cscript check_windows_logs.vbs -h -l “Application” -ex “500,300”
cscript check_windows_logs.vbs -h . -l “System” -ex “1”

Download the plugin!
Please leave in the comments:

  • any feedback you might have
  • the bugs /or features that you find / you wish for
  • how did you used the script!

Mihai out!

One thought on “check_windows_logs_via_wmi

  1. Pingback: How to monitor Windows logs with WMI. « "DZUB-NON TRUL-PAR"

Leave a Reply