question

JanPastyk-6752 avatar image
0 Votes"
JanPastyk-6752 asked JanPastyk-6752 commented

Power Shell Discovery Rule runs too often

Hello,

I would like to ask community if someone had same problem as me. In our environment we have used Kevin Holman´s fragment (VSAE) easy power shell discovery which is using CSV to create groups in authoring menu. Script is working fine, but even if "IntervalSeconds" is set as 85423 and no override is applied. Discovery starts each 5 - 8 minutes. Which is strange.

I would like to fix this in case to save resources....

Does anybody has clue what could be the problem?

thank you
Jan

107408-image.png


msc-operations-manager
image.png (71.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

CyrAz avatar image
0 Votes"
CyrAz answered JanPastyk-6752 commented

Just realized I didn't ask the most obvious question : there aren't any overrides on that discovery, are they?

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

No, I just tested to increase or decrease time interval value. But it do nothing with execution time of discovery
.

0 Votes 0 ·
CyrAz avatar image
0 Votes"
CyrAz answered CyrAz commented

OK so the discovery targets the All Management Servers Resource Pool.
Do you see it running every time on the same Management server, or a different one?

· 7
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

It was on same Management server. I checked the run interval in Windows Event Log.

0 Votes 0 ·

Do you see other events that could indicate that something is wrong with the resource pool?

0 Votes 0 ·

My idea here would be that the Resource Pool somehow "crashes" or "fails over" or "restarts" or "comes back online" or something like that, which would in turn trigger every rule/discovery that are targetting it.

0 Votes 0 ·
Show more comments

I do not think. Other events are running just fine.

0 Votes 0 ·
Show more comments
JanPastyk-6752 avatar image
0 Votes"
JanPastyk-6752 answered JanPastyk-6752 commented

Ok sorry, maybe this would be better formated Code:107538-fragmentcodeformat.xml



· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

It really might be unseful to see the full <Discovery> block as well as the full <DatasourceModuleType> block (if you use a custom one), if you can share them

0 Votes 0 ·

Sorry but I don´t understand? The XML is whole code whis is used by MP. Same code is used in Object Discoveries.
- if I can share more code would you guid me where to find it in SCOM?



0 Votes 0 ·

You need to export the Management Pack where that discovery is defined and open it with any text editor , you'll find tons of xml in there.
I'm interested in seeing the <Discovery> block for that discovery, and if the Datasource in that discovery is a custom one defined in the same MP I'm insterested as well.

0 Votes 0 ·
Show more comments
JanPastyk-6752 avatar image
0 Votes"
JanPastyk-6752 answered

fragmentcode.xml (7.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

CyrAz avatar image
0 Votes"
CyrAz answered CyrAz edited

Could you also show us the rest of the discovery's xml code?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.