Ad Widget

Collapse

installing Zabbix server, Frontend and agent on Raspberry pi OS

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • freddie
    Junior Member
    • Dec 2021
    • 7

    #1

    installing Zabbix server, Frontend and agent on Raspberry pi OS

    Clean install of Raspberry pi OS 32 bit, then trying to install Zabbix following these steps:
    Zabbix is being downloaded over 4 000 000 times every year for a reason. Download and install Zabbix for free and try it yourself!


    The message that appears after this command:
    apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent

    is this:
    package listings are beiing read but some packages cannot be installed because i have asked something inpossible or the packages are still unsable or must be deleted out of incoming:
    libevent-2.1.6-stable is not installable
    libsnmp30 5.7.3 not installable
    snmpd will not be installed

    Problem when i go on with the commands the zabbix_server.conf. is not present and the reason for this must be that Zabbix is not installed.

    I can't find a solution on the Internet some a suggestion?
  • freddie
    Junior Member
    • Dec 2021
    • 7

    #2
    The only problem is with Zabbix server install. Frontend and agent are installing fine. I also found a document to download the folder from Zabbix but then what?
    For example there is a line that says: make and install everything:
    if installing from Zabbix git repositery it is requiered to run first: $ make dbschema
    but when i do that it says there is nothing to make...

    Everything what i do goes wrong because the Zabbix-Server cannot be installed, damn.
    Last edited by freddie; 12-12-2021, 11:55.

    Comment

    • Steve.B
      Junior Member
      • Jul 2021
      • 7

      #3
      This is most likely due to those packages not being availble on the 32bit Raspberry Pi OS, you should try with the 64bit if you're running on Pi4.

      For example the libevent-2.1.6-stable doesn't list a arm32 package as being available:



      Comment

      • Atsushi
        Senior Member
        • Aug 2013
        • 2028

        #4
        I have a question. Is the Raspberry Pi OS you installed a Debian 10(Buster) based version? Isn't it a Debian 11(Bullseye) based version? Make sure it matches the version of the OS you are using.

        Comment

        • freddie
          Junior Member
          • Dec 2021
          • 7

          #5
          Originally posted by Atsushi
          I have a question. Is the Raspberry Pi OS you installed a Debian 10(Buster) based version? Isn't it a Debian 11(Bullseye) based version? Make sure it matches the version of the OS you are using.
          I have installed with the imager en have chosen several operating systems but the most tries i have installed the first option: Raspberrypi OS 32 bit 10 Buster mysql apache as to install Zabbix, tried 5.4 and 5.0 LTS.

          Comment

          • freddie
            Junior Member
            • Dec 2021
            • 7

            #6
            Originally posted by Steve.B
            This is most likely due to those packages not being availble on the 32bit Raspberry Pi OS, you should try with the 64bit if you're running on Pi4.

            For example the libevent-2.1.6-stable doesn't list a arm32 package as being available:


            I have taken your advise and installed the 64 bit Raspberry os, now it goes further with the install however, with my knowledge of Linux i am stuck again very soon after following this manual:
            https://www.zabbix.com/download?zabb...ysql&ws=apache

            It costs me a lot of time to figure out what i am doiing wrong but when i do these commands:
            # mysql -uroot -p
            password
            mysql> create database zabbix character set utf8 collate utf8_bin;
            mysql> create user zabbix@localhost identified by 'password';
            mysql> grant all privileges on zabbix.* to zabbix@localhost;
            mysql> quit;

            The first is the root password i think, then create user is zabbix identified by password is my new zabbix password for the database zabbix
            grant priveleges goes well for user zabbix@localhost- i think this is for user zabbix
            Above goes well but then the next does not:

            zcat /usr/share/doc/zabbix-sql-scripts/mysql/create.sql.gz | mysql -uzabbix -p zabbix

            It first says "no such file or directory but in the same line it asks for enter password
            which password i fill in: root pw or zabbix pw it makes no difference it gives an error 1045 (28000) access denied for user zabbix@localhost (using password:YES)


            The folder /usr/share/doc/zabbix-server-mysql does excist but create.sql.gz but i think that is the idea that de .gz file is created but that it is not possible due to rights?


            What am i doiing wrong here?

            Last edited by freddie; 17-12-2021, 11:19.

            Comment

            • freddie
              Junior Member
              • Dec 2021
              • 7

              #7
              I have also download Zabbix 5.0 and have a completed filled folder but that is also not working bacause there are things in de manual i cannot figure out. Isn't there just an easy installed which does everything set for me like in Windows?

              Comment


              • freddie
                freddie commented
                Editing a comment
                I am getting really frustated, having tried several Linux distributions but non of them i can get it to work. Now having Raspberry pi Lite installed and tried Zabbix again. Until the command: zcat it goes wel, create database, zabbix user etc but then zcat must opening or creating the create.sql.gz but that file is not on the flashdrive and there is no /usr/share/doc/zabbix-mysql folder....
            • Steve.B
              Junior Member
              • Jul 2021
              • 7

              #8
              Have you installed zabbix-sql-scripts? this lays down the files for creating the database.

              The password you need to enter is the one you entered at this step: mysql> create user zabbix@localhost identified by 'password';

              Originally posted by freddie

              I have taken your advise and installed the 64 bit Raspberry os, now it goes further with the install however, with my knowledge of Linux i am stuck again very soon after following this manual:
              https://www.zabbix.com/download?zabb...ysql&ws=apache

              It costs me a lot of time to figure out what i am doiing wrong but when i do these commands:
              # mysql -uroot -p
              password
              mysql> create database zabbix character set utf8 collate utf8_bin;
              mysql> create user zabbix@localhost identified by 'password';
              mysql> grant all privileges on zabbix.* to zabbix@localhost;
              mysql> quit;

              The first is the root password i think, then create user is zabbix identified by password is my new zabbix password for the database zabbix
              grant priveleges goes well for user zabbix@localhost- i think this is for user zabbix
              Above goes well but then the next does not:

              zcat /usr/share/doc/zabbix-sql-scripts/mysql/create.sql.gz | mysql -uzabbix -p zabbix

              It first says "no such file or directory but in the same line it asks for enter password
              which password i fill in: root pw or zabbix pw it makes no difference it gives an error 1045 (28000) access denied for user zabbix@localhost (using password:YES)


              The folder /usr/share/doc/zabbix-server-mysql does excist but create.sql.gz but i think that is the idea that de .gz file is created but that it is not possible due to rights?


              What am i doiing wrong here?

              Comment

              • freddie
                Junior Member
                • Dec 2021
                • 7

                #9
                Originally posted by Steve.B
                Have you installed zabbix-sql-scripts? this lays down the files for creating the database.

                The password you need to enter is the one you entered at this step: mysql> create user zabbix@localhost identified by 'password';


                Hi Steve,
                How do i install zabbix scripts?.
                I am following the manual on the Zabbix site. I have formatted the flashdrive again and found a manual for Zabbix on Ubuntu 20.04 lts, however also that is doomed to fail. It says something as repositery Zabbix not support armf. And what i know is that Raspberry pi 4 is armf architecture.

                I can start over again because that is not so much work but when i install Raspberry pi OS 32 bit and follow that manual on the zabbix site there is no seperate line for installing Zabbix script only this one:

                sudo apt install zabbix-server-mysql zabbix-frontend-php zabbix-apache-conf zabbix-sql-scripts zabbix-agent

                And there is someting as zabbix-sql-scripts, thats all i know...


                I am starting with the Rspberry pi and would like to use it to monitor my network with Zabbix but this is very annoying..

                Comment

                Working...