Ad Widget

Collapse

[Export Graphs PDF/PNG] mabbix Beta1

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bcsx123
    Junior Member
    • Sep 2014
    • 14

    #1

    [Export Graphs PDF/PNG] mabbix Beta1

    Hello,

    my friends and I have developed a small web application written in PHP and AngularJS that interact with Zabbix in order to export graphs as PNG or PDF.
    It's based on chart2.php, it's very simple to install and doesn't require advanced skill.

    We have released the first beta: GitHub

    Some screenshots:

    Any feedback is appreciated!
  • iuriqc
    Junior Member
    • Sep 2017
    • 5

    #2
    Hi,

    I'm trying to enter in the frontend of the Mabbix, but the user that has been created doesn't work (mabbix/mabbix).

    What user i should use to enter in the frontend ?

    Comment

    • bcsx123
      Junior Member
      • Sep 2014
      • 14

      #3
      Originally posted by iuriqc
      Hi,

      I'm trying to enter in the frontend of the Mabbix, but the user that has been created doesn't work (mabbix/mabbix).

      What user i should use to enter in the frontend ?
      Hi,

      the user mabbix that you have created is used for the database access.
      In the frontend you must use a valid ZABBIX user.
      Let me know if you figure out how to solve.

      Bye

      Comment

      • iuriqc
        Junior Member
        • Sep 2017
        • 5

        #4
        Originally posted by bcsx123
        Hi,

        the user mabbix that you have created is used for the database access.
        In the frontend you must use a valid ZABBIX user.
        Let me know if you figure out how to solve.

        Bye
        Hi,

        I tried to use the ZABBIX user (Admin/zabbix), but without success.
        Tried too with other combinations (zabbix/zabbix, root/zabbix) and nothing.
        And i followed all the installation steps.
        What could it be?

        Comment

        • bcsx123
          Junior Member
          • Sep 2014
          • 14

          #5
          Originally posted by iuriqc
          Hi,

          I tried to use the ZABBIX user (Admin/zabbix), but without success.
          Tried too with other combinations (zabbix/zabbix, root/zabbix) and nothing.
          And i followed all the installation steps.
          What could it be?
          Are you able to login in ZABBIX frontend using Admin/zabbix?
          Have you edited the config files of mabbix with your ZABBIX settings?
          • /opt/mabbix/public/config.json
          • /opt/mabbix/public/back-end/core/configuration.php

          Comment

          • iuriqc
            Junior Member
            • Sep 2017
            • 5

            #6
            Originally posted by bcsx123
            Are you able to login in ZABBIX frontend using Admin/zabbix?
            Have you edited the config files of mabbix with your ZABBIX settings?
            • /opt/mabbix/public/config.json
            • /opt/mabbix/public/back-end/core/configuration.php
            Yes, i can login in ZABBIX frontend without problems.

            What editions i have to do ?
            I modified the lines with user and password (putting Admin/zabbix) but dont work.

            Comment

            • bcsx123
              Junior Member
              • Sep 2014
              • 14

              #7
              Originally posted by iuriqc
              Yes, i can login in ZABBIX frontend without problems.

              What editions i have to do ?
              I modified the lines with user and password (putting Admin/zabbix) but dont work.
              In the config.json (frontend) you need to edit the URL of the back-end:
              HTML Code:
              {
                  "baseUrl": "http://[IP-OF-YOUR-SERVER]/mabbix/back-end/"
              }
              In the config.php (backend) you need to edit all the variables.
              Be sure that ZABBIX URLs and database settings are correct.

              Comment

              • iuriqc
                Junior Member
                • Sep 2017
                • 5

                #8
                Originally posted by bcsx123
                In the config.json (frontend) you need to edit the URL of the back-end:
                HTML Code:
                {
                    "baseUrl": "http://[IP-OF-YOUR-SERVER]/mabbix/back-end/"
                }
                In the config.php (backend) you need to edit all the variables.
                Be sure that ZABBIX URLs and database settings are correct.
                I finally got into the Mabbix frontend. I had not modified the urls.
                But the page gives me an error: Error connecting to the database!

                I set the following variables (that i got in zabbix conf):

                // Database engine
                define('DB_ENGINE', 'MYSQL');
                // Database host
                define('DB_HOST', 'localhost');
                // Database port
                define('DB_PORT', '0');
                // Database schema
                define('DB_SCHEMA', 'zabbix');
                // Database user
                define('DB_USR', 'zabbix');
                // Database password
                define('DB_PWD', 'zabbix');

                Is not something correct ?

                Comment

                • bcsx123
                  Junior Member
                  • Sep 2014
                  • 14

                  #9
                  Originally posted by iuriqc
                  I finally got into the Mabbix frontend. I had not modified the urls.
                  But the page gives me an error: Error connecting to the database!

                  I set the following variables (that i got in zabbix conf):

                  // Database engine
                  define('DB_ENGINE', 'MYSQL');
                  // Database host
                  define('DB_HOST', 'localhost');
                  // Database port
                  define('DB_PORT', '0');
                  // Database schema
                  define('DB_SCHEMA', 'zabbix');
                  // Database user
                  define('DB_USR', 'zabbix');
                  // Database password
                  define('DB_PWD', 'zabbix');

                  Is not something correct ?
                  This is a different configuration from the ZABBIX one.

                  define('DB_ENGINE', 'mysql');
                  Keep mysql (lowercase)
                  define('DB_HOST', 'localhost');
                  Keep localhost if the database is on the same machine of the web server
                  define('DB_PORT', '3306');
                  Keep 3306 since this is the default MySQL port

                  DB_SCHEMA, DB_USR and DB_PWD are the values you have used during database configuration.
                  If you have used our guide, in order are these values:

                  mysql -u[USER] -h[HOST] -p -e "CREATE DATABASE mabbix CHARACTER SET utf8"
                  mysql -u[USER] -h[HOST] -p -e "CREATE USER 'mabbix'@'localhost' IDENTIFIED BY '[PASSWORD]'"

                  Let me know if you figure out how to solve.

                  Bye

                  Comment

                  • iuriqc
                    Junior Member
                    • Sep 2017
                    • 5

                    #10
                    Originally posted by bcsx123
                    This is a different configuration from the ZABBIX one.

                    define('DB_ENGINE', 'mysql');
                    Keep mysql (lowercase)
                    define('DB_HOST', 'localhost');
                    Keep localhost if the database is on the same machine of the web server
                    define('DB_PORT', '3306');
                    Keep 3306 since this is the default MySQL port

                    DB_SCHEMA, DB_USR and DB_PWD are the values you have used during database configuration.
                    If you have used our guide, in order are these values:

                    mysql -u[USER] -h[HOST] -p -e "CREATE DATABASE mabbix CHARACTER SET utf8"
                    mysql -u[USER] -h[HOST] -p -e "CREATE USER 'mabbix'@'localhost' IDENTIFIED BY '[PASSWORD]'"

                    Let me know if you figure out how to solve.

                    Bye
                    Hi,

                    I finally got to export graphs in Mabbix.
                    But i can't see in the options my application in the host Zabbix Server.
                    I created this manually in zabbix to monitor the temperature and humidity and i need to export the graphs to make an academic work.

                    Thanks for the help!

                    Comment

                    • mortiz
                      Junior Member
                      • Jan 2018
                      • 13

                      #11
                      Hello, i installed mabbix, I use SSL for my zabbix and edit configuration.php (edit login and pass zabbix admin, mysql log & pass mabbix, and url) and config.json (edit url) but i have error "Couldn't contact API server. Check app config.json: incorrect baseurl or API server down." if i try on console zabbix server curl -i -X POST -H 'Content-Type: application/json-rpc' -d '{ "jsonrpc": "2.0", "method": "user.login", "params": { "user": "login", "password": "pass" }, "id": 1, "auth": null }' http://ip/zabbix/api_jsonrpc.php all work, whats wrong can u help me pls?

                      Comment

                      • mortiz
                        Junior Member
                        • Jan 2018
                        • 13

                        #12
                        ok, i found trouble, just need install php 5.6 too. thx man great work for mabbix

                        Comment

                        • mortiz
                          Junior Member
                          • Jan 2018
                          • 13

                          #13
                          i wrong its now work with ssl...

                          Comment

                          Working...