Script runs a few times and stops running without errors

Hello.
I'm developing a management pack from VSAE to monitor RLM license services. I have been able to successfully discover the classes I have created.
I'm trying to write a script performance collection rule to measure the available licenses of every instance of RLM_License class. This is what the Data Source looks like:
<?xml version="1.0" encoding="utf-8"?>
<Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:noNamespaceSchemaLocation="C:\Users\jnegroadmin\AppData\Local\Temp\tmp5445.tmp">
<IntervalSeconds>60</IntervalSeconds>
<SyncTime />
<ScriptName>RulesPerformanceRLMLicenseAvailable.vbs</ScriptName>
<Arguments>"$Target/Host/Host/Property[Type='UTAD.RLM.RLMService']/UtilPath$" "$Target/Host/Property[Type='UTAD.RLM.RLMLicenseFile']/FilePath$" "$Target/Property[Type='UTAD.RLM.RLMLicense']/ProductName$"</Arguments>
<ScriptBody>$IncludeFileContent/Health Model/RulesPerformanceRLMLicenseAvailable.vbs$</ScriptBody>
<TimeoutSeconds>20</TimeoutSeconds>
<ObjectName>RLM License</ObjectName>
<CounterName>Available Licenses</CounterName>
<InstanceName>$Target/Property[Type="UTAD.RLM.RLMLicense"]/ProductName$</InstanceName>
<Value>$Data/Property[@Name='Value']$</Value>
</Configuration>
and this is the script:
Set oAPI = CreateObject("MOM.ScriptAPI")
'Call oAPI.LogScriptEvent(WScript.ScriptName,951,0,"Script was launched successfully")
sUtilPath = WScript.Arguments(0)
sFilePath = WScript.Arguments(1)
sProduct = WScript.Arguments(2)
Call oAPI.LogScriptEvent(WScript.ScriptName,951,0,sUtilPath + " " + sFilePath + " " + sProduct)
dim array,count
sCommandPath = sUtilPath & " rlmstat -c """ & sFilePath & """ -avail -p " & sProduct
Set objShell = wscript.createobject("wscript.shell")
Set oExec = objShell.Exec(sCommandPath)
count = -1
Do
line = OExec.StdOut.ReadLine()
if InStr(1, line, "available") > 0 then
array = Split(line,":")
count = Mid(array(1),2)
End If
Loop While Not OExec.Stdout.atEndOfStream
'Call oAPI.LogScriptEvent(WScript.ScriptName,951,0,count)
Set oBag = oAPI.CreatePropertyBag()
Call oBag.AddValue("Value",count)
oAPI.Return(oBag)
The rule runs a few times on the server, I see the data on the Prrformance Window, and the event logs. But then, I stop receiving event logs and data on the performance rule. I only see event logs for New Configuration and credentials loading.
I don't know what I'm doing wrong. Other rules from Microsoft MPs are running correctly and gathering data on that server.

Please refer to the below blog for the best practice when we create MP manually.
http://blogs.technet.com/b/antoni/archive/2013/10/09/system-center-service-manager-operations-manager-management-pack-and-naming-convention-best-practices.aspx
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.

Similar Messages

  • IPhoto won't start... Icon bounces a few times and stops

    Hey Guys,
    I'm using iPhoto now for a long time, but a few weeks ago it simply stopped working... My iPhoto Version: 9.5.1 on Mavericks 10.9.1
    When I double-click the icon it bounces a few times and then disappears again. I tried already many different solutions like repairing disk permissions or deleting the plist-files, rebuilding the iPhoto library doesn't work because the app won't start...
    Can anybody help me?
    Thank you already now for helping me
    Macbook Pro Late 2011
    Mac OS X 10.9.1 Mavericks

    I found the solution by myself after long time using google...
    Mac Console said the following:
    "Dyld Error Message:
      Library not loaded: /Library/Frameworks/NyxAudioAnalysis.framework/Versions/A/NyxAudioAnalysis
      Referenced from: /Applications/iPhoto.app/Contents/Frameworks/iLifeSlideshow.framework/Versions/ A/iLifeSlideshow
      Reason: image not found"
    Here I found the solution for all who need it:
    http://www.sanebutdifferent.com/iphoto-11-nyxaudioanalysis-crash-error
    Simply downloading a new NyxAudioAnalysis.framework and replacing/copying it to the location shown by Console solved everything!
    Good Luck!

  • I have Photoshop CS5 Extended and it says updates available but when i download the updates it says updates failed please try again later, i have tried a few times and get the same message any help would be great i am running 64bit on windows 8

    I have Photoshop CS5 Extended and it says updates available but when i download the updates it says updates failed please try again later, i have tried a few times and get the same message any help would be great i am running 64bit on windows 8.

    I am running Windows 7 64 bit ultimate and have the same problem.  My hard drive crashed, installed a new one and then reinstalled CS5 extended.  Installation went fine, but can no longer open my camera RAW files from Photoshop (camera is a Canon EOS T2i.  The message also tells me I am not eligible for the update.  I am... and I cannot open my files and I could before.  I can find nowhere to contact Adobe to tell me how to proceed.  My daughter is all a registered user of the same product and she had no problems upgrading... we purchased ours each at the same time. I do know the difference is that I had to reinstall and she did not.  If that means anything.

  • My Lightroom stopped working at all. I unistalled the app and installled back a few times and it still won't open.

    My Lightroom stopped working at all. I unistalled the app and installled back a few times and it still won't open.

    Are there any error messages? Mac or PC?

  • When I click on Creative Cloud logo, indicator for time passing goes for a few seconds and stops, but app not opening (it used to).  Any ideas?

    I've never used this feature to ask a question.  Pardon not knowing etiquette and such.  When I click on Creative Cloud logo/icon on my desktop, the indicator for time passing goes for a few seconds and stops, but CC app not opening. 
    CC app used to work on this same computer a few months ago.  No changes to operating system.  Photoshop is still working.  Just wanted to download Lightroom and perhaps begin learning it, but to no avail.
    Tried to look for a way to reinstall Adobe CC, but it says I already have it.
    Any ideas?
    Thank you in advance,
    Timothy

    Link for Download & Install & Setup & Activation problems may help
    -Online Chat http://www.adobe.com/support/download-install/supportinfo/

  • When Creative Cloud updated a few days ago (Win7) it reported no installed apps. In Lightroom I keep getting messages that a new version is available. Installed it from CC and it installed without error, CC shows I installed it, but it simply fails to run

    When Creative Cloud updated a few days ago (Win7) it reported I had no installed apps.
    In Lightroom I keep getting messages that a new version is available. Installed it from CC and it installed without error, CC shows I installed it, but it simply fails to run.
    How do I get CC to find apps installed under the previous version?
    And how do I get Lightroom CC to run?
    Peter

    I still don't know how to get CC to find that I have Photoshop CC installed, but running Creative Cloud, going to Preferences and signing out, then signing in again got Lightroom CC to work.
    Since Photoshop CC is still working despite apparently not being installed things are now OK, at least for the moment. But I'm not feeling at all happy with Adobe.

  • My Powerbook boots up every few times and the hardware test still gives me -9972 error

    René O&#39;Deay wrote:
    My Powerbook G4 15" aluminum 1.67Ghz 10.3.9 Panther won't start up.
    (I did a backup on an external drive not long before it failed)
    have gotten lost in my research on apple forums and knowledge base.
    From the original install discs:
    The Hardware test gives the error.
    "2STF/8/3 ATA-100 ata-6-Master (-9972)"
    The Disc utility does see my harddrive but fails to repair with the messge:
    1 volume cannot be repaired,
    'Invalid  node Structure'
    Disk 'no valid packets (-9997)'
    I do have a useless partition from TechTool 4 and had successfully run the programs just before Powerbook failed.
    aid everything was ok, with no warnings.
    found somewhere a link to a hardware test code list, that said 9972 could be the cable (ribbon?) to the drive needed to be reset, replaced, or the harddrive replaced.
    our local New Orleans 'official' Apple Tech guy calimed it was the harddrive and not worth replacing.  he whined that it would take hours, tho the guys on ifixit claimed only half an hour.
    i have since got a refurb MacBook (even older it turns out) with Tiger, but I miss my 15 incher Powerbook. (on very tight budget)
    the battery got zapped by lightning last year and have struggled with it ever since. it won't fully recharge.
    Right now have got it on the AC without the battery to try to charge the backup battery.
    I have managed to restore it several times after crashing, inspite of my tech guy claiming otherwise. but have never really opened it up besides just looking at the memory slots. just one filled with 512 card.
    so any advice, or suggestions.
    I've been messing with my Power book for like 10 hours and finally finished replacing the hard drive. (just installing the software and all the updates took almost 2 hours by itself) Now it boots up every few times and the hardware test still gives me -9972 error.
    <Re-Titled By Host>

    My friend. Do not despair.
    Firstly, you have a backup. Kudos.
    Secondly, i suspect the hard drive in the machine is more than just a few years old. Hard drives die. I suspect the hard drive is the issue, not the cable.
    Thirdly, it is worth changing the hard drive and take the ifixit advice. Simple to change. If it will be your first time changing the hard drive, just be organized and follow the steps carefully.
    Now, before we decided it is the hard drive we need to confirm this.
    I would check if SMART reports favorable conditions for the drive. Disk utility can tell you.
    If good then I would zero out the drive. This allows the drive to excercise every sector and will build confidence of a well prepared drive going forward.
    You can then restore from backup.
    The other option is to replace the internal HD with a new one, perhaps with more storage.
    As an FYI, I replaced the drive on my powerbook G3 and it's faster, quite , has more storage and gives me some peace of mind. Worth the money. The little guy runs beautifully. 
    Sent from my iPhone

  • This just came up : Failed to start MSVCR80.dll was not found. I tried re-installing it a few times and same thing.

    This just came up : Failed to start MSVCR80.dll was not found. I tried re-installing it a few times and same thing.

     
    Click here and follow the instructions. You may need to completely remove and reinstall iTunes and all related components, or run the process multiple times; this won't normally affect its library, but that should be backed up anyway.
    (99601)

  • Songs purchased from store only play back a few seconds and stop  any ideas?

    purchased from store only play back a few seconds and stop      any ideas?

    I think I might have found an answer - importing a folder and or Limewire!
    Either Limewire mess's with the files, folder or your system or iTunes attempts to stop illegally downloaded files being played. iTunes might also do it if importing a lot of files in one go.
    I imported a music folder that isn't mine from our home network drive that has a few tracks in it downloaded through Limewire. I re checked some of the files in Ableton Live and they are actually damaged! So I tried importing one of the Limewire tunes again individually after finding some info online (links to the pages at bottom) and the track plays no prob now. I also un-checked the "look for shared folders" in iTunes preferences.
    For about 2 years now I haven't been able to import more than 3 files at a time which is why I imported a whole folder (about 50 tracks) just after the software update and C.D importing.
    My concern is that importing a whole folder even without any Limewire downloads in it might well be treated this way by iTunes. Most of the tracks in our network drive folder that have been downloaded through Limewire are legit direct connect transfers from producer to producer or legit submitted tracks!
    Hope this helps.
    http://www.tuaw.com/2007/03/14/limewire-reportedly-unhappy-with-itunes-7-1/2#com ments
    http://www.crunchgear.com/2007/03/15/limewire-will-make-a-mess-of-your-itunes/
    Reqs

  • My ipod touch (generation 4) is not recognized by itunes. I've each time to reinstall itunes, it works few days and suddenly not without reason-only was is reinstallation-reset of ipod doesn't change something.does someone can help me please?

    my ipod touch (generation 4) is not recognized by itunes. I've each time to reinstall itunes, it works few days and suddenly not without reason-only was is reinstallation-reset of ipod doesn't change something.does someone can help me please?

    Wow the customer service is even worse. Does Apple want me to go around jailbreaking my iPod now so I can use something that actually recognizes my product?

  • If I have manually set "Start Time" and "Stop Time" for songs, and my hard drive is backed up in Time Machine, when files/songs are transferred on new hard drive, will my "Start Time" "Stop Time" options be there?

    My Macbook Pro will be going in for reimaging and my hard drive will be wiped, I want to know if all my iTunes preferences will be copied if I have backed them up on Time Machine. Specifically, if I have set certain "Start Time" and "Stop Time" for my songs, and I copy my iTunes library, will these "Start Time" and "Stop Time" options remain or will I have to manually set them one by one once again? I need a reply ASAP! Thanks so much!

    As far as I'm aware the start & stop times are stored in the library database, not the media files. If you backup/restore/transfer the whole library then the settings are included. If you create a complete copy of your iTunes folder on another drive you can connect to that copy by holding down option/alt as you start iTunes so you can check that everything is working properly before you send the Macbook away.
    tt2

  • On my iPhone 4S, my headphones are not plugged in and yet I still have no sound out of the phone receiver. I've reset the phone a few times and still the same thing. HELP?

    On my iPhone 4S, my headphones are not plugged in and yet I still have  no sound from the phone receiver. I have reset my phone a few times and it still tells me when I push the volume buttons that it is my headphone volume. I have even tried turning off my  Bluetooth setting and it still tells me that my headphones are where the volumes is. AHHHH!!!! I can not talk on my phone unless I use my blue tooth. Nothing is coming out of the receiver of the phone. HELP !!!!

    Hi LittleBuffalo!
    I have an article here that describes your issue and can provide you with some more troubleshooting steps:
    iPhone: Can't hear through the receiver or speakers
    http://support.apple.com/kb/TS1630
    Thanks for coming to the Apple Support Communities!
    Regards,
    Braden

  • My mac keeps freezing, i checked my ram fine, checked if SMART was verified it was, i reinstalled my software a few times and my RAM is 8gb used memory clean to make sure it wasnt a RAM probkem and my macbook is still freezing my RAM is 8gb i have

    My mac keeps freezing, i checked my ram fine, checked if SMART was verified it was, i reinstalled my software a few times and my RAM is 8gb used memory clean to make sure it wasnt a RAM probkem and my macbook is still freezing my RAM is 8gb i have 4.50/4.80 gb left and Mid -2012 model Macbook Pro what could be the problem also it started freezong when i upgraded to Yosemite and now my mac freezes once im logged into and sometimes has problem booting up either freezing or agent secuity error black screen??!!!!

    My mac keeps freezing, i checked my ram fine, checked if SMART was verified it was, i reinstalled my software a few times and my RAM is 8gb used memory clean to make sure it wasnt a RAM probkem and my macbook is still freezing my RAM is 8gb i have 4.50/4.80 gb left and Mid -2012 model Macbook Pro what could be the problem also it started freezong when i upgraded to Yosemite and now my mac freezes once im logged into and sometimes has problem booting up either freezing or agent secuity error black screen??!!!!

  • I bought the Tiger woods 12 game for my ipad and also paid the 19.99 for the $2M. It has crashed my ipad a few times and when it restarted last time, it had no history of my progress or the $2M. How do I get my history back

    I bought the Tiger woods 12 game for my ipad and also paid the 19.99 for the $2M. It has crashed my ipad a few times and when it restarted last time, it had no history of my progress or the $2M. How do I get my history back or my money back for the game and the in-game expenses?

    The only one that can issue a PUK code is a carrier, which you've already made clear you don't have.
    If itunes does not recognise your ipad that may be another issue. What version OS is on your computer and what steps did you follow to uninstall itunes and then reiinstall itunes on your computer?
    And, do you at least see the sidebar on the left hand side of itunes?
    iPad not appearing in iTunes
    http://www.apple.com/support/ipad/assistant/itunes/
    Do you have another computer you can try?

  • When downloaded adobe bridge on trial and select english ,when installed it comes up in Chinese language, i have uninstalled and installed a few times and this still happens ?

    when downloaded adobe bridge on trial and select english ,when installed it comes up in Chinese language, i have uninstalled and installed a few times and this still happens ?

    Unusual to be getting a DEP in those circumstances. (Still, I haven't been around all that much in recent times. So the world may have changed.)
    What seems most likely is that we've got an iTunes preference file gone bad in some way. So I'd try the "Remove iTunes preferences files" section in the "User-specific troubleshooting" section from the following document. (Note you'll have to make sure that "Show hidden files and folders" is set on the PC in order to find the pref files.)
    iTunes for Windows XP: Troubleshooting unexpected quits, freezes, or launch issues

Maybe you are looking for

  • HP ENVY 4500 - Scan to Computer: Partial scan, How to disable it?

    Hi,    I have an HP ENVY 4500, setup on wireless with a few computers runing on Windows 7. The printer has no issues; However if I scan a document using the "Scan to Computer" feature, it will not capture the whole document in one *.JPEG file, but wi

  • Error involving rankmirrors command

    Hello, I am new to Archlinux, and I have been reading off of your wiki to install. This is my 3rd time reinstalling and I always get to the same problem. I have made it to this part and  have done everything on this, including editing the mirrorlist.

  • College Student Deals

    My student email was accepted but I have not received my coupons days after it was entered. What can I do to get the coupons? 

  • Captivate 4 does not show imported PPT animated slide in Branching View

    Hi Captivate Users & Gurus, I've imported an animated PowerPoint slide into a Captivate 4 project. There are 9 slides altogether in the project and the imported slide is number 3. My issue is that once the project plays (in Preview) it only goes from

  • JSFL or SWF Panels and the ActionScript Editor

    Howdy, I'm hoping to be able to write JSFL commands or make swf panels for the Flash IDE that will work with the ActionScript Editor. Mind you, not the ActionScipt panel that is open with a .fla, but with the Flash text Editor that edits .as files di