Ad Widget

Collapse

How do I configure Zabbix to monitor the file systems I want?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #16
    Originally posted by rcollier
    I'm wondering if I should just remove the agent files I currently have and just start clean. I'm having an issue with Zabbix front end picking up the new 2.0.8 agent.

    If I wanted to remove the current agent I have, what would be the best method to do? Should I simply just remove the current directories that I have and just unzip the 2.0.6 agent files and configure the conf file?
    It is not going to pick up the version change immediately. That is an "item" just like everything else in Zabbix and has an update interval. Mine is set at 3600, I believe, so any version changes take an hour to show in the frontend.

    Just rename your old agent binary to something like zabbix_agentd.old and put your new binary in the same folder as the old binary.

    Do the same thing for your conf file... rename it to something like zabbix_agentd.conf.old and put your new conf into place.

    Restart your agent.

    Comment

    • rcollier
      Member
      • Sep 2013
      • 53

      #17
      Thanks for your help!

      I hope you don't mind one more stupid question! The method I used to install the 1.6 agents found here has me running a script(I think?) /etc/rc.d/init.d/zabbix_agentd start to start the zabbix server. How else do I go about starting and stopping the service? I'm curious because I'm not going to install the 1.6 agents on our other servers, I'm just going to go straight to 2.0.6.

      Comment

      • tchjts1
        Senior Member
        • May 2008
        • 1605

        #18
        Originally posted by rcollier
        Thanks for your help!

        I hope you don't mind one more stupid question! The method I used to install the 1.6 agents found here has me running a script(I think?) /etc/rc.d/init.d/zabbix_agentd start to start the zabbix server. How else do I go about starting and stopping the service? I'm curious because I'm not going to install the 1.6 agents on our other servers, I'm just going to go straight to 2.0.6.
        You can start a Zabbix agent with the command line. For me, my binary is in /opt/zabbix/sbin and my conf file is in /opt/zabbix/conf, so my command to start it is:

        /opt/zabbix/sbin/zabbix_agentd -c /opt/zabbix/conf/zabbix_agentd.conf

        Comment

        • rcollier
          Member
          • Sep 2013
          • 53

          #19
          Any idea why I'm getting this error?

          Code:
          Could not load program /opt/zabbix/sbin/zabbix_agentd:
                  The s_scnptr or s_size field of the
                    .loader section header is invalid.
          Examine file headers with the 'dump -ohv' command.
          My binary file is in /opt/zabbix/sbin/zabbix_agentd and my conf file is in /opt/zabbix/conf/zabbix_agentd.conf

          I'm running
          Code:
          /opt/zabbix/sbin/zabbix_agentd -c /opt/zabbix/conf/zabbix_agentd.conf

          Comment

          • rcollier
            Member
            • Sep 2013
            • 53

            #20
            I want to ensure that I am installing the zabbix agent correctly.

            1. I downloaded the source file for 2.0.6 for the AIX agent on the zabbix download page.
            2. I created a host through the zabbix UI
            3. I unziped that file and moved the sbin and conf directories to /opt/zabbix/

            /opt/zabbix/sbin for the binary
            /opt/zabbix/conf for the conf files.

            I configured the zabbix_agentd.conf file.

            I went to start the zabbix agent by typing the following command:

            /opt/zabbix/sbin/zabbix_agentd -c /opt/zabbix/conf/zabbix_agentd.conf

            When I hit the return key I don't get any indication that the agent has started. I did a topas to see if the zabbix agent was running but I did not see it on the list. This has been one major headache after another for me. I'm not sure what to do next?
            Last edited by rcollier; 10-09-2013, 01:30.

            Comment

            • rcollier
              Member
              • Sep 2013
              • 53

              #21
              I think I found out why I was getting that error. The zabbix_agentd binary was getting corrupted during the FTP transfer.

              Comment

              • tchjts1
                Senior Member
                • May 2008
                • 1605

                #22
                So it is working for you now?

                We don't have AIX where I currently work, but we did at my previous employer... it was not a lot of fun managing Zabbix agents on them.

                The kernel differences between even the minor AIX version changes required us to custom-compile the agent way more often than I cared to do.

                Maybe they have overcome that in the 2.x release, but back in 1.8.2 you can see where it was necessary to accommodate these sub-version differences with multiple agents:
                Attached Files

                Comment

                • rcollier
                  Member
                  • Sep 2013
                  • 53

                  #23
                  Hey tchjts1,

                  I want to thank you for being so patient and offering as much help as you did.

                  I'm happy to report that all my agents are reporting normally now and that the filesystems I need are showing.

                  Thanks a lot!

                  Comment

                  • tchjts1
                    Senior Member
                    • May 2008
                    • 1605

                    #24
                    Excellent. Glad it is working for you.

                    Now if you go to Monitoring --> Graphs and select whatever host you wish to look at, you will see pre-made graphs for traffic In/Out across your interfaces.

                    Comment

                    Working...