Ad Widget

Collapse

Reboot a Linux server without zabbix

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Amirov
    Junior Member
    • Mar 2013
    • 21

    #1

    Reboot a Linux server without zabbix

    I installed zabbix server 2.0.5 in linux server. I would like to reboot my linux server with graphical user interface. Can i do that ??

    Thanks
  • BDiE8VNy
    Senior Member
    • Apr 2010
    • 680

    #2
    Generally Yes. But it depends a little bit on your infrastructure (e.g. use of Proxies).
    Take a look at: Scripts
    Last edited by BDiE8VNy; 11-03-2013, 18:34. Reason: Scripts, not External Scripts

    Comment

    • Amirov
      Junior Member
      • Mar 2013
      • 21

      #3
      Originally posted by BDiE8VNy
      Generally Yes. But it depends a little bit on your infrastructure (e.g. use of Proxies).
      Take a look at: Scripts
      I'am only working on a linux server (Ubuntu Server) and i would like to reboot it with the graphical user interface. how can I execute the script created and reboot my server. Thanks

      Comment

      • BDiE8VNy
        Senior Member
        • Apr 2010
        • 680

        #4
        Simple example to show the idea (not tested):

        Add something like this to your sudoers.
        Code:
        Defaults:zabbix !requiretty
        zabbix localhost=/sbin/shutdown -r now
        Create a new script inside Zabbix with options similar to these.
        • Name: Restart Zabbix-Server
        • Type: Script
        • Execute on: Zabbix server
        • Commands: /usr/bin/sudo /sbin/shutdown -r now
        • User groups: whatever desired
        • Host groups: whatever desired
        • Required host permissions: write
        • Enable confirmation: yes
        • Confirmation text: Confirmation required. Should the Zabbix-Server be restarted?


        As mentioned within the documentation scripts are executable from several places in the UI.

        Comment

        • Amirov
          Junior Member
          • Mar 2013
          • 21

          #5
          Originally posted by BDiE8VNy
          Simple example to show the idea (not tested):

          Add something like this to your sudoers.
          Code:
          Defaults:zabbix !requiretty
          zabbix localhost=/sbin/shutdown -r now
          Create a new script inside Zabbix with options similar to these.
          • Name: Restart Zabbix-Server
          • Type: Script
          • Execute on: Zabbix server
          • Commands: /usr/bin/sudo /sbin/shutdown -r now
          • User groups: whatever desired
          • Host groups: whatever desired
          • Required host permissions: write
          • Enable confirmation: yes
          • Confirmation text: Confirmation required. Should the Zabbix-Server be restarted?


          As mentioned within the documentation scripts are executable from several places in the UI.
          Thanks you

          My probleme is how can i execute a script created on zabbix with my graphical user interface.

          Comment

          • BDiE8VNy
            Senior Member
            • Apr 2010
            • 680

            #6
            There are several possibilities to do that. Check out the host hyper links of the Dashboard, Triggers or Events views. There might be more places.
            Last edited by BDiE8VNy; 12-03-2013, 21:26. Reason: typo

            Comment

            Working...