Ad Widget

Collapse

how to convert zabbix source into .pkg

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kamran
    Junior Member
    • Jun 2007
    • 7

    #1

    how to convert zabbix source into .pkg

    hello
    Can anyone tell me, how to convert zabbix source into .pkg (pakacge) for installation of zabbix on solaris, coz i have hardened solaris and zabbix having c liabraries and want to install zabbix client on solaris for monitoring.

    thanks & regards
    kamran
  • Tenzer
    Senior Member
    • Nov 2007
    • 316

    #2
    I haven't tried to create a Solaris package, but I have found the following guide which seems pretty extensive: http://www.sunfreeware.com/pkgadd.html

    Comment

    • bbrendon
      Senior Member
      • Sep 2005
      • 870

      #3
      Please make your packages available. I would love a solaris package.
      Unofficial Zabbix Expert
      Blog, Corporate Site

      Comment

      • kamran
        Junior Member
        • Jun 2007
        • 7

        #4
        zabbix service not running

        hi
        thanks Tenzer, i m successful and checked new package on full installed solaris 10 and it is working well but one thing more, i told you that i have minimized the solaris and when i run this package on minimized solaris then in the last at starting service it occur an error. which i paste here. can u help me that zabbix service dependent on which packages of solaris or linux.

        root@test28 # ./zabbix_agentd_ctl start
        ./zabbix_agentd_ctl: /opt/zabbix/bin/zabbix_agentd: cannot execute
        ./zabbix_agentd_ctl start: zabbix_agentd could not be started

        Thanks & Regards,
        Kamran
        Last edited by kamran; 18-12-2008, 08:24.

        Comment

        • Tenzer
          Senior Member
          • Nov 2007
          • 316

          #5
          At first glance it could seem like /opt/zabbix/bin/zabbix_agentd doesn't have the execute permissions set, could you check that?
          Also, you can use ldd to check if the agent has all required libraries on the system by running "ldd /opt/zabbix/bin/zabbix_agentd".

          Comment

          • kamran
            Junior Member
            • Jun 2007
            • 7

            #6
            hi
            Thanks Tenzer for your kind response, yes i have change permission to 755 on opt/zabbix/bin/zabbix_agentd also and run the command which you advise me and the output i am pasting here. please advice. thanks.
            root@test28 # ldd /opt/zabbix/bin/zabbix_agentd
            ldd: /opt/zabbix/bin/zabbix_agentd: has wrong class or data encoding

            Thanks & Regards
            kamran

            Comment

            • Tenzer
              Senior Member
              • Nov 2007
              • 316

              #7
              Hmm, are you sure that the file is an binary file? Try to check it with the "file" command.

              Comment

              • kamran
                Junior Member
                • Jun 2007
                • 7

                #8
                yes sir, i have checked and the output i m pasting here, please check.

                root@test28 # file /opt/zabbix/bin/zabbix_agentd
                /opt/zabbix/bin/zabbix_agentd: ELF 32-bit LSB executable 80386 Version 1, dynamically linked, not stripped


                Thanks & Regards
                kamran

                Comment

                • Tenzer
                  Senior Member
                  • Nov 2007
                  • 316

                  #9
                  That sounds very odd, I don't really know what to try from here. For your comparison, here are the informations I get when I try the same on our SPARC Solaris server:

                  Code:
                  # file /opt/zabbix/sbin/zabbix_agentd
                  /opt/zabbix/sbin/zabbix_agentd: ELF 32-bit MSB executable SPARC Version 1, dynamically linked, not stripped
                  # ldd /opt/zabbix/sbin/zabbix_agentd
                          libkvm.so.1 =>   /usr/lib/libkvm.so.1
                          libm.so.2 =>     /lib/libm.so.2
                          libresolv.so.2 =>        /lib/libresolv.so.2
                          libnsl.so.1 =>   /lib/libnsl.so.1
                          libkstat.so.1 =>         /lib/libkstat.so.1
                          libsocket.so.1 =>        /lib/libsocket.so.1
                          libpthread.so.1 =>       /lib/libpthread.so.1
                          libc.so.1 =>     /lib/libc.so.1
                          libelf.so.1 =>   /lib/libelf.so.1
                          libmp.so.2 =>    /lib/libmp.so.2
                          libmd.so.1 =>    /lib/libmd.so.1
                          libscf.so.1 =>   /lib/libscf.so.1
                          libdoor.so.1 =>  /lib/libdoor.so.1
                          libuutil.so.1 =>         /lib/libuutil.so.1
                          libgen.so.1 =>   /lib/libgen.so.1
                          /platform/SUNW,SPARC-Enterprise-T5120/lib/libc_psr.so.1
                          /platform/SUNW,SPARC-Enterprise-T5120/lib/libmd_psr.so.1
                  As you can see, the commands work just fine here...

                  Comment

                  • kamran
                    Junior Member
                    • Jun 2007
                    • 7

                    #10
                    Thank you so much Tenzer for your kind help and guiding me. actually there was a user id problem exist in between sunray user id and zabbix user id. And finaly zabbix agent service are running successfully. Thanks again. In future if i have any problem with zabbix i will contact you.


                    Thanks & Regards,
                    Kamran

                    Comment

                    Working...