Ad Widget

Collapse

install zabbix_agentd on Solaris 10, AIX 5.2 -5.3

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MCxx
    Junior Member
    • Jun 2008
    • 2

    #1

    install zabbix_agentd on Solaris 10, AIX 5.2 -5.3

    Hi all!
    I'm setup zabbix server monitor my company'servers. My company have Windows2k3, Fedora, centOS, SUN 10, AIX 5.2, AIX 5.3. I setup zabbix server ok and monitored servers (windows + Fedora + CentOS) by zabbix_agentd. I want to monitoring servers SUN and AIX, but i can't setup zabbix_agentd on those servers.

    i'm search document zabbix for SUN, AIX, but i can't see.

    Please help me!!

    Thanks everyone.
  • spetznaz
    Junior Member
    • May 2008
    • 5

    #2
    If you can compile on this *nix servers ....
    this is my instalation script. it main advantage is that it is working (for me);

    You will probably need to change a lot of things.

    i SCP or mount "/opt/zabbix/src/" from another server and than i run this script.

    Code:
    #!/bin/bash
    
    PREFIX="/opt/zabbix"
    VER="1.4.5"
    
    wget -c http://surfnet.dl.sourceforge.net/sourceforge/zabbix/zabbix-$VER.tar.gz -O $PREFIX/src/zabbix-$VER.tar.gz && cd $PREFIX/src && gtar -zxf zabbix-$VER.tar.gz
    cd $PREFIX/src/zabbix-$VER && gmake clean ; ./configure --prefix=$PREFIX --enable-agent && gmake && gmake install
    
    if [ "$?" != "0" ]; then
        echo "FAILURE :("
        exit;
    fi
    
    cat /opt/zabbix/src/etc/services >> /etc/services
    cp /opt/zabbix/src/etc/zabbix_agentd.conf /opt/zabbix/etc/zabbix_agentd.conf
    cp /opt/zabbix/src/etc/zabbix_agent /etc/init.d/zabbix_agent
    ln -s /etc/init.d/zabbix_agent /etc/rc3.d/S99zabbix_agentd
    
    mkdir -p /opt/zabbix/log
    useradd -d /opt/zabbix -s /bin/bash zabbix
    chown -R root /opt/zabbix
    chown -R zabbix /opt/zabbix/log
    Script tested on Solaris and linux.

    After that I manualy set hostname in cfg file, and restart agent.
    I have also an SMF (Solaris 10) script i will post it later. after cleaning it from trash
    Last edited by spetznaz; 03-07-2008, 14:42.

    Comment

    Working...