DX Unified Infrastructure Management

  • 1.  Controller Call back utility

    Posted Jan 31, 2018 09:54 AM

    Hi,

     

    I am writing a small API which is used to retrieve list of services being monitored via ntservices probe

     

    http://UMPHOST/rest/probe/Domain/Hub/Robot/controller/callback/probe_config_get

    POST Method

     

    {
        "timeout":"5000",
        "parameters":{
            "name":"detail",
            "type":"int",
            "value":"1"
        }
    }

     

     

    but am getting this error

    Received status (1) on response (for sendRcv) for cmd = 'probe_config_get'

     

    Please help me to fix this, also let me know the possibilities of checking the same in multiple servers.

     



  • 2.  Re: Controller Call back utility

    Posted Jan 31, 2018 12:05 PM

    I'm not sure about the scripting part but if your trying to get all services monitored via the ntservices probe you can run the probeReport.exe utility in the Nimsoft\bin folder.

    "C:\Program Files (x86)\Nimsoft\bin\ProbeReport.exe"

    You'd run the "Probe Configuration Report" and select the Hub and the Probes you want the report on.



  • 3.  Re: Controller Call back utility

    Posted Jan 31, 2018 12:27 PM

    Hi,

     

    Thanks.  I have tried this option earlier. It is working for small hubs and if hubs have large number of robots reporting, then it moves to hung state.

     

    Any other easy methods to get it.



  • 4.  Re: Controller Call back utility

    Posted Feb 01, 2018 10:36 AM

    Try this call instead as it just started working for me.

    I upgraded to latest webservices_rest v8.51:

    Then tried:

    http://UMP_Box/rest/probe/Domain/hub/robot/ntservices/config

     

    It returned all services monitored.



  • 5.  Re: Controller Call back utility

    Posted Feb 01, 2018 11:37 AM

    I use the same way as Daniel for my "Config-Fetch"-Script

    13.09.2017 - 14:40:05: DEBUG - Try: http://<Mainhub>/rest/probe/TestDomain/<TheHub>/<RobotName>/hdb/config
    13.09.2017 - 14:40:05: DEBUG - ** send_json * START **
    13.09.2017 - 14:40:05: DEBUG - REQUEST-Ergebnis -- START --
    13.09.2017 - 14:40:05: DEBUG - {"probeConfigKey":[{"key":"/setup/logfile","value":"hdb.log"},{"key":"/setup/loglevel","value":"0"}]}
    13.09.2017 - 14:40:05: DEBUG - Status-Code: 200
    13.09.2017 - 14:40:05: DEBUG - REQUEST-Ergebnis -- END --

     

    cheers

    Matthias



  • 6.  Re: Controller Call back utility

    Posted Feb 01, 2018 11:34 AM