Ad Widget

Collapse

Zabbix Version Pre 1.4.2 (stable) Build 4452: Initial Log Creation Permission Problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Palmertree
    Senior Member
    • Sep 2005
    • 746

    #1

    Zabbix Version Pre 1.4.2 (stable) Build 4452: Initial Log Creation Permission Problem

    Found that if you do not have a log entry already in the tmp folder for zabbix_server.log or zabbix_agentd.log a new file will be created but there are no permissions on the file and a permission error occurs.

    The files are getting created with a permission of "000" and not with a permission of "664". I just had to manually change the permisions with the cmod command.


    000 -> ---------
    644 -> rw-rw-r--
  • Alexei
    Founder, CEO
    Zabbix Certified Trainer
    Zabbix Certified SpecialistZabbix Certified Professional
    • Sep 2004
    • 5654

    #2
    I cannot reproduce this. How do you start ZABBIX daemons? Under user 'zabbix'?
    Alexei Vladishev
    Creator of Zabbix, Product manager
    New York | Tokyo | Riga
    My Twitter

    Comment

    • Palmertree
      Senior Member
      • Sep 2005
      • 746

      #3
      Correct, I have a standard user accunt called Zabbix in Fedora 7 which has ownership of the executables:

      drwxr-xr-x 2 root root 4096 2007-07-08 00:21 .
      drwxr-xr-x 12 root root 4096 2006-04-15 19:24 ..
      -rwxr-xr-x 1 zabbix zabbix 382520 2007-07-08 00:21 zabbix_agent
      -rwxr-xr-x 1 zabbix zabbix 423515 2007-07-08 00:21 zabbix_agentd
      -rwxr-xr-x 1 zabbix zabbix 134913 2007-07-08 00:21 zabbix_get
      -rwxr-xr-x 1 zabbix zabbix 141631 2007-07-08 00:21 zabbix_sender
      -rwxr-xr-x 1 zabbix zabbix 1253399 2007-07-08 00:21 zabbix_server

      My /tmp folder has the following permissions:
      drwxrwxrwt 4 root root 4096 2007-07-10 12:49 tmp

      OS has not changed from 1.4.1 to 1.4.2. I will keep looking around to see if I can figure out what is going on.

      Comment

      • aalexanderr
        Junior Member
        • Jul 2007
        • 26

        #4
        Originally posted by Alexei
        I cannot reproduce this. How do you start ZABBIX daemons? Under user 'zabbix'?
        I have the same problem.

        I upgrade from 1.4.1 to 1.4.2....

        /tmp/zabbix_server.log denied permission...

        Comment

        • sylvain
          Junior Member
          • Jul 2007
          • 15

          #5
          Originally posted by Palmertree
          000 -> ---------
          644 -> rw-rw-r--
          same here with developers.php code but with

          --------x

          i've rewriten void redirect_std(const char *filename) in log.c like it was in 1.4.1 and now it works..

          Comment

          • Alexei
            Founder, CEO
            Zabbix Certified Trainer
            Zabbix Certified SpecialistZabbix Certified Professional
            • Sep 2004
            • 5654

            #6
            Thanks for your reports. I still don't quite understand why it happens.
            Alexei Vladishev
            Creator of Zabbix, Product manager
            New York | Tokyo | Riga
            My Twitter

            Comment

            Working...