Jump to content

Cptrico

Members
  • Posts

    83
  • Joined

  • Last visited

Posts posted by Cptrico

  1. Hi Tony,

    thanks for using ( trying ) the plugin.
    So I am assuming that you can run powershell scripts on your server / client without any issues just fails using POTS right ?
    And have you tried to have a look in the trace files with plugin diagnostics enabled in Pulseway manager. ( settings -> Diagnostics ) click the include Diagnostic logging for plugins.

    //Johnni

  2. Hi Alan,

    Thanks for using POTS.
    1. If the script your running should check if the resource exists already, I am not sure why it should run twice through because of that in POTS. I would need to understand how the script looks to figure out why it would run twice.
    2. I don't know if there could be a compability issue showing the commandInput button in the new Web version. Also havd you made sure that the browsers you use when running web have been aproved in the Pulsway manager to run commands on the mentioned server ? only relevandt if you have limited the access to only some devices.

     

    /Johnni

  3. Hi Paul,

    yeah I thought so ;) making good stuff as usual. Making PowerOfTheShell obsolete with this native support for scripts and automation and more. I welcome it a lot, very nicely implemented and works great. Can't wait to play with it some more. Though I might still have some things I want to do to POTS just to make it a little better, I haven't abonded the idea completely.

    /Johnni

  4. Hi Mario,

     

    Thanks for using the plugin. 

     

    The code is build to any CPU, which means it will work on 32 and 64 bit machines. 

    I am running pulseway agent 4.7.6 and POTS 1.5 to test on my windows 8.1 laptop.. 

     

    I ask through POTS if I am running 64 bit or not..

    [Environment]::Is64BitProcess
     
    And I get true back.I don't have the exchange mgmt pack on my machine so I can test.. 
     
    Take a look at the script pack, I know Paul (digby) have a lot of exchange examples to try, he uses WMI if I recall correctly..
  5. Hi Jendrik,

     

    Thanks for trying the plugin, as Digbyp mentiones it dosn't require nor is it possible to specify which version to run with. By default it depends on which version of powershell you have version 2 is backwards compatible with 1 and version 3 is compatible with both 2 & 1. So as long as you have either version 2 or 3 it shoudln't be an issue.

     

    Cheers

     

    /cptrico

  6. Yes, it does when running it in powershell! I thought that it had something to do with user permissions, but I don't know what I should fill in the user and password fields. I am using an outlook online account as my Windows User account. This account also has 2-step verification enabled. I tried some setups (using/emitting @outlook.com, trying my main password) but it doesn't seem to work. Should I create an app-specific password?

    Hi Again, that is actually not something I have come across before using this kind of user. I would just expect if the user were capable of executing the PowerShell script it would be fine to impersonate as this user in POTS. You could try just to test the script and create a local user, try it out first in PowerShell and then add it to POTS if it works after we know it is user related and there is a need for a workaround or requirement for a dedicated user for impersonation.

     

     

    Cheers

    /Cptrico

  7. Hi KreAch3R

    Glad you find the plugin useful. :)

    I am not familiar with 12 noon and the parameters but I will try it out for size and let you know my findings. One thing maybe. The script runs fine when you execute it from your own user in powershell right ? Have you looked if you have set the right impersonation settings in POTS maybe.

    /cptrico

  8. Hi BadCoder.

    I am glad that you find the plugin useful.

    A couple of things I think of. I guess you use the elevate setting and have your domain credentials in there? Or do you add username / password in the script it self ?

    Also does the script work as it is outside of PCM and POTS.

    /cptrico

  9. Hi Digby,

     

    The plugin looks cool and i'm eager to try it on for myself. But unfortunately I am not having much success with it.

     

    I have latest version of PC Monitor agent 4.1.2 running on my Windows 8.1 machine. I currently only have your plugin loaded to make sure nothing else is causing an issue but I get this error in the trace log, do you have an idea of what it could be ? 

    08-01-2014, 21:01:27.572: [Service] System.NullReferenceException: Object reference not set to an instance of an object.
       at PaulDigby.MobilePCMonitorConfigurator.MobilePCMonitorConfiguratorPlugin.GetPluginData(Boolean paged)
       at PaulDigby.MobilePCMonitorConfigurator.MobilePCMonitorConfiguratorPlugin.GetPageDetails(Int32 pageId)
       at .(Object )
    
    
    
  10. Hi There,

     

    Hope I can help you out. I have tested your XML and it Works fine so that is not the problem.

     

    I would rather think it's a problem with rights. You mentione you copy the files to a subfolder of PCM.

     

    I tried the same and that also worked. I placed the three files here.C:\Program Files\PC Monitor\Plugins\POTS

     

    PCMonitorClient.dll

    PowerOfTheShell.dll

    config.XML

     

    added the plugin using PowerOfTheShell.dll and it worked. Have you changed the user that PCM runs as ? it should by default have access to read into that folder. Also you must be sure the file is called config.xml otherwise it will not be loaded.

     

    Hope it helps.

     

  11. Hi,

     

    Maybe a plugin could also be an idea here. SNMP and also WMI for that matter is demanding slow services, maybe it shouldn't run in the same context as the PC Monitor Agent.

     

    A scenario could be a plugin that connects to an snmp/wmi service on the same server or other server using e.g. WCF and executes the snmp OID and returns with the result to the plugin.

     

    In that way you could have a central server doing snmp monitoring returning results to your pc monitor agents of your choice. :)

     

    Creating this kind of plugin will not be a trivial task, especially if we are talking SNMP V2 and V3 also.

     

    But just an idea.

  12. Hi all,

     

    I am going to work on PowerOfTheShell plugin again, hope work will not come between me and the fun of writing this :)

     

    I have some ideas for this plugin I want to test and share with the rest of you, so stay tuned in the near future.(no spoilers) 

     

    But also I want to ask you if you have any thing that you think is missing or should be improved.

     

    Looking forward for your input. :)

     

    Cheers.

  13. Hi spcurtis81,

    Thanks for trying the plugin :)

    the config.xml will be read from the plugin folder, if you place it in where the pcMonitorClient.dll and PowerOfTheShell.dll is then you should be good to go.

    If it still says trouble in the parser, then maybe enable diagnostics in Pc Monitor manager under Settings - Diagnostics and remember to include diagnostics logging for plugins.

    After that you can try again and find the trace.log located in the Pc Monitor client installation folder, and see what the error is.

    Don't hesitate to ask again. :)

    ,

  14. Hi Paul,

    Thanks for your positive words :)

    What I can tell you about Couchbase is only positive, but maybe there are other good NoSQL solutions out there( I assume there is ).

    I found this very good blog that explains a little bit more about the two merged technologies http://horicky.blogs...chitecture.html

    My company implemented CouchBase with a memcached bucket and we use it to cache our XML API requests along with our search queries.

    It just works and are very stable.

    What I love about couchbase is that their REST API is so easy to work with(almost as much as PCM :) ) but also the service itself is just so well made.

    You install and configure it easily, and in matter of few minutes you are up and running with a clustered solution that supports failover and rebalancing services.

    And you can view the cluster, bucket, node status / performance and more from a nice GUI.

    So if you need to make some software where you before thought about key value stores, dictionary, hash maps, you could consider implementing it using couchbase and build it around their API.

    The plugin here is useful if you have couchbase server installed and want to test the bucket(s) and make sure it runs all the time.

    Also, I made the plugin to show my company how fairly easy it is to create a plugin for PCM, that calls some of our key components in our infrastructure.

    The liked it, so assuming they will ask me to create more plugins like this in the future. :)

    Cheers, have a nice day.

  15. This is my second plugin for PCM

    Recently I had the opportunity to work with couchbase and memcached services. For those of you not knowing what it is, it’s a key value store or maybe more known as a NoSQL.

    So I thought that it would be helpfull to have a tool that could test and monitor the service I was setting up. So now i want to share this with you, hoping it can be useful to others that are working with couchbase.

    More information about Couchbase here: http://www.couchbase.com/

    Main features are:

    • Test store, retrieve, touch and remove operations.
    • Support both couchbase and memcached buckets.
    • Test with predefined key and value, or use input control.
    • Run monitoring on the bucket, sending a notification if any error is detected while reading/writing to it.
    • Set monitoring to start during plugin startup.
    • Allow the flushAll command, option to require password to run the command can be enabled.
    • All config changes are applied instantly, no restart required.

    Click here to download version 1.0

    Let me know what you think :)

    post-20-0-98428700-1349808485_thumb.pngpost-20-0-31413700-1349808546_thumb.pngpost-20-0-76885600-1349808572_thumb.pngpost-20-0-89429000-1349808593_thumb.pngpost-20-0-93375700-1349808629_thumb.pngpost-20-0-98766500-1349809724_thumb.png

×
×
  • Create New...