Ad Widget

Collapse

Run Command by Click on MAP ( any command per any server )

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • omid1979
    Member
    • Nov 2016
    • 33

    #1

    Run Command by Click on MAP ( any command per any server )

    hi all ,
    I need a solution to access our NOC Users to run special command on server without login to server.
    in ohter word I want able to cliek on icon that I create on MAP and run command on server , I know I have it by add script on Administeation-> script , but It is generally , and don't have filter to enable/disable per host ,
    in other work I want to able to have for example run test.bat on server1 and test222.exe on server2 for special login user ,
    any solution for this ?
    P.S: in the other world how can I have action without triger and run it by click Icon on zabbix map?
    Last edited by omid1979; 26-04-2018, 06:43.
  • aigars.kadikis
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Mar 2018
    • 208

    #2
    Hi, omid1979!

    What is outcome of test.bat, test222.exe? What are you trying to accomplish? Is it SYSTEM or UserProfile related?
    Be aware that zabbix_agentd.exe by default runs under user SYSTEM

    Regards,

    Comment

    • kloczek
      Senior Member
      • Jun 2006
      • 1771

      #3
      First of all. If you have such situation it means that someone propose kind of wrong solution of the issue.
      Please tell a bit more about what kind of the issue it is and I'm almost sure that it will be possible to solve it without this "monkey NOC" approach.
      http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
      https://kloczek.wordpress.com/
      zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
      My zabbix templates https://github.com/kloczek/zabbix-templates

      Comment

      • omid1979
        Member
        • Nov 2016
        • 33

        #4
        They are several for example
        1- we write application that name is test.exe . this application install on server1 , when the main Application on server 1 is stop or crashed, we want our Monitoring Team able to start application test.exe by click on Icon o the server 1 ( or any one ) and zabbix send signal to server1 to start test.exe ,
        2- we have some service on each server like server1 ( Webserver ) server2 ( mail server ) server3 (DNS ServeR ) .....
        I want to able to click on Service Monitor Icon on each server and able to restart server , I know we should write script with variable parameter and when I click on each service my parameter send to (remote command ) server with related parameter, how Can I add this method to zabbix.? can anyone help me with example. ?

        Thanks so much

        Comment

        • kloczek
          Senior Member
          • Jun 2006
          • 1771

          #5
          1) Even Windows has ability to restart service process after crash https://www.rarst.net/software/services-auto-restart/
          2) Giving monitoring infrastructure power to restart service is asking for troubles (from security point of view)
          This is nothing more than just bad design.
          http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
          https://kloczek.wordpress.com/
          zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
          My zabbix templates https://github.com/kloczek/zabbix-templates

          Comment

          Working...