Ad Widget

Collapse

Graphs - Not being Displayed

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • brianstivala
    Junior Member
    • Jan 2012
    • 16

    #16
    Hi,

    Thanks for your reply but however I've decided to remove everything, Zabbix is really hard to install and configure for newbies. I've also followed a document (attached) which is very explained and I had problems too. I had a problem with server_agentd.conf, (server is unreachable in zabbix). If you have a document which is very explained kindly share with me.

    Regards,
    Brian Stivala
    Attached Files

    Comment

    • dmltn84
      Junior Member
      • Jan 2012
      • 11

      #17
      Unfortunately I don't have a document and I struggled myself during first Zabbix setup, I can give you some notes for Fedora which I composed:

      Zabbix server:

      1. Unpack sources

      2. Install database, example is as follows (for mysql):
      Code:
      shell> mysql -u<username> -p<password>
      mysql> create database zabbix character set utf8;
      mysql> quit;
      shell> cd create/schema
      shell> cat mysql.sql | mysql -u<username> -p<password> zabbix
      shell> cd ../data
      shell> cat data.sql | mysql -u<username> -p<password> zabbix
      shell> cat images_mysql.sql | mysql -u<username> -p<password> zabbix
      3. Configure and compile zabbix server, for example:

      Code:
      shell> ./configure --enable-server --with-mysql --with-net-snmp
      4. Install:

      Code:
      shell> make install
      5. Create a folder /etc/zabbix and copy there zabbix conf file for server. Configure it to match your server data.

      6. Copy start app scripts for your system, for example:

      Code:
      cp misc/init.d/redhat/zabbix_server_ctl /etc/init.d/zabbix_server_ctl
      and make it executable.

      After each component is installed I make some clean up:

      Code:
      make clean
      Zabbix Agent:

      1. Add zabbix user and group

      2. Configure and compile agent:

      Code:
      ./configure --enable-agent
      3. Install agent

      Code:
      make install
      4. Modify /etc/services to include these lines

      Code:
      zabbix_agent 10050/tcp 
      zabbix_trap 10051/tcp
      5. Copy start app scripts for your system, for example:

      Code:
      cp misc/init.d/redhat/zabbix_agentd_ctl /etc/init.d/zabbix_agentd_ctl
      and make it executable.

      6. Copy zabbix_agentd.conf to /etc/zabbix. Make sure that Server and Hostname are correctly configured, safe assumption is to make names consistent across all three zabbix components (server, agent, GUI)

      Troubleshooting:

      I have had lots of issues during my first setup, but the logic is follows if something does not work:

      1. Check zabbix logs, look for clues
      2. Make sure that SELinux is disabled
      3. Make sure that firewall rules allow server-agent communication (in fedora its
      Code:
      system-config-firewall
      executed directly from the console)
      4. Double check conf files

      Lots of interesting information is located here: http://www.zabbix.com/wiki/howto/install/start

      Just choose relevant operation system, lots of clues are there. Best apporach for me is to install dependencies from package repositories and install zabbix from source.

      P.S. as far as your server unreachable problem (in case server is up) is concerned most likely you should check that hostname parameters are consistent in zabbix_agentd.conf and in GUI, second thing to check is firewall rules - make sure that ports 10050-10051 are not blocked on the either side.

      Comment

      • Axilla
        Senior Member
        • Aug 2010
        • 130

        #18
        the reason your graph wasn't showing up is the time is WRONG.. your graph is showing 19:17 but your clock shows 20:17

        I have seen this issue in the past...

        Comment

        • brianstivala
          Junior Member
          • Jan 2012
          • 16

          #19
          Thanks for the reply,

          I will try to install zabbix for the fourth time and I will let you know if problems should arise, which they will.

          @Axilla

          The time was not an issue because I've installed Zabbix 3 times more from the first time and I did manage to fix the Time.

          The only problem I am facing is server_agentd.conf. when I try to stop the server it fails and in Webgui it shows (Server is unreachable) Both ports are opened on my firewall as well. SELinux is disabled and IPTables are off.

          I will install zabbix again later on and I will keep you updated with screenshots. Do you have live account such skype or msn messenger to share with me, it's much easier to communicate.

          Regards,
          Brian Stivala

          Comment

          • brianstivala
            Junior Member
            • Jan 2012
            • 16

            #20
            Hi,

            So I've installed zabbix again following the attached previous document and the same problem occurs to me.

            I'm attaching screenshots regarding problem I'm facing with zabbix with zabbix, if I cant get zabbix_agentd to work is not going to work at all for me.

            The zabbix_Server starts
            The Zabbix_Agentd starts but when I type stop it fails.

            Advise if you need more information.

            Regards,
            Brian
            Attached Files

            Comment

            • dmltn84
              Junior Member
              • Jan 2012
              • 11

              #21
              1. Check your start up script (most likely in /etc/init.d/ folder)
              2. Check zabbix logs

              Most likely your problem relates to inconsistent specification of the pid file in zabbix agentd conf file and your start up scripts.

              However it looks like a minor problem, you can just kill it

              Comment

              • brianstivala
                Junior Member
                • Jan 2012
                • 16

                #22
                Hi,

                Apologies for the late reply, I'm not into scripts and I'm a newbie on linux.
                However I've pasted as per below the zabbix_agent.conf maybe you can find something wrong and I can change it.

                Zabbix_agentd in init.d folder

                #!/bin/bash
                #
                # chkconfig: 345 90 10
                # description: Starts and stops Zabbix Agent using chkconfig
                # Tested on Fedora Core 2 - 5
                # Should work on all Fedora Core versions
                #
                # @name: zabbix_agentd
                # @author: Alexander Hagenah <[email protected]>
                # @created: 18.04.2006
                #
                # Source function library.
                . /etc/init.d/functions

                # Variables
                # Edit these to match your system settings

                # Zabbix-Directory
                BASEDIR=/usr/local/zabbix

                # Binary File
                BINARY_NAME=zabbix_agent

                # Full Binary File Call
                FULLPATH=$BASEDIR/sbin/$BINARY_NAME

                # PID file
                PIDFILE=/var/tmp/$BINARY_NAME.pid

                # Establish args
                ERROR=0
                STOPPING=0

                #
                # No need to edit the things below
                #

                # application checking status
                if [ -f $PIDFILE ] && [ -s $PIDFILE ]
                then
                PID=`cat $PIDFILE`

                if [ "x$PID" != "x" ] && kill -0 $PID 2>/dev/null && [ $BINARY_NAME == `ps -e | grep $PID | awk '{print $4}'` ]
                then
                STATUS="$BINARY_NAME (pid `pidof $APP`) running.."
                RUNNING=1
                else
                rm -f $PIDFILE
                STATUS="$BINARY_NAME (pid file existed ($PID) and now removed) not running.."
                RUNNING=0
                fi
                else
                if [ `ps -e | grep $BINARY_NAME | head -1 | awk '{ print $1 }'` ]
                then
                STATUS="$BINARY_NAME (pid `pidof $APP`, but no pid file) running.."
                else
                STATUS="$BINARY_NAME (no pid file) not running"
                fi
                RUNNING=0
                fi

                # functions
                start() {
                if [ $RUNNING -eq 1 ]
                then
                echo "$0 $ARG: $BINARY_NAME (pid $PID) already running"
                else
                action $"Starting $BINARY_NAME: " $FULLPATH
                touch /var/lock/subsys/$BINARY_NAME
                fi
                }

                stop() {
                echo -n $"Shutting down $BINARY_NAME: "
                killproc $BINARY_NAME
                RETVAL=$?
                echo
                [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/$BINARY_NAME
                RUNNING=0
                }


                # logic
                case "$1" in
                start)
                start
                ;;
                stop)
                stop
                ;;
                status)
                status $BINARY_NAME
                ;;
                restart)
                stop
                start
                ;;
                help|*)
                echo $"Usage: $0 {start|stop|status|restart|help}"
                cat <<EOF

                start - start $BINARY_NAME
                stop - stop $BINARY_NAME
                status - show current status of $BINARY_NAME
                restart - restart $BINARY_NAME if running by sending a SIGHUP or start if not running
                help - this screen

                EOF
                exit 1
                ;;
                esac

                exit 0


                Comment

                Working...