DX Infrastructure Manager

Expand all | Collapse all

Reboot Servers in sequence and check the respective URLs.

Jump to Best Answer
  • 1.  Reboot Servers in sequence and check the respective URLs.

    Posted 07-01-2017 11:01 AM

     

    Hi All,

     

    I have a requirement.

     

    I have to reboot three servers, say. x, y and z and have to check URL say, a, b and c.

     

    Requirement is.

    Reboot server 'x' ;

    Check URL 'a' after the reboot for availability; 

    If (URL 'a' is available). go to step 2

    Else

    Generate an Alarm. Stop the reboot sequence here

     

    Step 2

    Reboot server 'y'

    Check URL 'b' after the reboot for availability; 

    If (URL 'b' is available). go to step 3.

    Else

    Generate an Alarm. Stop the reboot sequence here

     

    Step3

    Reboot server 'z'

    Check URL 'c' after the reboot for availability; 

    If (URL 'c' is available). End with an alarm as successful.

    Else Generate an Alarm.

     

    End.

     

    Hope to find a solution to this. All option are welcome.

     

     

    Thank You!



  • 2.  Re: Reboot Servers in sequence and check the respective URLs.

    Posted 07-02-2017 07:43 PM

    Hi,

     

    When you say reboot the server, do you mean reboot the Nimsoft Agent or reboot the Physical Machine/VM ? (No just to be sure).

     

     

    That's seem like a challenge (but i like challenge). That's my proposition : 

     

    - Create a logmon profile to execute a script (to reboot the server) when a log file is updated

    - Update this text file with a callback.

    - Check for http (with timeout threshold defined) => Else create an alarm! 

     

    Step back to 1 for a new robot.

     

    A another solution is to install a kind of probe capable to send instructions to the system (but constraint are different).

     

    Anyway, what you want to do sound very dangerous for many reason  

     

    Best Regards,

    Thomas



  • 3.  Re: Reboot Servers in sequence and check the respective URLs.

    Posted 07-03-2017 06:54 AM

    Hey Thomas,

     

    These are VM reboots we are speaking about.

    Can I capture the first reboot alert and execute a script using nas probe? Is this possible?

     

    Regards,

    Saju Mathew



  • 4.  Re: Reboot Servers in sequence and check the respective URLs.

    Posted 07-03-2017 11:34 AM

    Hi,

     

    Depending on what you want to do with lua NAS Scripting.But dont forget : If you keep alive a lua script in NAS, alarm processing is stopped (so the NAS stop his work).

     

    Best Regards,

    Thomas



  • 5.  Re: Reboot Servers in sequence and check the respective URLs.

    Posted 07-03-2017 11:57 AM

    Oh!! Yeah I missed that. That is an issue then.

     

    We have powershell script as well for that. I was wondering If I can do the sequence with help of Nimsoft. So, had this query.

     

     

    Regards,

    Saju Mathew



  • 6.  Re: Reboot Servers in sequence and check the respective URLs.
    Best Answer

    Posted 07-03-2017 12:19 PM

    Hi,

     

    Personally i dont like bash or powershell (that's such a pain to parse stdout for every requests etc..). I have build my own Probe Utility interface with NodeJS (with auto-parsing of stdout). 

     

    GitHub - UIM-Community/NodeUIM: CA UIM Probe Utility asynchronous binding 

     

    const nodeuim = require('nodeuim');

    setImmediate( async function() {

        const PDS = await nodeuim.Request({
            callback: 'gethubs',
            timeout: 1500,
        });
       
        PDS.get('hubslist').forEach( ({name: hubName}) => {
            console.log(`Hubname => ${hubName}`);
        });

    });

     

    Best Regards,

    Thomas



  • 7.  Re: Reboot Servers in sequence and check the respective URLs.

    Posted 07-25-2017 11:38 PM

    Hi Saju,

     

    Did you succeed to answer the need ?

     

    Best Regards,

    Thomas



  • 8.  Re: Reboot Servers in sequence and check the respective URLs.

    Posted 08-11-2017 08:28 AM

    Hi Thomas,

     

    Thank You for the input and help. We came up with a Powershell script to do the same.

     

    Reagrds,

    Saju Mathew