Quantcast
Channel: Operations Manager - Authoring forum
Viewing all 2225 articles
Browse latest View live

SCOM 2012 Custom Script Monitor using ADO requires SysWOW64 wscript

$
0
0

Hi,

I have written a VBS script to parse a csv which requires use of a 32-bit COM object.

If I run manually from command line on a 64-bit server: wscript script.vbs, the following error is generated:

ADODB.Connection Provider cannot be found.  It may not be properly installed.

I know that the manual workaround is to manually run: C:\Windows\SysWOW64\wscript.exe script.vbs, which works successfully.

I have not yet created a new script-based SCOM monitor using the script as I expect SCOM will, by default, launch the script using the 64-bit version of wscript, which will fail.

Is there any way to "force" SCOM to use the 32-bit SysWOW64 version of wscript, either through config or script?

If not, does this mean that custom scripts written for SCOM monitors cannot use any ADO objects?

BTW, I know SCOM has a built-in csv parser, but I cannot use it. The folder contains csv files from multiple days and I only want to parse the current day's file.  Even though SCOM allows use of a wildcard in the filename, there is no wildcard combination that will result in a single file.  So the monitor will end up parsing all files.  It would be helpful if the SCOM csv file parser GUI allowed me to use a date variable which would provide me with a solution :)

Thanks,

Jason




How to Create an overridable parameter

$
0
0

HI,

I am monitoring if how many process are running on a node. But in some instances the process number would be different. How can I create an overridable parameter for MinInstance Count, MaxInstanceCount?

Please see my XML code bellow:

      <UnitMonitor ID="CN.My.App.MyProcess.ProcessInstanceCountMonitor" Accessibility="Public" Enabled="true" Target="CN.My.App.CrewTalkImpresarioServer.Class" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="false" Priority="Normal" TypeID="MicrosoftSystemCenterProcessMonitoringLibrary!Microsoft.SystemCenter.Process.ProcessInstanceCountMonitorType" ConfirmDelivery="false">
        <Category>AvailabilityHealth</Category>
        <AlertSettings AlertMessage="CN.My.App.MyProcess.ProcessInstanceCountMonitor.AlertMessage">
          <AlertOnState>Error</AlertOnState>
          <AutoResolve>true</AutoResolve>
          <AlertPriority>Normal</AlertPriority>
          <AlertSeverity>Error</AlertSeverity>
        </AlertSettings>
        <OperationalStates>
          <OperationalState ID="OK" MonitorTypeStateID="InsideRangeState" HealthState="Success" />
          <OperationalState ID="Error" MonitorTypeStateID="OutsideRangeState" HealthState="Error" />
        </OperationalStates>
        <Configuration>
          <ProcessName>MyProcess.exe</ProcessName>
          <Frequency>60</Frequency>
          <MinInstanceCount>1</MinInstanceCount>
          <MaxInstanceCount>1</MaxInstanceCount>
          <InstanceCountOutOfRangeTimeThresholdInSeconds>60</InstanceCountOutOfRangeTimeThresholdInSeconds>
        </Configuration>
      </UnitMonitor>

Having Trouble Creating a PowerShell Script for a Monitor in SCOM

$
0
0

Hello Everyone!

I am making my first attempt at building a custom SCOM monitor using a power shell script. I believe I am following the appropriate methods to return data to SCOM, but my script is failing on the this line of code. 

$api = new-object -comObject 'MOM.scriptAPI'

Here is the text of error, the graphic could be difficult to read:

new-object : Retrieving the COM class factory for component with CLSID {00000000-0000-0000-0000-000000000000} failed due to the following 
error: 80040154 Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG)).
At C:\Users\chirilloj\Desktop\Folder_Size_MOM.ps1:5 char:8
+ $api = new-object -comObject 'MOM.scriptAPI'
+        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ResourceUnavailable: (:) [New-Object], COMException
    + FullyQualifiedErrorId : NoCOMClassIdentified,Microsoft.PowerShell.Commands.NewObjectCommand

I have found multiple examples online that use that exact same line of code, but it seems to be failing for me. I am not extremely well versed in PowerShell, so I was hoping that someone might be able to point out what is causing the script to fail and a solution.

Here is my entire script.

$dirSize = Get-ChildItem \\my\file\path\ -Recurse -Force | Measure-Object -Property Length -Sum
$dirSizeGB = "{0:N2}" -f ($dirsize.sum /1gb)
$dirThreshold = 35

$api = new-object -comObject 'MOM.scriptAPI'
$bag = $api.CreatePropertyBag()

$bag.AddValue('dirSizeGB',$dirSizeGB)
$bag.AddValue('dirThreshold',$dirThreshold)

$api.Return($bag)
$bag

--Tony




Need to change the targeting group of a Rule or monitor after a alert is created.

$
0
0

Hi All,

I have created many alerts and they are working fine. Currently due to business requirement we have installed Windows server 2012 operating systems in our production environment. But we have targeted the"Windows server 2008 r2 full operation system" group as per the below screen shot. As we now have to import the management pack for Windows server 2012 as well.

What we have planned is to change the targeting group from "Windows server 2008 r2 full operation system"to "Windows server operating system group" so the alert / monitor or rule will target all windows server which has been discovered in SCOM rather that only the servers running Windows server 2008 r2.

I was also not able to set overrides for this as that server was not coming under Windows server 2008 r2 full operation system as it was a Windows server 2012 agent.

I can also go ahead and create new alerts but i have created custom of 1000 alerts and i cannot go ahead and re create them.

Is there any way to change them. If yes Can i do a bulk change via powershell ?

Below is the screenshot of what i really want. Can any on e please help.


Gautam.75801

Would like to create powershell script monitor in VSAE.

$
0
0

Hi everyone!

I would like to create powershell script monitor in VSAE, but couldn't find appropriate unit monitor type. Is this possible?

Thank you in advance.





Override alert from specific source

$
0
0

Hi

I have multiple alerts which i want to disable. I want that this override will be on specific source. Currently the alerts looks like:

I already created group and management pack Windows Server 2008 IIS 7 Overrides, and want to disable all alerts concerning asp.net v4.0 for example.

SCOM 2012 Dashboard - can a discovery be customized to get input from a file as well as discover machines on a network

$
0
0
I'm new to SCOM so forgive my ignorance here. I am in the process of developing a dashboard to display 2 things in SCOM 2012.  Firstly, displaying the state of a Windows machine that has a specific TCP Port open - these machines are obtained from a list of machines in a textfile and discovered on the network.  

Secondly, when the machine is being monitored in the top grid, have another grid widget below that displays custom details about the selected machine.  To do this I am relying on a Powershell script and the Param($globalSelectedItems) to get the selected items.

My question is -   what's the best approach for obtaining the machines with specific ports open from both a textfile AND from the network.  Can a discovery be customized to do both or is there another way?  

If there are specific resources I should be looking at such as dashboard examples etc., please forward on

Many Thanks,

Paul 

Performance view for one process in process state in monitoring tab is empty

$
0
0

Hello Everyone,

We want to monitor the memory utilization of particular process.
I have created two process monitors(from process monitoring wizard) for two processes.
For one of the process, i am able to generate the report and view the performance view graph(from process state in monitoring pane) also.
For the other one, the rule is not reflecting when i try to generate the report and in the performance view also no instance is displayed.

Please help me to solve this issue.


ACS configuration for DMZ server in the environment where Agent communicating with SCOM 2012 using certificate.

$
0
0

Hi

I have SCOM 2012 SP1 in a child Domain. 

It is monitoring both (parent and child) Domain servers most in Parent Domain.

It is also Monitoring  DMZ server (Not in trusted domain ) Using certificates.

ACS service is enable for all the server.

One day I come  to know not even a single DMZ server ACS forwarder is able to communicate with ACS collector.

Then, after digging for the issue I come to know after reading the below two KB--

http://technet.microsoft.com/en-us/library/hh872886.aspx

http://blogs.technet.com/b/cliveeastwood/archive/2007/05/11/how-to-configure-audit-collection-system-acs-to-use-certificate-based-authenication.aspx

Steps to perform on the ACS Forwarders

 

Assumption is that each of the agents already has a certificate and is communicating normally to the management server.

  • Launch a copy of MMC.exe and add the Certificates snap-in for the Computer Account (Local Computer)
  • Locate the certificate in the personal computer store used for OpsMgr agent authentication and export the certificate without the private key in DER encoded binary X.509 format to file. (Recommend the file name is the computer name for identification later)
  • Transfer the certificate file to a computer in the ACS Collectors domain which has administrator access to Active Directory Users and Computers.
  • Within Active Directory Users and Computers you will need to create a Computer account matching each server in the untrusted domain for certificate mapping purposes
  • Once you have this dummy computer account created use the "Name Mappings.." option (you will need Advanced Options enabled from the View menu) against the computer account, and from the X.509 panel select Add and add the certificate file you exported for that computer in the second step above.
  • Once each agent has an account in AD and the certificate mapping in place, on the agent using a CMD prompt run ADTAgent -c  . This should display a list of certificates in the computers personal certificate store and title each with a numeric reference (1...n). If you have more than one listed select the certificate already used for Management Server authenication by selecting its number (e.g. 1 , if there is only one). Selecting 0 will abandon the selection and not make any changes. Also confirm the Issued to (subject) is the FQDN.
  • The ACS Forwarder should now be in a position to use certificate based authentication.

All DMZ certificate need authentication from Active directory.

My question is, from which AD I authenticate the certificate Parent Or Child Domain (SCOM is in child Domain).

Thanks

Amit Raj 


Unable to rename Attributes in SCOM 2012 R2

$
0
0

I've created 2 new Attributes in SCOM 2012 R2.

The first one I'm unable to rename (it renames it but then reverts back a few seconds later) and the second one ignored the name I gave it and called it "AttributeDiscoveryGeneratedByUI" and a load of hex after it. When I try to rename the second one the Name and Description fields are blank!

Internet searches are light on this issue so any help gratefully received - is it a bug??!

How do i create a target class to target it to a Rule or monitor

$
0
0

Hi All,

How do i create a target class to target it to a Rule or monitor.

When we create a rule or monitor we target it to a specific class or classes of objects. Like in the example of the below screenshot.

I want to know how do i create my own custom made target for specific servers and point them to that target so i can select that when i create a rule or monitor.


Gautam.75801

Blue Screen of Death (BSOD) Rule Alert

$
0
0

Hi, I recently set up an NT Event Log rule to alert on a BSOD error

EventID: 1001

Source: BugCheck

However the rule doesnt appear to work as we have had a few servers Blue Screen and havent received any alerts.  I have set the rule target to be all Windows Servers with a Critical Severity.

 

Would anyone have any suggestions as to why it doesnt appear to alert?  all other alerts we have created work perfectly.

 

Thanks,

John

How to Import Custom MP between SCOM 2012 SP1 and Authoring Console 2007 R2

$
0
0

Hi,

What are all the required actions to take to import a custom MP back and forth between SCOM 2012 SP1 7.0.9538.0 and Auth Console 6.1.7221.49, please?  I expect my first attempt at writing an MP capable of cookdown is going to require multiple attempts in Auth Console.

Is there a method to reference both old and new versions of the libraries at the same time so that I can quickly import the MP back and forth?  Please note that I have Auth Console installed on my workstation without SCOM server installed.  Is this a recommended practice or will I avoid complexities by developing on an Auth Console installed on the SCOM 2012 server itself?

When I create an MP in Auth Console 6.1.7221.49, import it into SCOM 2012 SP1 7.0.9538.0 and then try to import it back into the Auth Console, the following error is generated:

XSD verification failed for management pack.  The schemaversion attribute is not declared.

The link below identifies root cause and recommends referencing old versions of the libraries.

When I replaced the References section with the original Auth Console-generated section for file versions 6.1.7221.0, the same error is generated.

If I replace the entire Manifest section, the new reimport error is The Extension attribute is not declared.

<ClassType ID="BI.Monitoring.Management.Pack.BIDataFeedFTPServerRole" Accessibility="Internal" Abstract="false" Base="Windows!Microsoft.Windows.ComputerRole" Hosted="true" Singleton="false" Extension="false" />

If I remove this and another reference to Extension="false, then the reimport error becomes: the management pack is corrupted and cannot be loaded due to Cannot resolve identifier, unknown alias (new group I created in SCOM Ops Console).

reference:

http://social.technet.microsoft.com/Forums/systemcenter/en-US/112ed70f-9027-4b35-b537-b3aa654059fc/scom-2012-rc-authoring-console-2007-r2-x64?forum=operationsmanagergeneral 

Much thanks in advance!

Jason

Global Service Monitor (GSM) Config

$
0
0

Hello all, I have recently configured GSM with the external monitoring services being in the U.S. 

When I look at the monitor - Authoring>MP Objects>Monitors>Multi-URL Template (*Monitor Name*) it shows enabled is set to true.

However when I look at - Monitoring>Monitoring>Application Monitoring>Web Application Availability Monitoring>Web Application Status - The monitor does not have a check mark next to it.

When I look at - Monitoring>Monitoring>Application Monitoring>Web Application Availability Monitoring>Test State - none of the five external servers are checked and they all say "Not Monitored"

So I'm trying to figure out if it's enabled or not and if not where do I go to enable it?  When I have setup internal (Non GSM) web tests they are just enabled so I'm not sure what's different with this one.

Thank you,

Matt

Unit monitors fire inconsistently... they trigger as scheduled for a while, then stop until the monitor is deleted and recreated?

$
0
0

Hello all!

First off, this is my first foray into SCOM monitor authoring so forgive me if this is a question with an obvious answer.

I'm running into an issue with monitors that I don't know how to resolve... I am building some unit monitors that are scheduled to run every X minutes (15 in this case). They start out executing every 15 minutes but after a few hours, days, etc (it's unpredictable) they stop executing. In some cases I can get them to start up again by disabling then re-enabling the monitor, in other cases by changing the scheduling, but most of the time I am having to delete the monitor and recreate it to get the script to execute as scheduled.

In particular, this is happening with my PowerShell script unit monitors. I followed the directions here (http://blogs.msdn.com/b/wei_out_there_with_system_center/archive/2013/10/03/opsmgr-using-wizards-to-create-powershell-based-monitors.aspx) to create features for both two-state and three-state PowerShell script monitors. They seem to work fine... I have been checking that the scripts are running both by writing to log files and by writing to the Windows Event Log. However, there is no indication what is stopping the unit monitors from running as time goes on.

Does anyone know what could be causing this?

I'm using SCOM 2012 with UR3 installed.

Thanks!


database tables monitoring

$
0
0

Hi,

In BPC we have a table which contains logs about BPC activity (errors, warnings, information), is it possible to setup SCOM to monitor this database for certain things within this table?

We cannot monitor for LogID as this ID is created every time a new entry is added no matter what job it is but was hoping we could monitor for certain “Job Name”? Please let me know if this is possible with SCOM?

Regards,

D.R.

Need a SCOM 2012 Widget that has computer health totals only

$
0
0

Hi All,

I'm stuck trying to create a widget or computer health view in SCOM 2012 R2, that simply shows the total number of computers with health in a critical state, the total number of computers with health in a warning state as well as unmonitored state.  Very much like the home page of the Monitor Pane in the SCOM 2012 Console like Below:

I realize that I can scope a view only to this page with read only rights, but I need to put this information into a widget or view for execs. 

Anybody created a widget like this?


Unable to discover custom class

$
0
0

Hi,

I have prepared a custom discovery class which returns a mom api instance with some properties. The MP only has discovery related code. The script is executing properly and works fine when debugged alone. However, when the management pack is deployed in scom console I dont see the class getting discovered under managed inventory node.

Do let me knw how to debug this problem. I am new to SCOM and dont have much idea. The custom class is discovering a java application.

SCOM Command Line tasks fails to run using SCOM action account

$
0
0

Hi All,

I have a very strange issue on my SCOM task. I have a SCOM task to run a program i used the  VBS script option and created the task. The issue here is that the task should run using the SCOM Action account.

My SCOM Action account has full privileges over the whole domain.

When i run the task using the default action account, The task fail's on my agents. (It shows success in 1 minute but does not run).

When i enter the same action accounts username and password manually on the bottom box to run the task as, then the task runs and executes on my agents. Below is the screen shot for your reference.

I ran this task using my user account as i am a part of the SCOM admins security group
Logged in to the server using the action account its self but still the result is same

Please note: My action accounts are set as the "passwords never expires" and the password was also not changed at any point of time. When i discover a  agent using the action account the discovery is successful and the SCOM application is successfully installed on the agent as well. Other general powershell / batch scripts work well, except this one.

I get this same error on both my SCOM 2007R2 & SCOM 2012 R2 as well.

Can any one please help..

Error screenshot of task being completed in 1 minute:
=====================================

2. Screen shot of the task successfully running if i use the action account or any other domain account manually:
================================================================================


Gautam.75801

SCOM 2007 Text log file error .

$
0
0

Hi,

Is it possible to read a logfile and detect  multipule Error code ??

Like if  Error1 or Error2 or Error3 or Error4 then trigger error Critical. 

Thanks in advance 

Viewing all 2225 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>