Ad Widget

Collapse

Zabbix Frontend only in read access on the DB

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Matthieu
    Member
    • Mar 2011
    • 41

    #1

    Zabbix Frontend only in read access on the DB

    Hi,

    I have just a question, is the frontend needs to write in the db? I ask this question because I have 6 screens that show zabbix data at the same time and this increase the request on my mysql DB.
    Is it possible to bind the frontend on a mysql slave?

    Thanks,


    Matthieu
    Last edited by Matthieu; 21-05-2012, 12:17.
  • ghoz
    Senior Member
    • May 2011
    • 204

    #2
    The frontend stores sessions state and audit data (who logged in) in the db,

    So the answer seems to be 'no'...

    Comment

    • nelsonab
      Senior Member
      Zabbix Certified SpecialistZabbix Certified Professional
      • Sep 2006
      • 1233

      #3
      Originally posted by ghoz
      The frontend stores sessions state and audit data (who logged in) in the db,

      So the answer seems to be 'no'...
      That being said you could configure your "viewer web-servers" to use a different DB account to connect to the DB which does not have write access to every table, just the session and audit associated tables. That way if someone got around the internal Zabbix permissions they still wouldn't be able to edit any of the items, as the DB would not allow writes to the items, history and whatnot tables.

      Just a quick guess I think you'll need access to audit, session, and user (so the webfrontend can write last login I think)
      Last edited by nelsonab; 21-05-2012, 11:46.
      RHCE, author of zbxapi
      Ansible, the missing piece (Zabconf 2017): https://www.youtube.com/watch?v=R5T9NidjjDE
      Zabbix and SNMP on Linux (Zabconf 2015): https://www.youtube.com/watch?v=98PEHpLFVHM

      Comment

      • Matthieu
        Member
        • Mar 2011
        • 41

        #4
        Ok, thanks for your response, I can throw in the trash my idea to bind the frontend on mysql slave.

        Regards,

        Matthieu
        Last edited by Matthieu; 21-05-2012, 12:20.

        Comment

        • ghoz
          Senior Member
          • May 2011
          • 204

          #5
          Nah, could be interesting to add a feature request in the tracker...

          you could also test adding a mysql proxy for your frontend, redirecting writes to the master and reads to the slave...

          not sure how it would fare however...

          Comment

          • Matthieu
            Member
            • Mar 2011
            • 41

            #6
            humm nice idea. I'm going to test this solution and I will give you a feedback

            Matthieu

            Comment

            Working...