Workflow and ServiceDesk Community

 View Only
Expand all | Collapse all

Check disk space and look for process execution on Windows server in the domain

  • 1.  Check disk space and look for process execution on Windows server in the domain

    Posted May 24, 2012 06:22 AM

    Hello,

    I need to check free disk space and to look for a process execution on a production Windows server. Quite easy using "File System Full" and "Is Process Running" on my current WF server but how to target another WS in the domain.

    I don't see any possibility to address any external server 



  • 2.  RE: Check disk space and look for process execution on Windows server in the domain

    Posted May 24, 2012 09:06 AM

    If you are managing your computers with a Notification Server, then you would have to check the reports to get your information. (Reports can be called from the ASDK)

    Other possibility with a Notification Server would be to create custom inventory which will fill up dataclasses and you will just have to query the dataclasses to get the information or post your generated XML to a specific URL which would be on the Workflow Server.

    With only the Workflow, there is a possibility to run some scripts)

    The best options are the first ones, I wouldn't recommend the third option as for security reasons this would be a bit risky if you're not used to develop scripts with security embedded.

    Regards,

    Nonos

     



  • 3.  RE: Check disk space and look for process execution on Windows server in the domain

    Posted May 24, 2012 10:23 AM

    Thanks for this answer but we don't have and as far as I know we don't plan to acquire Notification Server solution.

    The solution consequently should entirely based upon Workflow components (your third option).

    Could you develop a little bit more this third point: do you mean some "Execute batch" invoking DOS commands ?

    Thansd in advance fot your response



  • 4.  RE: Check disk space and look for process execution on Windows server in the domain

    Posted May 30, 2012 10:30 AM

    I'm curious about this myself. I thought you could deploy monitoring projects as a windows service but I'm not really sure how that works.



  • 5.  RE: Check disk space and look for process execution on Windows server in the domain

    Posted May 30, 2012 10:45 AM

    Deploying monitoring projects as Windows services is just a publishing option under the Project properties.



  • 6.  RE: Check disk space and look for process execution on Windows server in the domain

    Posted May 30, 2012 10:46 AM

    You could try using the Start Process comp in the SystemUtilities library (not loaded by default). This lets you execute DOS on remote machines.



  • 7.  RE: Check disk space and look for process execution on Windows server in the domain

    Posted May 30, 2012 07:29 PM

    It's a bit more complicated than that. When you select Windows Service as the type you cannot directly publish it to the server. Instead you have to create an instalation .EXE and then run that on the server. After it "installs" (it really is just writing a folder in the Deploy folder but not creating the IIS virtual directory)  you have to navigate to the folder and then into the BIN direcotory and double click the Install.BAT file, this will actually compile the app and create the service.

     

    In the previous version, this was done automatically when you ran the .EXE. Now it says it installs and completes, but it really does not. I'm hoping this will get fixed in the next release, I have 30 or 40 WF running as Windows Services.

     

    Rob



  • 8.  RE: Check disk space and look for process execution on Windows server in the domain

    Posted May 31, 2012 06:55 AM

    Regarding the component "IsProcessRunning" (from "System Utilities" library, thanks Reecardo), you have a tab "Remote Connect", this will give you the information you require regarding the process on the distant server.

    Regarding the disk free space, you could use a WMI query to get this information, there is a component from "Scripting" Library which allow you to add some C#, VB.NET or Jscript code, I am still working on this option as you would have to run workflow with specific rights to be able to get the information from distant server.

     

    I wasn't thinking about executing batch cause this means you have to put something on the distant server which could be problematic regarding security teams)

    Regarding the montoring projects, I am not quite sure of the use of it in this case.

     

    Regards,

     

    Cédric DUBIE

     

     



  • 9.  RE: Check disk space and look for process execution on Windows server in the domain
    Best Answer

    Posted Jun 14, 2012 09:58 AM

    Hi Cedric,

    IsProcessRunning was indeed the solution. On a similar way I used GetComputerInfo with RemoteHost info

    for checkng disk space availability

    Thanks for your help 



  • 10.  RE: Check disk space and look for process execution on Windows server in the domain

    Posted Jun 14, 2012 11:05 AM

    Hi,

     

    My pleasure, happy you could manage to get it to work your way)

     

    Regards,

     

    Cédric DUBIE