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

Script create "Web Application Availabillity Monitoring" with Powershell

$
0
0
Hi.

This Powershell script that can create the "TCP port monitoring" and works perfect.
https://code.google.com/p/mod-posh/source/browse/powershell/playground/CreatePortMonitoring.ps1
Syntax:
.\CreatePortMonitoring.ps1 -serverName:‘server’ -portNumber:‘80’ -pollIntervalSeconds:‘120’ -watcherNodes:“server” -displayName:‘Test TCP monitoring’ -targetMP:‘testMP’

I am now trying to modify the script so it can create "Web Application Availabillity Monitoring"
But i am a little stuck here.

So my quistion is:
Anyone knows if there is someone who have created a Powershell script that can create  "Web Application Availabillity Monitoring" ?

Thanks
Rune


Custom Monitor Health State Troubleshooting Techniques

$
0
0

Hi,

I have created a Custom Timed Script 2-state Monitor through Ops Console in SCOM 2012 SP1 and the health state is misbehaving and remains Healthy always, even while the unhealthy expression should be evaluated as True.

I have confirmed the monitor is targeted to class IIS FTP Server, as the monitor appears in Health Explorer for FTP Server and is displayed as enabled.

I have used LogScriptEvent in the script to write an event of the results of the script on the agent and the value that will be passed back to the SCOM server, so I also know the script is executing and generating the correct results.

The script returns a numeric value, either 0 or a positive value (ie. no negative value number).

The healthy expression is = 0.  The unhealthy expression is > 0.

The returned value represents the number of missing files and when it is for example 12, the health state is not changing to unhealthy and no alert is generated.

I have updated the MP version and confirmed the agent receives the latest version.

I have flushed the agent health state.

I have reset and recalculated the monitor.

I have reviewed agent and server event logs and do not see any related errors.

I have used a simple alert description in case it itself had an error and was preventing a healthy state change.

I have review the xml and see no issue. I updated the monitor xml manually to receive and compare the script value as an integer (instead of the default string type that the gui creates).

I wish I knew how to see the results of the SCOM workflow that determines if a health state change is required.

My next steps in the absence of a better action plan, is to reverse the healthy/unhealthy expressions to see what happens or recreate the MP from scratch.

Any help would be greatly appreciated as I have been banging my head on this one!!

Powershell WriteAction Target=”SC!Microsoft.SystemCenter.ManagementServer Runs on Gatewayserver instead of Management Server

$
0
0

Hi

We are trying to implement a solution wich a server can set itself to maintenance mode and stop maintenance mode as well.
We made some tests with the sample agent maintenance mode mp, and one which is written by ourselves (same result).

http://systemcentertipps.wordpress.com/2012/08/02/sample-agent-maintenance-mode-2012-mp-8/

We use an environment (SCOM 2012 SP1) with multiple domains in one single management group (no trust between the domains), these are connected with gateway servers to our management group.

For balancing the load, some gatewayservers are connected to the RMS Emulator directly, others to normal Management Servers.

It all works fine if the Gatewayserver is directly connected to the RMS Emulator, but if the Gatewayserver is connected to a "normal" Management Server, the Maintenance Mode Powershell Action runs on the Gatewayserver instead of the Management Server.

Background:

The Script which sets the Server in Maintenance Mode runs ia write action which is targeted on the Management Server.

<WriteAction ID=”WA” TypeID=”Sample.Agent.MaintenanceMode.EventlogEntryTriggersMM.WriteAction” Target=”SC!Microsoft.SystemCenter.ManagementServer”>

The Powershell Script writes a logfile, i can see that when the gateway is connected to a normal management server, that the logfile is created on the gatewayserver instead of the management server, means that the script is running on the wrong server. It's clear that the Snapins are not present on the Gatewayserver and the script fails.

Is there a solution for this problem?

Thomas

how do generate custom alert when the performance value of the iis website connections reaches some value(SCOM)

$
0
0
Currently am working on performance monitors and counters , like if the performance counters gets a value (say 10) i need to raise an alerts saying this value has reached

Baseline monitoring

$
0
0

I'm trying to produse baseline.

I created Unit Monitor-> 2-state Baselining 

With following parameters:

Counter: % Processor Time

Target: Windows Server 2012 Processor

Interval: 1 minute

Business cycle: 1 day

Now, after few days, I can't see any base lines. Under Performance graph it shows "No" in column "Baseline".

1) where I can see base line or any learned data

2) what I did wrong or forgot to do something important?

Error id 11009: monitor network, equal port different MIB monitor.

$
0
0

Hi,

I'm having this error since i started monitoring network devices. Currently i have 14 Network devices (Cisco Switch). I have the SCOM 2012 R2.


I find that to ports from the same device and the same type, have different MIB monitors (i don't know how to call that, is mark in the picture below).

It's possible to reconfigure, to use the same monitors for the ports?

Thank you,

Rui

Web Application Transaction Monitoring - How to edit the script

$
0
0

I have a recorded session that logs into a web service page, pulls up a report and then refreshes the report. The script then checks the text on the page to ensure the report refreshed and the date is correct.

Is there any way to edit the scripting details of the recorded session?  I want to add in code to make sure we are checking for the current date (ie. a variable with the current date to do the content check against).

Basically, I need to know if there is any other way to edit the recording outside of the Web Application Editor dialogue.

How to add multiple T-SQL query's and Powershell scripts monitors to SCOM

$
0
0

Hi

Using Nagios today and creating new monitors is just copy/pasting
I am trying to figure out how to easy add +100 T-SQL query's and Powershell scripts monitors with different parameters to SCOM.

1.
Monitoring with powershell scripts:
Run powershell script as performance monitoring and act on numeric and string data returned.
Simple Nagios example: check_command check_nrpe_powershell!"PS-script"!"servername"!>!100
This runs a powershell script on an nsclient host with 4 arguments. We can then evaluate the returned data.

2.
Monitoring with T-SQL queries:
Executing T-SQL against SQL instances and acting on numeric and string values returned.
Simple Nagios example: check_command check_mssql!T-SQL query!>!30
This runs a stored procedure and checks the value is larger than 30.

Hope someone can halp me out here :-)

Thanks
Rune




Event monitor cannot find PowerShell generated events

$
0
0

I have a basic event monitor that only looks for an event ID and source. The event I am monitoring is generated via Powershell from a remote system rather than being locally created. I'm not sure if that matters, but it sure seems like it.

If I change the event expression in the monitor to look for other events it will generate alerts, it just cant see my PS events. I've tried changing the ID number, the source, using different params, etc... I'm convinced that this is due to the event creation process and PS must be creating the event in a different manner than SCOM is looking for. Maybe its a bug where SCOM just ignores events created by proxy.

I found this: http://www.systemcentercentral.com/monitoring-events-written-from-a-remote-server-with-scom/

But that is for Rules. I still tried adding <AllowProxying>false</AllowProxying> to the XML of the MP...SCOM didn't like it.

Has anyone ran into this before?

We are using SCOM 2012R2 fully updated. 


- Slow is smooth and smooth is fast.

Alerting against a SQL Query

$
0
0

Hi Guys

Just wondering what the best way to monitor data in a SQL DB is. I have a numerical value being written to a SQL DB every five minutes, I would like to use SCOM to alert if that value is ever higher than 30,000. is there a template out there, or does anyone know of a two state script that will do this?

thanks!

Web Application Transaction Monitoring - Download time of the document from the SharePoint site

$
0
0

Hi experts,

    I have the following need - we want to be able to monitor the download time of one particular document from the SharePoint servers across the network. I recorded the browsing session where I login to the web page and either open or save the document to the drive. However I noticed, that when I do this step there is no additional entry showing up in the recorder on the left side of IE. Therefore I checked the Total Request Content Size for all the Instances added to the monitor via Performance View (the document was about 4MB in size) and noticed, that the biggest value recorded is about 220KB, meaning, that this action is not measured in any way. Is there any possibility to make it happen? thanks in advance for any thoughts

Device name missing for windows computer

$
0
0

Hi,

I am following the article http://myitforum.com/myitforumwp/2013/11/08/scom-2012-override-free-space-monitoring-for-page-file-drive/ and at the stage of creating dynamic members for a group, in Windows Computer, I do not see a "device name" field for Windows Computer?

I am on SCOM 2012 R2 UR3. When doing this from the console, it's not the console on the management server (if this matters).

Thans

Need a command executer module that accepts overridable arguments and returns a propertybag besides letting me create files

$
0
0

Hi,

I am trying to

            1. run a vbscript,

            2. which inturn needs to run another vbscript (for this file I need the <Files> tag ),

            3. also it should accept overridable arguments (<Arguments> tag),

            4. and it should return a property bag at the end.

I tried going through commandexecuter modules, but most of them were doing maximum 3 but not all 4. I know there is a solution to this.  But it is not so obvious from my stand now!!

Any suggestion is highly appreciated!.

Thanks

Web Application Availability Monitoring: Availability is greyed out but monitor runs

$
0
0

Hello,

we have Web Application Availability Monitoring defined for several intern applications. The agent which does the monitoring is one of the scom management servers. If I look on the availability report I see that every day 16,6% are grayed out like "monitoring is not available" "monitoring is not active".

What can I check, if there is a problem on monitoring the web applications?

Regards



Generate SCOM event via email?

$
0
0

Hello.

is it possible to send an email to SCOM2012 and generare an event from it?

Regards

Doreen






SCOM 2012 console crashes while creating group with dynamic members

$
0
0

Hello,

I want to create a group at authoring with dynamic members. I choosed "Legacy SNMP Network Device and Device Name Matches Wildcard ro* " - with click on ok the window flutters and the console crashes.

No input at Operations Manager Event Log.

Error at Applikation Event Log: Faulting application name: Microsoft.EnterpriseManagement.Monitoring.Console.exe, version: 7.0.8560.0, time stamp: 0x4f20e97a Faulting module name: clr.dll, version: 4.0.30319.18444, time stamp: 0x52717f9a Exception code: 0xc00000fd Fault offset: 0x0000000000071d28 Faulting process id: 0xfa4 Faulting application start time: 0x01cf86fe13d42c12 Faulting application path: C:\Program Files\System Center 2012\Operations Manager\Console\Microsoft.EnterpriseManagement.Monitoring.Console.exe Faulting module path: C:\Windows\Microsoft.NET\Framework64\v4.0.30319\clr.dll Report Id: 26dd07a2-f2f2-11e3-88c8-0050569552ce

Creating a group with explicit member runs.

Any ideas?

Thanks, Doreen


Monitor process that uses parameters

$
0
0

Hi!

I've been asked to monitor a troublesome process which runs with specific parameters. The executable is named sm.exe, and there are about 20 processes from this file. The one I want to monitor runs with these parameters:

sm -httpPort:13102 -httpsPort:13103 -ssl:1 -sslConnector:1 -ssl_reqClientAuth:2 -trustedsignon:1 -threadsperprocess:50 -JVMOption0:-Xms256m -JVMOption1:-Xmx1024m -JVMOption2:-Xrs -jsgctrigger:16777216

How can I accomplish this in SCOM? It's not possible to specify this in Process monitoring under Authoring.

Best regards
Rune Haugen

VSAE 2012 - Have a problem with using $scriptcontext.createinstance() call in powershell script

$
0
0

Hello,

Any help with the following error message would be greatly appreciated.

I'm getting this error when creating a new $dataobject in my powershell script that I'm using to populate a Dashboard Powershell grid.  For the life of me, I can't figure out what the issue is from the error message which I'm catching in my powershell script - I've included my schema object as well as the powershell call -

========================== 

Please provide the following information to the support engineer if you have to contact Microsoft Help and Support :

Microsoft.EnterpriseManagement.Presentation.DataAccess.DataProviderException: An error occurred executing the command: [Microsoft.EnterpriseManagement.Monitoring.DataProviders!PowershellProvider/ExecutePowershellDataSourceInitialScript] in provider: [Microsoft.EnterpriseManagement.Monitoring.DataProviders.PowershellProvider, Microsoft.EnterpriseManagement.Monitoring.DataProviders, Version=7.0.5000.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35].We are getting an exception:  Exception calling "CreateInstance" with "1" argument(s): "xsd://Paul.MP.Test.Schema/Connections" ---> System.Management.Automation.RuntimeException: We are getting an exception:  Exception calling "CreateInstance" with "1" argument(s): "xsd://Paul.MP.Test.Schema/Connections" ---> System.Management.Automation.RuntimeException: We are getting an exception:  Exception calling "CreateInstance" with "1" argument(s): "xsd://Paul.MP.Test.Schema/Connections"
   --- End of inner exception stack trace ---
   at Microsoft.EnterpriseManagement.Monitoring.DataProviders.RetryCommandExecutionStrategy.Invoke(IDataProviderCommandMethodInvoker invoker)
   at Microsoft.EnterpriseManagement.Presentation.DataAccess.DataProviderCommandMethod.Invoke(CoreDataGateway gateWay, DataCommand command)
   --- End of inner exception stack trace ---
   at Microsoft.EnterpriseManagement.Presentation.DataAccess.DataProviderCommandMethod.Invoke(CoreDataGateway gateWay, DataCommand command)
   at Microsoft.EnterpriseManagement.Presentation.DataAccess.CoreDataGateway.ExecuteScalarInternal[TResult](DataCommand command)
   at Microsoft.EnterpriseManagement.Presentation.DataAccess.CoreDataGateway.<ExecuteScalarAsync>b__2[TResult](<>f__AnonymousType0`1 data)

==================

Schema

<ManagementPackFragment SchemaVersion="2.0" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <TypeDefinitions>
    <SchemaTypes>

      <!-- In this section, you can use standard XSD notation to define your 
           own schema that can be used in ModuleType configuration, DataItem 
           type definitions, and for other uses in Operations Manager. 
           More information can be found in the Management Pack Development Kit: 
           http://msdn.microsoft.com/en-us/library/ee533587.aspx -->
      <SchemaType ID="Paul.MP.Test.Schema" Accessibility="Public">
        <!-- Please customize the schema definition to match your needs. -->
        <xsd:complexType name="Connections" >
          <xsd:sequence>
            <!--xsd:element name="Id" type="xsd:integer"  xmlns:xsd="http://www.w3.org/2001/XMLSchema"/-->
            <xsd:element name="ConnectionName" type="xsd:string"  xmlns:xsd="http://www.w3.org/2001/XMLSchema"/>
          </xsd:sequence>
        </xsd:complexType>
      </SchemaType>
     </SchemaTypes>
  </TypeDefinitions>
</ManagementPackFragment>

======================

Powershell call

     $dataObject=$ScriptContext.CreateInstance("xsd://Paul.MP.Test.Schema/Connections")

Help to create a SCOM Alert for same event ID on many Windows 2008 servers

$
0
0

Hi all,
I 'm a newbie in SCOM and I need to create a alert with information type on 1 event ID on 2 servers. The Event ID is the same on both servers and I don't know which type of monitor I need to create. Can you help me please ?

Thanks a lot.

Creation time for a rule in SCOM 2007 R2

$
0
0

Hi all,

is there any way to determine when a rule was created?

Thanks,

Viewing all 2225 articles
Browse latest View live


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