This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import sys | |
# http://www.python.org.br/wiki/PythonNoLugarDeShellScript | |
from subprocess import Popen, PIPE | |
class Cmd(object): | |
def __init__(self, cmd): | |
self.cmd = cmd | |
def __call__(self, *args): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
' Obtém informações do Microsoft Security Essentials | |
' e exibe de uma forma compreensível ao Zabbix | |
' execute com: cscript.exe //nologo mse.vbs | |
' Este post foi de grande ajuda: | |
' http://serverfault.com/questions/230368/timestamp-of-last-definition-update-for-microsoft-security-essentials-via-script | |
' Tobias 12/11/13 | |
set objetoShell = CreateObject( "WScript.Shell" ) | |
set objetoFS = CreateObject("Scripting.FileSystemObject") |
NewerOlder