问题标签 [scom]

For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.

0 投票
1 回答
934 浏览

powershell - SCOM 监视器的 WMI 访问被拒绝错误

我正在为 SCOM 2012 SP1 定制一个管理包,里面有一个监视器。该监视器基于 Microsoft.Windows.PowerShellTriggerOnlyProbe 模块和 WMI 对远程非域服务器的 powershell 脚本查询。此脚本应检查远程服务器上的特定进程。

Сorresponding 部分脚本:

当我从 SCOM 的操作帐户下的 powershell 控制台运行脚本时,脚本运行良好,但是当我将其导入 ManagementPack 时,我收到此错误:"Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED))"在 $ErrorMSG 中。

在远程服务器上使用本地管理员凭据。

远程服务器上没有 powershell,所以我不能使用 powershell 远程处理,唯一的方法是使用 WMI。请帮忙!

0 投票
2 回答
882 浏览

xml - SCOM维护模式powershell脚本坏了

在我的公司中,我们使用将对象置于维护模式的 powershell 脚本。问题是它突然停止工作 - 没有错误,但脚本什么也不做

维护间隔由 XML 文件定义

例如

这是脚本

有任何想法吗?

0 投票
1 回答
939 浏览

azure - 使用 powershell cmdlet 为 Azure 订阅启用诊断

真的可以使用 powershell cmdlet 为整个 Azure 订阅启用诊断吗?还是应逐个启用诊断(监视 azure 应用程序、监视 vm 和存储帐户)?

在操作管理器控制台中,我们添加了我们的 azure 订阅,导入了 azure 管理包,但操作管理器没有发现该订阅下的 azure 云服务、vm 或存储帐户...我们希望为 azure 订阅启用诊断将解决问题。

0 投票
1 回答
157 浏览

powershell-3.0 - 如何使用 powershell 从 scom 中的数据仓库获取 1 年前的警报详细信息?

如何使用 powershell 在 scom 中获取 1 年前的警报详细信息?

我努力了:

得到警报 | Where-Object { $_.TicketId -ilike "IR-*"}

但只收到 1 周前的警报。请帮忙,

谢谢

0 投票
2 回答
2518 浏览

scom - 无法打开操作管理器数据库

我对 SCOM 2012 R2 有疑问。我们默认安装了它并且它正在工作。但今天我收到一条错误消息。我在 Microsoft 网站和任何其他技术网站中找不到任何解决方案。

这是以下错误消息:

由于以下异常,OpsMgr 管理配置服务无法执行引导工作项“ConfigurationDataProviderInitializeWorkItem”

System.Data.SqlClient.SqlException (0x80131904):无法打开登录请求的数据库“OperationsManager”。登录失败。用户 'XXX\Scom' 登录失败。在 System.Data.SqlClient.SqlInternalConnection.OnError(SqlException 异常,布尔 breakConnection,操作1 wrapCloseInAction) at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose) at System.Data.SqlClient.TdsParser.TryRun(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj, Boolean& dataReady) at System.Data.SqlClient.TdsParser.Run(RunBehavior runBehavior, SqlCommand cmdHandler, SqlDataReader dataStream, BulkCopySimpleResultSet bulkCopyHandler, TdsParserStateObject stateObj) at System.Data.SqlClient.SqlInternalConnectionTds.CompleteLogin(Boolean enlistOK) at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover) at System.Data.SqlClient.SqlInternalConnectionTds.LoginNoFailover(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString connectionOptions, SqlCredential credential, TimeoutTimer timeout) at System.Data.SqlClient.SqlInternalConnectionTds.OpenLoginEnlist(TimeoutTimer timeout, SqlConnectionString connectionOptions, SqlCredential credential, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance) at System.Data.SqlClient.SqlInternalConnectionTds..ctor(DbConnectionPoolIdentity identity, SqlConnectionString connectionOptions, SqlCredential credential, Object providerInfo, String newPassword, SecureString newSecurePassword, Boolean redirectedUserInstance, SqlConnectionString userConnectionOptions, SessionData reconnectSessionData) at System.Data.SqlClient.SqlConnectionFactory.CreateConnection(DbConnectionOptions options, DbConnectionPoolKey poolKey, Object poolGroupProviderInfo, DbConnectionPool pool, DbConnection owningConnection, DbConnectionOptions userOptions) at System.Data.ProviderBase.DbConnectionFactory.CreatePooledConnection(DbConnectionPool pool, DbConnection owningObject, DbConnectionOptions options, DbConnectionPoolKey poolKey, DbConnectionOptions userOptions) at System.Data.ProviderBase.DbConnectionPool.CreateObject(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) at System.Data.ProviderBase.DbConnectionPool.UserCreateRequest(DbConnection owningObject, DbConnectionOptions userOptions, DbConnectionInternal oldConnection) at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) at System.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, TaskCompletionSource1 重试,DbConnectionOptions userOptions,DbConnectionInternal& 连接)在 System.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection,TaskCompletionSource 1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) at System.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource1 重试,DbConnectionOptions userOptions)在系统.Data.SqlClient.SqlConnection.TryOpenInner(TaskCompletionSource1 retry) at System.Data.SqlClient.SqlConnection.TryOpen(TaskCompletionSource1 次重试)在 System.Data.SqlClient.SqlConnection.Open() 在 Microsoft.EnterpriseManagement.ManagementConfiguration.DataAccessLayer.ConnectionManagementOperation.Execute() 在 Microsoft.EnterpriseManagement.ManagementConfiguration.DataAccessLayer.DataAccessOperation.ExecuteSynchronously(Int32 timeoutSeconds, WaitHandle stopWaitHandle) 在 Microsoft .EnterpriseManagement.ManagementConfiguration.CmdbOperations.CmdbDataProvider.Initialize() 在 Microsoft.EnterpriseManagement.ManagementConfiguration.Engine.ConfigurationDataProviderInitializeWorkItem.ExecuteWorkItem() 在 Microsoft.EnterpriseManagement.ManagementConfiguration.Interop.ConfigServiceEngineWorkItem.Execute() ClientConnectionId:e54564ff-b6ca-4241-b9db- e7922da1e832

你有什么答案吗?

0 投票
1 回答
825 浏览

powershell - 在 SCOM 2007 中获取警报解决状态的 PowerShell 方法?

我想知道 SCOM2012 上是否有类似 Get-SCOMAlertResolutionState 的命令,但在 SCOM2007 中。

我找不到在 powershell 中执行此操作的方法。通过 GUI 执行此操作非常简单,因此必须有一种方法可以通过 powershell 或 SQL 查询来获取此操作。

我想要的是你找到的:Operations Manager Console->Administration->Alerts->Alert Resolution States。

谢谢!

0 投票
1 回答
82 浏览

mysql - 我可以集成 mysql 和 sql server 数据库以在 sql server 上查看它们吗

我已经在我的 Windows Server 2012 上安装了 mysql 和 MSSQLSERVER,我需要使用系统中心操作管理器 2012 sp1 来监控它们。现在可以监控 sql server 但不能监控 mysql server 所以我可以集成 mysql 和 microsoft sql server 以便我可以像在 sql server 中一样获取 mysql 中的所有数据库。我怎样才能做到这一点?有什么办法吗?

0 投票
1 回答
816 浏览

log4j - 使用 Microsoft SCOM 扫描 log4j 文件

我希望使用基于 log4j 写入的日志文件的扫描的 SCOM 实用程序发出警报,例如使用 DailyRollingFileAppender 标准附加程序。

但是,SCOM 文档明确指出它在日志文件中保留了一个高水位线行号,如果它在一分钟内被截断,它将不会注意到该行号之前的日志条目。

除非我遗漏了什么,否则这对于所有标准附加程序来说似乎都是一个问题,它们专门这样做(即他们总是记录到一个文件名,然后当他满足包装条件时,他们将文件的内容复制到一个存档,然后清除(以某种方式)相同的文件名。

任何人都可以为我解决这个问题(例如,确定可以使用 SCOM 的另一种方式,或者将我指向另一个附加程序?)

SCOM Document extract... 如果在同一分钟内删除并重新创建了同名的日志文件,则不会重置高水位线,并且将忽略日志条目,直到超过高水位线。

谢谢

0 投票
1 回答
1682 浏览

powershell - 通过 Windows 命令行在 SCOM 中运行 PowerShell 脚本

我正在使用一个 3rd 方应用程序,该应用程序创建 powershell 脚本以将 SCOM 对象放入和退出维护模式。这个第 3 方应用程序如何通过 windows 2012 R2 命令行调用 SCOM 并告诉它执行脚本?

0 投票
1 回答
57 浏览

windows-server-2008 - 如果没有网络连接,SCOM 代理是否会将数据排入队列?

我想问如果没有网络连接,SCOM 代理是否会将警报等数据排入队列?它使用 MSMQ 吗?如果 MSMQ 死了怎么办?

谢谢