Ad Widget

Collapse

Zabbix in Freebsd?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • francisco07
    Junior Member
    • Mar 2007
    • 11

    #1

    Zabbix in Freebsd?

    After not getting very far with my Zabbix installation I asked for help to a co-worker.
    He got zabbix to work on a linux machine (Mandriva) easily, but we had problems when trying to get it to work in FreeBSD.

    First:
    Should we be using agent, or agentd? He used "agent" on his installation but from what I see in the manual it seems agentd is what I should be running.
    It seems agent, needs inetd

    Second:
    Are the default settings for unix_t usable with FreeBSD?
    By default I see a lot of options marked as not usable (dont' recall exact wording). Trying to make it "active" did not help.

    For example the monitoring for "space in /" I would expect to work by default, but it was not active by default.

    When I go into configuration hosts the one test machine I am trying says "monitored" and "available" yet the last check date is days back.

    For instance right now I don't have agentd running yet the zabbix interface still says "monitored" and "available".

    Anyone has Zabbix working with FreeBSD?
  • server-specialists
    Junior Member
    • Mar 2007
    • 14

    #2
    I have agentd working on countless freebsd machines, 5.4 and 6.1

    I used the ports collection to install the agent, configured it and it fired right up. Some of the items in the unix_t template do not work, either the OS is not supporting the format of the check or the item being checked is not located in the same spot or is not used in the OS.

    If you need help installing the agentd to monitor a freebsd machine, install from ports and configure. It was simple.

    Comment

    • James Wells
      Senior Member
      • Jun 2005
      • 664

      #3
      Greetings,
      Originally posted by server-specialists
      I have agentd working on countless freebsd machines, 5.4 and 6.1
      Would you be willing to write up a wiki page on using port to install Zabbix please?
      Unofficial Zabbix Developer

      Comment

      • francisco07
        Junior Member
        • Mar 2007
        • 11

        #4
        Does zabbix has any problems with postgresql?
        While looking at the logs to see what was happening I noticed the zabbix server was dying not been able to connect to the postgresql database.

        A co-worker told me maybe it was because the password had "^".
        Took off that character from the password and now the server dies at:
        035797:20070405:173516 Query::select distinct t.triggerid,t.expression,t.description,t.status,t. priority,t.value,t.url,t.comments from triggers t,functions f,items i where i.status<>3 and i.itemid=f.itemid and t.status=0 and f.triggerid=t.triggerid and f.itemid=18126
        035797:20070405:173516 Query failed:PGRES_FATAL_ERROR:could not receive data from server: Operation timed out

        035792:20070405:173516 One server process died. Shutting down...
        035793:20070405:173516 Server [1]. Got QUIT or INT or TERM or PIPE signal. Exiting...
        035792:20070405:173516 0. Killing PID=[35793]
        035794:20070405:173516 Server [2]. Got QUIT or INT or TERM or PIPE signal. Exiting...
        035792:20070405:173516 1. Killing PID=[35794]
        035795:20070405:173516 Server [3]. Got QUIT or INT or TERM or PIPE signal. Exiting...
        035792:20070405:173516 2. Killing PID=[35795]
        035796:20070405:173516 Server [4]. Got QUIT or INT or TERM or PIPE signal. Exiting...
        035792:20070405:173516 3. Killing PID=[35796]
        035792:20070405:173516 4. Killing PID=[35797]
        035798:20070405:173516 Server [6]. Got QUIT or INT or TERM or PIPE signal. Exiting...
        035792:20070405:173516 5. Killing PID=[35798]
        035799:20070405:173516 Server [7]. Got QUIT or INT or TERM or PIPE signal. Exiting...
        035792:20070405:173516 6. Killing PID=[35799]
        035792:20070405:173516 ZABBIX server is down.

        I am able to do that query from the server machine connecting to the database server with the same parameters that the server configuration file has.


        Everything installed from ports.
        FreeBSD 6.2
        Port version of Zabbix zabbix-1.1.6_1,1

        Comment

        • francisco07
          Junior Member
          • Mar 2007
          • 11

          #5
          Another update.
          My co-worker had installed Zabbix server on a Linux machine..
          We just pointed the test agent I have been using to the linux server and the client reported information.

          So it seems the problem I am having is just with the server.

          We need the server to be in the FreeBSD machine for production.

          Comment

          • DiedX
            Senior Member
            • Oct 2004
            • 106

            #6
            I installed zabbix on 6.2 from source, and everything works like a charm. I don't use the default templates.
            https://www.diederik.nl

            Comment

            • francisco07
              Junior Member
              • Mar 2007
              • 11

              #7
              Originally posted by DiedX
              I installed zabbix on 6.2 from source
              Using mysql or postgresql?

              Comment

              Working...