Ad Widget

Collapse

I can't stop zabbix_agentd Solaris 10

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Epiliptik
    Junior Member
    • Sep 2011
    • 13

    #1

    I can't stop zabbix_agentd Solaris 10

    Hello,

    I installed pre-compiled zabbix_agentd on solaris10 i can start the agent but when i want to stop the agent with "./zabbix_agentd stop" nothing happened but in the log file :

    zabbix_agentd [20740]: File [/home/zabbix/zabbix_agentd.pid] exists and is locked. Is this process already running?
    zabbix_agentd [20740]: ERROR: File [/home/zabbix/zabbix_agentd.pid] exists and is locked. Is this process already running?


    I tried to change rights of zabbix_agentd.pid or the location in zabbix_agentd.conf but always the same problem...
  • Davidus
    Senior Member
    • Dec 2010
    • 281

    #2
    How are you trying to stop agent? What command are you exactly using?

    Comment

    • Epiliptik
      Junior Member
      • Sep 2011
      • 13

      #3
      I tried with ./zabbix_agentd stop or ./zabbix_agentd restart but it doesn't work, obviously with "kill -9 pid" it works but it is not the goal...

      Comment

      • Davidus
        Senior Member
        • Dec 2010
        • 281

        #4
        try
        svcadm restart zabbix_agentd

        or
        svcadm disable zabbix_agentd
        svcadm enable zabbix_agentd

        Comment

        • Epiliptik
          Junior Member
          • Sep 2011
          • 13

          #5
          I got:

          svcadm: Pattern zabbix_agentd doesn't match any instances

          Apparently I need to add a xml file in /var/svc, do I need to create this xml file? Or is there a command to create it automaticaly?

          Comment

          • Davidus
            Senior Member
            • Dec 2010
            • 281

            #6
            I`m using zabbix 1.8.4 on RHEL 5.5
            The files I placed under init.d I found under directory /misc/init.d

            [root@mons1 /]# ls -l /usr/zabbix-1.8.4/misc/init.d/redhat/8.0/
            -rw-r--r-- 1 1001 1001 1724 Jan 4 2011 zabbix_agentd
            -rw-r--r-- 1 1001 1001 1583 Jan 4 2011 zabbix_server

            Which release of zabbix are you using?

            Comment

            • Epiliptik
              Junior Member
              • Sep 2011
              • 13

              #7
              I'm using ZAbbix 1.8.8 on SOlaris 10, on solaris "svcadm" doesn't detect files in /etc/init.d!

              I'm not sure but I think it doesn't work like RHEL, according to this link http://wikisec.free.fr/solaris/sysadm.html
              in order to use "svcadm" i need to create a xml file: otherwise zabbix_agentd is not detected!

              In order to install zabbix_agentd:
              - I put binaries (zabbix_agentd, etc.) in /etc/init.d
              - A copy of zabbix_agentd.conf (with my own parameters) in /etc/zabbix
              - I created zabbix user, i gave the rights

              and it works (i can monitor something but i can't stop the agent), did i miss something?

              I'm not very familiar with solaris...

              Comment

              • Davidus
                Senior Member
                • Dec 2010
                • 281

                #8
                It seems that zabbix binaries doesn’t come with files you need; in my case I found necessary files under zabbix-1.8.4/misc/init.d/redhat/8.0/
                Therefore, you have to create those xml files by yourself; unfortunately, I`m not familiar with Solaris at all, everything I know about Solaris I know from google never used one in real life...

                Comment

                • Epiliptik
                  Junior Member
                  • Sep 2011
                  • 13

                  #9
                  I compared with zabbix_agentd on CentOS and there is the same problem if i don't use the script in: misc/init.d/redhat/8.0/zabbix_agentd

                  I think i confounded the script and the binary (same name^^)!

                  I can't start and stop it with the binary file in /usr/local/bin, i need to use the script!

                  Actually the script for Solaris is missing, i will try to create a simple script and it should works!

                  Comment

                  Working...