Ad Widget

Collapse

Supervising Linux OS Servers

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Cleanse
    Junior Member
    • Apr 2014
    • 18

    #1

    Supervising Linux OS Servers

    Hi all,

    I've built up a supervising server with Zabbix on which i've created all the hosts (except clients) of my architecture (servers, switchs, routers, firewall, VM(esx)).

    As far as Windows OS Servers are concerned, I managed to develop an autoinstall script for Zabbix agent.
    I can understand quiet clearly how it works : one service gathering informations about the host I installed Agent on, depending of the template i linked on that host.

    Though, I do not quiet understand how it does work concerning Linux OS servers (mostly debians), i could guess "the same way it does on WinOS Srv" but there are no init.d scripts, nore a single thing that could start the agent...

    I've tried to download Zabbix agent sources (tar.gz) from http://www.zabbix.com/download.php :

    Pre-compiled Zabbix 2.2.1 (stable) agents are available for selected platforms.
    I chose Linux 2.6.23 (Debian obviously ?)
    ...then i do tar xzf blabla.. and it gives me 3 directories :
    bin
    sbin
    conf
    directories that I then copy and paste (with zabbix user/groups/rights i created before) in :
    /usr/local/bin
    /usr/local/sbin
    /usr/local/etc
    And here i am, not knowing what i'm supposed to do afterward ..
    I tried something like :
    /usr/local/sbin/zabbix_agentd -c /usr/local/etc/zabbix_agentd.conf
    And it seemed to work seems i can see something running as "zabbix" when i do "pas aux" command.. but i can't stop it ! (may be it's just Zabbix server trying to gather info from this server ?)

    zabbix 8386 0.0 0.1 23880 704 ? S 11:23 0:00 zabbix_agentd
    zabbix 8387 0.0 0.1 23880 748 ? S 11:23 0:01 zabbix_agentd: collector [idle 1 sec]
    zabbix 8388 0.0 0.0 23880 424 ? S 11:23 0:00 zabbix_agentd: listener #1 [waiting for connection
    zabbix 8389 0.0 0.0 23880 424 ? S 11:23 0:00 zabbix_agentd: listener #2 [waiting for connection
    zabbix 8390 0.0 0.0 23880 424 ? S 11:23 0:00 zabbix_agentd: listener #3 [waiting for connection
    zabbix 8391 0.0 0.1 23880 796 ? S 11:23 0:00 zabbix_agentd: active checks #1 [idle 1 sec]
    How am I supposed to do if i want to stop it in order to update my .conf file.
    Or even just to update agent version from 2.2.1 to 2.3 for instance ?

    I'd be very happy if any of you could help me with that matter !

    Just to simply understand Zabbix agent mecanics, so i could therefore build a bash script to deploy agent on my supposed-to-be-monitored linux OS servers later on...

    Sorry for my english !

    Thanks in advance for any of you who could understand my english and had the courage to help
  • aib
    Senior Member
    • Jan 2014
    • 1615

    #2
    Take a look on Official Documentation
    3 Installation from packages - Debian / Ubuntu

    It's more easy way to install agent on client's PC/server.
    Sincerely yours,
    Aleksey

    Comment

    • Cleanse
      Junior Member
      • Apr 2014
      • 18

      #3
      Thanks,

      I'm quiet confused about the pre-compiled thing, i don't get the use of them if the only simpliest way to install agent on supposed-to-be-monitored Linux OS servers is to get the whole source (Zabbix server/agent/proxy/...) and just go with a --enable-agent only...

      I'll go this way for now, easiest and fastest way to deploy i guess..

      Just gonna be tricky for non-Debian servers and 32b-OS servers !

      Thanks anyway !
      Last edited by Cleanse; 16-04-2014, 09:21.

      Comment

      • aib
        Senior Member
        • Jan 2014
        • 1615

        #4
        It's quite easy to find Zabbix Download Page, where you can get sources, or packages, or even already pre-compiled agents for different OS'es.
        Sincerely yours,
        Aleksey

        Comment

        • Cleanse
          Junior Member
          • Apr 2014
          • 18

          #5
          That was actually my previous question

          How to use pre-compile files i get for Debian if i don't have any .exe-like or init scripts.

          Comment

          • aib
            Senior Member
            • Jan 2014
            • 1615

            #6
            Sorry about that.

            I'm lazy and I'm using package installation.
            It's doing everything which I need - drop .exe in correct place, create .conf, make init-scripts
            Sincerely yours,
            Aleksey

            Comment

            Working...