Ad Widget

Collapse

zabbix_agentd immediatley quits on SuSE 10.1

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • roli8200
    Junior Member
    • Aug 2006
    • 15

    #1

    zabbix_agentd immediatley quits on SuSE 10.1

    Hello

    Trying to run the zabbix 1.1 agents on SuSE 10.1. Compiled and configured fine but when I start the zabbix_agentd (no inetd) it quits immediately. No Error message and no logfile output.
    Made the installation and configuration based on the documentation on the website.
    Its really important for me to get this working until end of this month.
    Does somebody have a Idea about the reason of this problem?

    Kind regards

    Roland Kaeser
  • dantheman
    Senior Member
    • May 2006
    • 209

    #2
    I think usually I've noticed when no logfile is created there is either an error with the configuration file(usually invalid syntax somewhere..) or permission issue....

    does the zabbix account have access to write to the log file?
    Is the config file in the right location? (you'll need to check the docs to see where that should be... I don't recall offhand.)

    Comment

    • denso
      Member
      • Sep 2005
      • 32

      #3
      there is also a possiblity that i ran into which is the port may be in use.

      netstat -na | grep port number

      ensure the port is clear.

      Comment

      • roli8200
        Junior Member
        • Aug 2006
        • 15

        #4
        No Logfile defined

        Originally posted by dantheman
        I think usually I've noticed when no logfile is created there is either an error with the configuration file(usually invalid syntax somewhere..) or permission issue....

        does the zabbix account have access to write to the log file?
        Is the config file in the right location? (you'll need to check the docs to see where that should be... I don't recall offhand.)
        I have no logfile defined in the zabbix_agend.conf file. This is my zabbix_agentd.conf:

        # This is config file for zabbix_agent
        # To get more information about ZABBIX,
        # go http://www.zabbix.com

        # IP address of ZABBIX server
        # Connections from other hosts will be denied

        Server=87.245.90.134

        # Spend no more than Timeout seconds on processing
        # Must be between 1 and 30

        Timeout=3

        ####### USER-DEFINED MONITORED PARAMETERS #######
        # Format: UserParameter=<key>,<shell command>
        # Note that shell command must not return empty string or EOL only
        # UserParameter=system.test,who|wc -l
        ### Set of parameter for monitoring MySQL server (v3.23.42 and later)
        ### Change -u<username> and add -p<password> if required
        #UserParameter=mysql.ping,mysqladmin -uroot ping|grep alive|wc -l
        #UserParameter=mysql.uptime,mysqladmin -uroot status|cut -f2 -d":"|cut -f1 -d"T"
        #UserParameter=mysql.threads,mysqladmin -uroot status|cut -f3 -d":"|cut -f1 -d"Q"
        #UserParameter=mysql.questions,mysqladmin -uroot status|cut -f4 -d":"|cut -f1 -d"S"
        #UserParameter=mysql.slowqueries,mysqladmin -uroot status|cut -f5 -d":"|cut -f1 -d"O"
        #UserParameter=mysql.qps,mysqladmin -uroot status|cut -f9 -d":"
        #UserParameter=mysql.version,mysql -V

        Comment

        • roli8200
          Junior Member
          • Aug 2006
          • 15

          #5
          Originally posted by denso
          there is also a possiblity that i ran into which is the port may be in use.

          netstat -na | grep port number

          ensure the port is clear.
          Non of the zabbix ports (10050/10051) are in use.

          Comment

          • cameronsto
            Senior Member
            • Oct 2005
            • 148

            #6
            Try changing to the zabbix user and starting the program.

            -cameron

            Comment

            • dantheman
              Senior Member
              • May 2006
              • 209

              #7
              You might also try adding in the line for the log file and then we can check that to see if it will tell us why it is shutting down.

              This is the format for that
              Code:
              LogFile=/tmp/zabbix_agentd.log

              You might also want to make sure the debug level is on high so we get all the nitty gritty details with this line

              Code:
              DebugLevel=4

              Comment

              • roli8200
                Junior Member
                • Aug 2006
                • 15

                #8
                Still no logfile

                Originally posted by dantheman
                You might also try adding in the line for the log file and then we can check that to see if it will tell us why it is shutting down.

                This is the format for that
                Code:
                LogFile=/tmp/zabbix_agentd.log

                You might also want to make sure the debug level is on high so we get all the nitty gritty details with this line

                Code:
                DebugLevel=4
                Hello

                I have still no logfile output. No Logfile is created.
                I'm not a C-Programmer (I program in Java), can somebody give me a small
                hint how to write some small debug info into the sourcecode to see what happens when zabbix_agentd starts?

                Thanks

                Roland

                Comment

                • denso
                  Member
                  • Sep 2005
                  • 32

                  #9
                  try strace. its a system call tracer in linux it will tell you what is going on and what is being called.

                  Comment

                  • roli8200
                    Junior Member
                    • Aug 2006
                    • 15

                    #10
                    Strace result

                    Hello

                    Made a strace with zabbix_agentd. Can somebody see something in it? Becaus I cannot see anthing who can be wrong.

                    Thanks

                    Roland

                    zabbix@streaming-holzer:/tmp> strace /opt/zabbix/bin/zabbix_agentd
                    execve("/opt/zabbix/bin/zabbix_agentd", ["/opt/zabbix/bin/zabbix_agentd"], [/* 72 vars */]) = 0
                    brk(0) = 0x80b1000
                    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f2c000
                    access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
                    open("/etc/ld.so.cache", O_RDONLY) = 3
                    fstat64(3, {st_mode=S_IFREG|0644, st_size=166412, ...}) = 0
                    mmap2(NULL, 166412, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7f03000
                    close(3) = 0
                    open("/lib/libresolv.so.2", O_RDONLY) = 3
                    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P& \0\000"..., 512) = 512
                    fstat64(3, {st_mode=S_IFREG|0755, st_size=74278, ...}) = 0
                    mmap2(NULL, 76052, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7ef0000
                    madvise(0xb7ef0000, 76052, MADV_SEQUENTIAL|0x1) = 0
                    mmap2(0xb7eff000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe) = 0xb7eff000
                    mmap2(0xb7f01000, 6420, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f01000
                    close(3) = 0
                    open("/lib/libnsl.so.1", O_RDONLY) = 3
                    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0`5 \0\000"..., 512) = 512
                    fstat64(3, {st_mode=S_IFREG|0755, st_size=87850, ...}) = 0
                    mmap2(NULL, 83712, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7edb000
                    madvise(0xb7edb000, 83712, MADV_SEQUENTIAL|0x1) = 0
                    mmap2(0xb7eec000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x10) = 0xb7eec000
                    mmap2(0xb7eee000, 5888, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7eee000
                    close(3) = 0
                    open("/lib/libc.so.6", O_RDONLY) = 3
                    read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\3 00Y\1"..., 512) = 512
                    fstat64(3, {st_mode=S_IFREG|0755, st_size=1404242, ...}) = 0
                    mmap2(NULL, 1176988, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xb7dbb000
                    madvise(0xb7dbb000, 1176988, MADV_SEQUENTIAL|0x1) = 0
                    mmap2(0xb7ed4000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x118) = 0xb7ed4000
                    mmap2(0xb7ed8000, 9628, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7ed8000
                    close(3) = 0
                    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7dba000
                    set_thread_area({entry_number:-1 -> 6, base_addr:0xb7dba8c0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
                    mprotect(0xb7ed4000, 8192, PROT_READ) = 0
                    munmap(0xb7f03000, 166412) = 0
                    brk(0) = 0x80b1000
                    brk(0x80d2000) = 0x80d2000
                    open("/etc/zabbix/zabbix_agentd.conf", O_RDONLY) = 3
                    fstat64(3, {st_mode=S_IFREG|0755, st_size=1170, ...}) = 0
                    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f2b000
                    read(3, "# This is config file for zabbix"..., 4096) = 1170
                    read(3, "", 4096) = 0
                    pipe([4, 5]) = 0
                    clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGC HLD, child_tidptr=0xb7dba908) = 30068
                    close(5) = 0
                    fstat64(4, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
                    mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f2a000
                    read(4, "streaming-holzer\n", 4096) = 17
                    read(4, "", 4096) = 0
                    --- SIGCHLD (Child exited) @ 0 (0) ---
                    close(4) = 0
                    waitpid(30068, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 30068
                    munmap(0xb7f2a000, 4096) = 0
                    exit_group(1) = ?
                    Process 30067 detached

                    Comment

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

                      #11
                      It seems (not sure) that somethis is wrong with your configuration file. May I ask you to try to use standard one from misc/conf/zabbix_server.conf?
                      Alexei Vladishev
                      Creator of Zabbix, Product manager
                      New York | Tokyo | Riga
                      My Twitter

                      Comment

                      • roli8200
                        Junior Member
                        • Aug 2006
                        • 15

                        #12
                        Strace with fork follow 1

                        Sorry forgot that zabbix_agentd makes a fork. Here the complete strace:

                        [pid 30094] close(5) = 0
                        [pid 30094] fstat64(4, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
                        [pid 30094] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7ee5000
                        [pid 30094] read(4, <unfinished ...>
                        [pid 30095] close(4) = 0
                        [pid 30095] dup2(5, 1) = 1
                        [pid 30095] close(5) = 0
                        [pid 30095] execve("/bin/sh", ["sh", "-c", "hostname"], [/* 72 vars */]) = 0
                        [pid 30095] brk(0) = 0x80c8000
                        [pid 30095] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f57000
                        [pid 30095] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
                        [pid 30095] open("/etc/ld.so.cache", O_RDONLY) = 4
                        [pid 30095] fstat64(4, {st_mode=S_IFREG|0644, st_size=166412, ...}) = 0
                        [pid 30095] mmap2(NULL, 166412, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7f2e000
                        [pid 30095] close(4) = 0
                        [pid 30095] open("/lib/libreadline.so.5", O_RDONLY) = 4
                        [pid 30095] read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\3 20\273"..., 512) = 512
                        [pid 30095] fstat64(4, {st_mode=S_IFREG|0755, st_size=189436, ...}) = 0
                        [pid 30095] mmap2(NULL, 191300, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0xb7eff000
                        [pid 30095] madvise(0xb7eff000, 191300, MADV_SEQUENTIAL|0x1) = 0
                        [pid 30095] mmap2(0xb7f29000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x2a) = 0xb7f29000
                        [pid 30095] mmap2(0xb7f2d000, 2884, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f2d000
                        [pid 30095] close(4) = 0
                        [pid 30095] open("/lib/libhistory.so.5", O_RDONLY) = 4
                        [pid 30095] read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\2 0\30\0"..., 512) = 512
                        [pid 30095] fstat64(4, {st_mode=S_IFREG|0755, st_size=26696, ...}) = 0
                        [pid 30095] mmap2(NULL, 25216, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0xb7ef8000
                        [pid 30095] madvise(0xb7ef8000, 25216, MADV_SEQUENTIAL|0x1) = 0
                        [pid 30095] mmap2(0xb7efe000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x6) = 0xb7efe000
                        [pid 30095] close(4) = 0
                        [pid 30095] open("/lib/libncurses.so.5", O_RDONLY) = 4
                        [pid 30095] read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0@\ 366\0"..., 512) = 512
                        [pid 30095] fstat64(4, {st_mode=S_IFREG|0755, st_size=288188, ...}) = 0
                        [pid 30095] mmap2(NULL, 288900, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0xb7eb1000
                        [pid 30095] madvise(0xb7eb1000, 288900, MADV_SEQUENTIAL|0x1) = 0
                        [pid 30095] mmap2(0xb7eec000, 45056, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x3a) = 0xb7eec000
                        [pid 30095] mmap2(0xb7ef7000, 2180, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7ef7000
                        [pid 30095] close(4) = 0
                        [pid 30095] open("/lib/libdl.so.2", O_RDONLY) = 4
                        [pid 30095] read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0p\ f\0\000"..., 512) = 512
                        [pid 30095] fstat64(4, {st_mode=S_IFREG|0755, st_size=13814, ...}) = 0
                        [pid 30095] mmap2(NULL, 12412, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0xb7ead000
                        [pid 30095] madvise(0xb7ead000, 12412, MADV_SEQUENTIAL|0x1) = 0
                        [pid 30095] mmap2(0xb7eaf000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x1) = 0xb7eaf000
                        [pid 30095] close(4) = 0
                        [pid 30095] open("/lib/libc.so.6", O_RDONLY) = 4
                        [pid 30095] read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\3 00Y\1"..., 512) = 512
                        [pid 30095] fstat64(4, {st_mode=S_IFREG|0755, st_size=1404242, ...}) = 0
                        [pid 30095] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7eac000
                        [pid 30095] mmap2(NULL, 1176988, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0xb7d8c000
                        [pid 30095] madvise(0xb7d8c000, 1176988, MADV_SEQUENTIAL|0x1) = 0
                        [pid 30095] mmap2(0xb7ea5000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x118) = 0xb7ea5000
                        [pid 30095] mmap2(0xb7ea9000, 9628, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7ea9000
                        [pid 30095] close(4) = 0
                        [pid 30095] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7d8b000
                        [pid 30095] set_thread_area({entry_number:-1 -> 6, base_addr:0xb7d8b6b0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
                        [pid 30095] mprotect(0xb7ea5000, 8192, PROT_READ) = 0
                        [pid 30095] munmap(0xb7f2e000, 166412) = 0
                        [pid 30095] rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
                        [pid 30095] open("/dev/tty", O_RDWR|O_NONBLOCK|O_LARGEFILE) = 4
                        [pid 30095] close(4) = 0
                        [pid 30095] stat64("/usr/lib/locale/locale-archive", 0xbfeba694) = -1 ENOENT (No such file or directory)
                        [pid 30095] brk(0) = 0x80c8000
                        [pid 30095] brk(0x80e9000) = 0x80e9000
                        [pid 30095] open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
                        [pid 30095] open("/usr/share/locale/locale.alias", O_RDONLY) = 4
                        [pid 30095] fstat64(4, {st_mode=S_IFREG|0644, st_size=2528, ...}) = 0
                        [pid 30095] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f56000
                        [pid 30095] read(4, "# Locale name alias data base.\n#"..., 4096) = 2528
                        [pid 30095] read(4, "", 4096) = 0
                        [pid 30095] close(4) = 0
                        [pid 30095] munmap(0xb7f56000, 4096) = 0
                        [pid 30095] open("/usr/lib/locale/de_DE.UTF-8/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
                        [pid 30095] open("/usr/lib/locale/de_DE.utf8/LC_IDENTIFICATION", O_RDONLY) = 4
                        [pid 30095] fstat64(4, {st_mode=S_IFREG|0644, st_size=375, ...}) = 0
                        [pid 30095] mmap2(NULL, 375, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7f56000
                        [pid 30095] close(4) = 0
                        [pid 30095] open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 4
                        [pid 30095] fstat64(4, {st_mode=S_IFREG|0644, st_size=25404, ...}) = 0
                        [pid 30095] mmap2(NULL, 25404, PROT_READ, MAP_SHARED, 4, 0) = 0xb7f4f000
                        [pid 30095] close(4) = 0
                        [pid 30095] open("/usr/lib/locale/de_DE.UTF-8/LC_MEASUREMENT", O_RDONLY) = -1 ENOENT (No such file or directory)
                        [pid 30095] open("/usr/lib/locale/de_DE.utf8/LC_MEASUREMENT", O_RDONLY) = 4
                        [pid 30095] fstat64(4, {st_mode=S_IFREG|0644, st_size=23, ...}) = 0
                        [pid 30095] mmap2(NULL, 23, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7f4e000
                        [pid 30095] close(4) = 0
                        [pid 30095] open("/usr/lib/locale/de_DE.UTF-8/LC_TELEPHONE", O_RDONLY) = -1 ENOENT (No such file or directory)
                        [pid 30095] open("/usr/lib/locale/de_DE.utf8/LC_TELEPHONE", O_RDONLY) = 4
                        [pid 30095] fstat64(4, {st_mode=S_IFREG|0644, st_size=56, ...}) = 0
                        [pid 30095] mmap2(NULL, 56, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7f4d000
                        [pid 30095] close(4) = 0
                        [pid 30095] open("/usr/lib/locale/de_DE.UTF-8/LC_ADDRESS", O_RDONLY) = -1 ENOENT (No such file or directory)
                        [pid 30095] open("/usr/lib/locale/de_DE.utf8/LC_ADDRESS", O_RDONLY) = 4
                        [pid 30095] fstat64(4, {st_mode=S_IFREG|0644, st_size=159, ...}) = 0
                        [pid 30095] mmap2(NULL, 159, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7f4c000
                        [pid 30095] close(4) = 0
                        [pid 30095] open("/usr/lib/locale/de_DE.UTF-8/LC_NAME", O_RDONLY) = -1 ENOENT (No such file or directory)
                        [pid 30095] open("/usr/lib/locale/de_DE.utf8/LC_NAME", O_RDONLY) = 4
                        [pid 30095] fstat64(4, {st_mode=S_IFREG|0644, st_size=83, ...}) = 0
                        [pid 30095] mmap2(NULL, 83, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7f4b000
                        [pid 30095] close(4) = 0
                        [pid 30095] open("/usr/lib/locale/de_DE.UTF-8/LC_PAPER", O_RDONLY) = -1 ENOENT (No such file or directory)
                        [pid 30095] open("/usr/lib/locale/de_DE.utf8/LC_PAPER", O_RDONLY) = 4
                        [pid 30095] fstat64(4, {st_mode=S_IFREG|0644, st_size=34, ...}) = 0
                        [pid 30095] mmap2(NULL, 34, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7f4a000
                        [pid 30095] close(4) = 0
                        [pid 30095] open("/usr/lib/locale/de_DE.UTF-8/LC_MESSAGES", O_RDONLY) = -1 ENOENT (No such file or directory)
                        [pid 30095] open("/usr/lib/locale/de_DE.utf8/LC_MESSAGES", O_RDONLY) = 4
                        [pid 30095] fstat64(4, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
                        [pid 30095] close(4) = 0
                        [pid 30095] open("/usr/lib/locale/de_DE.utf8/LC_MESSAGES/SYS_LC_MESSAGES", O_RDONLY) = 4
                        [pid 30095] fstat64(4, {st_mode=S_IFREG|0644, st_size=54, ...}) = 0
                        [pid 30095] mmap2(NULL, 54, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7f49000
                        [pid 30095] close(4) = 0
                        [pid 30095] open("/usr/lib/locale/de_DE.UTF-8/LC_MONETARY", O_RDONLY) = -1 ENOENT (No such file or directory)
                        [pid 30095] open("/usr/lib/locale/de_DE.utf8/LC_MONETARY", O_RDONLY) = 4
                        [pid 30095] fstat64(4, {st_mode=S_IFREG|0644, st_size=294, ...}) = 0
                        [pid 30095] mmap2(NULL, 294, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7f48000
                        [pid 30095] close(4) = 0
                        [pid 30095] open("/usr/lib/locale/de_DE.UTF-8/LC_COLLATE", O_RDONLY) = -1 ENOENT (No such file or directory)
                        [pid 30095] open("/usr/lib/locale/de_DE.utf8/LC_COLLATE", O_RDONLY) = 4
                        [pid 30095] fstat64(4, {st_mode=S_IFREG|0644, st_size=880086, ...}) = 0
                        [pid 30095] mmap2(NULL, 880086, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7cb4000
                        [pid 30095] close(4) = 0
                        [pid 30095] open("/usr/lib/locale/de_DE.UTF-8/LC_TIME", O_RDONLY) = -1 ENOENT (No such file or directory)
                        [pid 30095] open("/usr/lib/locale/de_DE.utf8/LC_TIME", O_RDONLY) = 4
                        [pid 30095] fstat64(4, {st_mode=S_IFREG|0644, st_size=2343, ...}) = 0
                        [pid 30095] mmap2(NULL, 2343, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7f47000

                        Comment

                        • roli8200
                          Junior Member
                          • Aug 2006
                          • 15

                          #13
                          Strace with fork follow 2

                          [pid 30095] close(4) = 0
                          [pid 30095] open("/usr/lib/locale/de_DE.UTF-8/LC_NUMERIC", O_RDONLY) = -1 ENOENT (No such file or directory)
                          [pid 30095] open("/usr/lib/locale/de_DE.utf8/LC_NUMERIC", O_RDONLY) = 4
                          [pid 30095] fstat64(4, {st_mode=S_IFREG|0644, st_size=54, ...}) = 0
                          [pid 30095] mmap2(NULL, 54, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7f46000
                          [pid 30095] close(4) = 0
                          [pid 30095] open("/usr/lib/locale/de_DE.UTF-8/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory)
                          [pid 30095] open("/usr/lib/locale/de_DE.utf8/LC_CTYPE", O_RDONLY) = 4
                          [pid 30095] fstat64(4, {st_mode=S_IFREG|0644, st_size=238624, ...}) = 0
                          [pid 30095] mmap2(NULL, 238624, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7c79000
                          [pid 30095] close(4) = 0
                          [pid 30095] getuid32() = 1002
                          [pid 30095] getgid32() = 100
                          [pid 30095] geteuid32() = 1002
                          [pid 30095] getegid32() = 100
                          [pid 30095] rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
                          [pid 30095] time(NULL) = 1156187290
                          [pid 30095] open("/proc/meminfo", O_RDONLY) = 4
                          [pid 30095] fstat64(4, {st_mode=S_IFREG|0444, st_size=0, ...}) = 0
                          [pid 30095] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f45000
                          [pid 30095] read(4, "MemTotal: 507408 kB\nMemFre"..., 1024) = 670
                          [pid 30095] close(4) = 0
                          [pid 30095] munmap(0xb7f45000, 4096) = 0
                          [pid 30095] rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
                          [pid 30095] rt_sigaction(SIGCHLD, {SIG_DFL}, {SIG_DFL}, 8) = 0
                          [pid 30095] rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0
                          [pid 30095] rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0
                          [pid 30095] rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL}, 8) = 0
                          [pid 30095] rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_DFL}, 8) = 0
                          [pid 30095] rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
                          [pid 30095] rt_sigaction(SIGQUIT, {SIG_IGN}, {SIG_DFL}, 8) = 0
                          [pid 30095] uname({sys="Linux", node="streaming-holzer", ...}) = 0
                          [pid 30095] rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
                          [pid 30095] stat64("/tmp", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=4096, ...}) = 0
                          [pid 30095] stat64(".", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=4096, ...}) = 0
                          [pid 30095] getpid() = 30095
                          [pid 30095] getppid() = 30094
                          [pid 30095] stat64(".", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=4096, ...}) = 0
                          [pid 30095] stat64("/opt/kde3/sbin/sh", 0xbfeba578) = -1 ENOENT (No such file or directory)
                          [pid 30095] stat64("/opt/gnome/sbin/sh", 0xbfeba578) = -1 ENOENT (No such file or directory)
                          [pid 30095] stat64("/root/bin/sh", 0xbfeba578) = -1 EACCES (Permission denied)
                          [pid 30095] stat64("/usr/local/bin/sh", 0xbfeba578) = -1 ENOENT (No such file or directory)
                          [pid 30095] stat64("/usr/bin/sh", 0xbfeba578) = -1 ENOENT (No such file or directory)
                          [pid 30095] stat64("/usr/X11R6/bin/sh", 0xbfeba578) = -1 ENOENT (No such file or directory)
                          [pid 30095] stat64("/bin/sh", {st_mode=S_IFREG|0755, st_size=501804, ...}) = 0
                          [pid 30095] open("/proc/sys/kernel/ngroups_max", O_RDONLY) = 4
                          [pid 30095] read(4, "65536\n", 31) = 6
                          [pid 30095] close(4) = 0
                          [pid 30095] mmap2(NULL, 266240, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7c38000
                          [pid 30095] getgroups32(65536, [16, 33, 100]) = 3
                          [pid 30095] stat64("/bin/sh", {st_mode=S_IFREG|0755, st_size=501804, ...}) = 0
                          [pid 30095] getpgrp() = 30093
                          [pid 30095] rt_sigaction(SIGCHLD, {0x80752b0, [], 0}, {SIG_DFL}, 8) = 0
                          [pid 30095] getrlimit(RLIMIT_NPROC, {rlim_cur=4031, rlim_max=4031}) = 0
                          [pid 30095] rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
                          [pid 30095] rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
                          [pid 30095] rt_sigprocmask(SIG_BLOCK, NULL, [], 8) = 0
                          [pid 30095] stat64(".", {st_mode=S_IFDIR|S_ISVTX|0777, st_size=4096, ...}) = 0
                          [pid 30095] stat64("/opt/kde3/sbin/hostname", 0xbfeba428) = -1 ENOENT (No such file or directory)
                          [pid 30095] stat64("/opt/gnome/sbin/hostname", 0xbfeba428) = -1 ENOENT (No such file or directory)
                          [pid 30095] stat64("/root/bin/hostname", 0xbfeba428) = -1 EACCES (Permission denied)
                          [pid 30095] stat64("/usr/local/bin/hostname", 0xbfeba428) = -1 ENOENT (No such file or directory)
                          [pid 30095] stat64("/usr/bin/hostname", 0xbfeba428) = -1 ENOENT (No such file or directory)
                          [pid 30095] stat64("/usr/X11R6/bin/hostname", 0xbfeba428) = -1 ENOENT (No such file or directory)
                          [pid 30095] stat64("/bin/hostname", {st_mode=S_IFREG|0755, st_size=10144, ...}) = 0
                          [pid 30095] stat64("/bin/hostname", {st_mode=S_IFREG|0755, st_size=10144, ...}) = 0
                          [pid 30095] rt_sigaction(SIGINT, {SIG_DFL}, {SIG_DFL}, 8) = 0
                          [pid 30095] rt_sigaction(SIGQUIT, {SIG_DFL}, {SIG_IGN}, 8) = 0
                          [pid 30095] rt_sigaction(SIGCHLD, {SIG_DFL}, {0x80752b0, [], 0}, 8) = 0
                          [pid 30095] execve("/bin/hostname", ["hostname"], [/* 71 vars */]) = 0
                          [pid 30095] brk(0) = 0x804b000

                          Comment

                          • roli8200
                            Junior Member
                            • Aug 2006
                            • 15

                            #14
                            Strace with fork follow 3

                            [pid 30095] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f6c000
                            [pid 30095] access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
                            [pid 30095] open("/etc/ld.so.cache", O_RDONLY) = 4
                            [pid 30095] fstat64(4, {st_mode=S_IFREG|0644, st_size=166412, ...}) = 0
                            [pid 30095] mmap2(NULL, 166412, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7f43000
                            [pid 30095] close(4) = 0
                            [pid 30095] open("/lib/libc.so.6", O_RDONLY) = 4
                            [pid 30095] read(4, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\3 00Y\1"..., 512) = 512
                            [pid 30095] fstat64(4, {st_mode=S_IFREG|0755, st_size=1404242, ...}) = 0
                            [pid 30095] mmap2(NULL, 1176988, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 4, 0) = 0xb7e23000
                            [pid 30095] madvise(0xb7e23000, 1176988, MADV_SEQUENTIAL|0x1) = 0
                            [pid 30095] mmap2(0xb7f3c000, 16384, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 4, 0x118) = 0xb7f3c000
                            [pid 30095] mmap2(0xb7f40000, 9628, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xb7f40000
                            [pid 30095] close(4) = 0
                            [pid 30095] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7e22000
                            [pid 30095] set_thread_area({entry_number:-1 -> 6, base_addr:0xb7e226b0, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
                            [pid 30095] mprotect(0xb7f3c000, 8192, PROT_READ) = 0
                            [pid 30095] munmap(0xb7f43000, 166412) = 0
                            [pid 30095] brk(0) = 0x804b000
                            [pid 30095] brk(0x806c000) = 0x806c000
                            [pid 30095] open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
                            [pid 30095] open("/usr/share/locale/locale.alias", O_RDONLY) = 4
                            [pid 30095] fstat64(4, {st_mode=S_IFREG|0644, st_size=2528, ...}) = 0
                            [pid 30095] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f6b000
                            [pid 30095] read(4, "# Locale name alias data base.\n#"..., 4096) = 2528
                            [pid 30095] read(4, "", 4096) = 0
                            [pid 30095] close(4) = 0
                            [pid 30095] munmap(0xb7f6b000, 4096) = 0
                            [pid 30095] open("/usr/lib/locale/de_DE.UTF-8/LC_IDENTIFICATION", O_RDONLY) = -1 ENOENT (No such file or directory)
                            [pid 30095] open("/usr/lib/locale/de_DE.utf8/LC_IDENTIFICATION", O_RDONLY) = 4
                            [pid 30095] fstat64(4, {st_mode=S_IFREG|0644, st_size=375, ...}) = 0
                            [pid 30095] mmap2(NULL, 375, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7f6b000
                            [pid 30095] close(4) = 0
                            [pid 30095] open("/usr/lib/gconv/gconv-modules.cache", O_RDONLY) = 4
                            [pid 30095] fstat64(4, {st_mode=S_IFREG|0644, st_size=25404, ...}) = 0
                            [pid 30095] mmap2(NULL, 25404, PROT_READ, MAP_SHARED, 4, 0) = 0xb7f64000
                            [pid 30095] close(4) = 0
                            [pid 30095] open("/usr/lib/locale/de_DE.UTF-8/LC_MEASUREMENT", O_RDONLY) = -1 ENOENT (No such file or directory)
                            [pid 30095] open("/usr/lib/locale/de_DE.utf8/LC_MEASUREMENT", O_RDONLY) = 4
                            [pid 30095] fstat64(4, {st_mode=S_IFREG|0644, st_size=23, ...}) = 0
                            [pid 30095] mmap2(NULL, 23, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7f63000
                            [pid 30095] close(4) = 0
                            [pid 30095] open("/usr/lib/locale/de_DE.UTF-8/LC_TELEPHONE", O_RDONLY) = -1 ENOENT (No such file or directory)
                            [pid 30095] open("/usr/lib/locale/de_DE.utf8/LC_TELEPHONE", O_RDONLY) = 4
                            [pid 30095] fstat64(4, {st_mode=S_IFREG|0644, st_size=56, ...}) = 0
                            [pid 30095] mmap2(NULL, 56, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7f62000
                            [pid 30095] close(4) = 0
                            [pid 30095] open("/usr/lib/locale/de_DE.UTF-8/LC_ADDRESS", O_RDONLY) = -1 ENOENT (No such file or directory)
                            [pid 30095] open("/usr/lib/locale/de_DE.utf8/LC_ADDRESS", O_RDONLY) = 4
                            [pid 30095] fstat64(4, {st_mode=S_IFREG|0644, st_size=159, ...}) = 0
                            [pid 30095] mmap2(NULL, 159, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7f61000
                            [pid 30095] close(4) = 0
                            [pid 30095] open("/usr/lib/locale/de_DE.UTF-8/LC_NAME", O_RDONLY) = -1 ENOENT (No such file or directory)
                            [pid 30095] open("/usr/lib/locale/de_DE.utf8/LC_NAME", O_RDONLY) = 4
                            [pid 30095] fstat64(4, {st_mode=S_IFREG|0644, st_size=83, ...}) = 0
                            [pid 30095] mmap2(NULL, 83, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7f60000
                            [pid 30095] close(4) = 0
                            [pid 30095] open("/usr/lib/locale/de_DE.UTF-8/LC_PAPER", O_RDONLY) = -1 ENOENT (No such file or directory)
                            [pid 30095] open("/usr/lib/locale/de_DE.utf8/LC_PAPER", O_RDONLY) = 4
                            [pid 30095] fstat64(4, {st_mode=S_IFREG|0644, st_size=34, ...}) = 0
                            [pid 30095] mmap2(NULL, 34, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7f5f000
                            [pid 30095] close(4) = 0
                            [pid 30095] open("/usr/lib/locale/de_DE.UTF-8/LC_MESSAGES", O_RDONLY) = -1 ENOENT (No such file or directory)
                            [pid 30095] open("/usr/lib/locale/de_DE.utf8/LC_MESSAGES", O_RDONLY) = 4
                            [pid 30095] fstat64(4, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
                            [pid 30095] close(4) = 0
                            [pid 30095] open("/usr/lib/locale/de_DE.utf8/LC_MESSAGES/SYS_LC_MESSAGES", O_RDONLY) = 4
                            [pid 30095] fstat64(4, {st_mode=S_IFREG|0644, st_size=54, ...}) = 0
                            [pid 30095] mmap2(NULL, 54, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7f5e000
                            [pid 30095] close(4) = 0
                            [pid 30095] open("/usr/lib/locale/de_DE.UTF-8/LC_MONETARY", O_RDONLY) = -1 ENOENT (No such file or directory)
                            [pid 30095] open("/usr/lib/locale/de_DE.utf8/LC_MONETARY", O_RDONLY) = 4
                            [pid 30095] fstat64(4, {st_mode=S_IFREG|0644, st_size=294, ...}) = 0
                            [pid 30095] mmap2(NULL, 294, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7f5d000
                            [pid 30095] close(4) = 0
                            [pid 30095] open("/usr/lib/locale/de_DE.UTF-8/LC_COLLATE", O_RDONLY) = -1 ENOENT (No such file or directory)
                            [pid 30095] open("/usr/lib/locale/de_DE.utf8/LC_COLLATE", O_RDONLY) = 4
                            [pid 30095] fstat64(4, {st_mode=S_IFREG|0644, st_size=880086, ...}) = 0
                            [pid 30095] mmap2(NULL, 880086, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7d4b000
                            [pid 30095] close(4) = 0
                            [pid 30095] open("/usr/lib/locale/de_DE.UTF-8/LC_TIME", O_RDONLY) = -1 ENOENT (No such file or directory)
                            [pid 30095] open("/usr/lib/locale/de_DE.utf8/LC_TIME", O_RDONLY) = 4
                            [pid 30095] fstat64(4, {st_mode=S_IFREG|0644, st_size=2343, ...}) = 0
                            [pid 30095] mmap2(NULL, 2343, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7f5c000
                            [pid 30095] close(4) = 0
                            [pid 30095] open("/usr/lib/locale/de_DE.UTF-8/LC_NUMERIC", O_RDONLY) = -1 ENOENT (No such file or directory)
                            [pid 30095] open("/usr/lib/locale/de_DE.utf8/LC_NUMERIC", O_RDONLY) = 4
                            [pid 30095] fstat64(4, {st_mode=S_IFREG|0644, st_size=54, ...}) = 0
                            [pid 30095] mmap2(NULL, 54, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7f5b000
                            [pid 30095] close(4) = 0
                            [pid 30095] open("/usr/lib/locale/de_DE.UTF-8/LC_CTYPE", O_RDONLY) = -1 ENOENT (No such file or directory)
                            [pid 30095] open("/usr/lib/locale/de_DE.utf8/LC_CTYPE", O_RDONLY) = 4
                            [pid 30095] fstat64(4, {st_mode=S_IFREG|0644, st_size=238624, ...}) = 0
                            [pid 30095] mmap2(NULL, 238624, PROT_READ, MAP_PRIVATE, 4, 0) = 0xb7d10000
                            [pid 30095] close(4) = 0
                            [pid 30095] uname({sys="Linux", node="streaming-holzer", ...}) = 0
                            [pid 30095] fstat64(1, {st_mode=S_IFIFO|0600, st_size=0, ...}) = 0
                            [pid 30095] mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7f5a000
                            [pid 30095] write(1, "streaming-holzer\n", 17 <unfinished ...>
                            [pid 30094] <... read resumed> "streaming-holzer\n", 4096) = 17
                            [pid 30095] <... write resumed> ) = 17
                            [pid 30094] read(4, <unfinished ...>
                            [pid 30095] exit_group(0) = ?
                            Process 30095 detached
                            <... read resumed> "", 4096) = 0
                            --- SIGCHLD (Child exited) @ 0 (0) ---
                            close(4) = 0
                            waitpid(30095, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0) = 30095
                            munmap(0xb7ee5000, 4096) = 0
                            exit_group(1) = ?
                            Process 30094 detached

                            Comment

                            • denso
                              Member
                              • Sep 2005
                              • 32

                              #15
                              I can't really see anything that sticks out in your strace, did you try what alexi asked of you?? take the default config of zabbix_agentd.conf and alter the server ip addess and the tmp files from /var/tmp to /tmp and see if it starts.

                              Comment

                              Working...