Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Zabbix Client

    pfSense Packages
    10
    35
    25.7k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S
      sullrich
      last edited by

      @Remco:

      Ok, the first beta version if available. Please test it and let me know if you've got issues or requests. Because we don't have the package on the server right now, we have to register the package manual:

      • first install the zabbix-client package from within the shell:
      pkg_add -r http://ftp.nl.freebsd.org/pub/FreeBSD/ports/packages/All/zabbix-agent-1.4.1,1.tbz
      
      • next download http://www.redfive.biz/downloads/~rverhoef/zabbix-agent.xml and put it in /usr/local/pkg/

      • open a pfSense PHP Shell (/usr/local/sbin/pfSsh.php) and execute the following commands to register the package:

      
      pfSense shell> $pkg_interface='console';
      pfSense shell> install_package('zabbix-agent');
      
      

      Have fun!

      Nice work!!

      1 Reply Last reply Reply Quote 0
      • E
        epsilon
        last edited by

        Whelp I've probably done something wrong. After I did every thing you said I see nothing in the web interface for configuring the zabbix agent. And i don't see it under installed packages either.

        1 Reply Last reply Reply Quote 0
        • E
          epsilon
          last edited by

          ok could be me again,
          i got the zabbix client to run form the command line by editing one of the zabbix_agentd.conf.sample
          then running /usr/local/bin/zabbix_agentd -c /usr/local/etc/zabbix/zabbix_agentd.conf

          so i looked at the xml file (i'm no package editor)
          but it looks like in some places its calling the rc file zabbix_agent.sh but in the rc folder its called zabbix_agent
          and when i installed it only made about 1/2 the folders never made the .conf file and a few other things.

          again i could of messed up something form the start.

          1 Reply Last reply Reply Quote 0
          • R
            Remco
            last edited by

            The zabbixagent_conf file and the zabbix_agent.sh are created during the installation process in the php shell. Did you get any messages during the execution of the:

            
            pfSense shell> $pkg_interface='console';
            pfSense shell> install_package('zabbix-agent');
            
            

            Can you verify you copied the xml to /usr/local/pkg/ correctly?

            Thanks,

            Remco

            1 Reply Last reply Reply Quote 0
            • E
              epsilon
              last edited by

              yes copied it in there used fetch to get it from your server and placed it right in there.
              and no messages the first time i ran it and the 2nd time it said its already installed.

              1 Reply Last reply Reply Quote 0
              • E
                epsilon
                last edited by

                I just installed on a 2nd firewall

                Enter an option: 8
                
                # pkg_add -r http://ftp.nl.freebsd.org/pub/FreeBSD/ports/packages/All/zabbix-agent-1.4.1,1.tbz
                Fetching http://ftp.nl.freebsd.org/pub/FreeBSD/ports/packages/All/zabbix-agent-1.4.1,1.tbz... Done.
                Added group "zabbix".
                Added user "zabbix".
                # cd /usr/local/pkg/
                # fetch http://www.redfive.biz/downloads/~rverhoef/zabbix-agent.xml
                zabbix-agent.xml                              100% of 5668  B   45 kBps
                # /usr/local/sbin/pfSsh.php
                
                Starting the pfSense shell system...............
                
                Type "help" to show common usage scnenarios.
                
                pfSense shell> $pkg_interface='console';
                
                pfSense shell> install_package('zabbix-agent');
                
                Beginning package installation for ...
                
                pfSense shell> exit
                
                #
                
                

                and same thing, dosnt show up in the web interface.

                1 Reply Last reply Reply Quote 0
                • Y
                  yoda715
                  last edited by

                  @epsilon:

                  I just installed on a 2nd firewall

                  Enter an option: 8
                  
                  # pkg_add -r http://ftp.nl.freebsd.org/pub/FreeBSD/ports/packages/All/zabbix-agent-1.4.1,1.tbz
                  Fetching http://ftp.nl.freebsd.org/pub/FreeBSD/ports/packages/All/zabbix-agent-1.4.1,1.tbz... Done.
                  Added group "zabbix".
                  Added user "zabbix".
                  # cd /usr/local/pkg/
                  # fetch http://www.redfive.biz/downloads/~rverhoef/zabbix-agent.xml
                  zabbix-agent.xml                              100% of 5668  B   45 kBps
                  # /usr/local/sbin/pfSsh.php
                  
                  Starting the pfSense shell system...............
                  
                  Type "help" to show common usage scnenarios.
                  
                  pfSense shell> $pkg_interface='console';
                  
                  pfSense shell> install_package('zabbix-agent');
                  
                  Beginning package installation for ...
                  
                  pfSense shell> exit
                  
                  #
                  
                  

                  and same thing, dosnt show up in the web interface.

                  I experience the same issue on my 1.2 RC2 firewall.

                  1 Reply Last reply Reply Quote 0
                  • R
                    Remco
                    last edited by

                    Apparently it is not that easy to install packages manually. :-( Maybe we can ask Scott to add the code below to the pfsense package server?

                    
                     <package><name>Zabbix Agent</name> 
                      <description>Monitoring agent.</description> 
                      <category>NET</category> 
                      <config_file>http://www.pfsense.com/packages/config/zabbix-agent.xml</config_file> 
                      <version>0.1</version> 
                      <status>ALPHA</status> 
                      <required_version>1.2</required_version> 
                      <configurationfile>zabbix-agent.xml</configurationfile> 
                      <maintainer>Remco Verhoef</maintainer> 
                      <dependencies baseurl="http://ftp.nl.freebsd.org/pub/FreeBSD/ports/packages/All/"><dependency>zabbix-agent-1.4.1,1.tbz</dependency></dependencies></package> 
                    
                    

                    Don't forget to copy the http://www.redfive.biz/downloads/~rverhoef/zabbix-agent.xml to the http://www.pfsense.com/packages/config/zabbix-agent.xml.

                    Thanks,

                    Remco

                    1 Reply Last reply Reply Quote 0
                    • E
                      epsilon
                      last edited by

                      Any thing becoming of this?

                      1 Reply Last reply Reply Quote 0
                      • R
                        Remco
                        last edited by

                        Sure, Scott will place the release candidate on the package server as soon as he has got a commit client ;-). Just waiting for it, but I don't think it will take long anymore.

                        1 Reply Last reply Reply Quote 0
                        • E
                          epsilon
                          last edited by

                          cant wait.

                          btw you wouldn't happen to have a pfsense zabbix template to go along with it would you?
                          i know i can just modify the freebsd one but i guess I'm being lazy.

                          1 Reply Last reply Reply Quote 0
                          • E
                            epsilon
                            last edited by

                            hey is this dead? haven't seen an update and i cant manually install it any more either.

                            1 Reply Last reply Reply Quote 0
                            • R
                              Remco
                              last edited by

                              Sorry, but I cannot put it onto the package server. The link to download the package self is still working, this is the code for in the package xml:

                              
                               <package><name>Zabbix Agent</name>
                              	<description>Monitoring agent.</description>
                              	<category>NET</category>
                              	<config_file>http://www.pfsense.com/packages/config/zabbix-agent.xml</config_file>
                              	<version>0.1</version>
                              	<status>ALPHA</status>
                              	<required_version>1.2</required_version>
                              	<configurationfile>zabbix-agent.xml</configurationfile>
                              	<maintainer>Remco Verhoef</maintainer>
                              	 <dependencies baseurl="http://ftp.nl.freebsd.org/pub/FreeBSD/ports/packages/All/"><dependency>zabbix-agent-1.4.1,1.tbz</dependency></dependencies></package> 
                              
                              
                              1 Reply Last reply Reply Quote 0
                              • E
                                epsilon
                                last edited by

                                @Remco:

                                Sorry, but I cannot put it onto the package server. The link to download the package self is still working, this is the code for in the package xml:

                                
                                 <package><name>Zabbix Agent</name>
                                	<description>Monitoring agent.</description>
                                	<category>NET</category>
                                	<config_file>http://www.pfsense.com/packages/config/zabbix-agent.xml</config_file>
                                	<version>0.1</version>
                                	<status>ALPHA</status>
                                	<required_version>1.2</required_version>
                                	<configurationfile>zabbix-agent.xml</configurationfile>
                                	<maintainer>Remco Verhoef</maintainer>
                                	 <dependencies baseurl="http://ftp.nl.freebsd.org/pub/FreeBSD/ports/packages/All/"><dependency>zabbix-agent-1.4.1,1.tbz</dependency></dependencies></package> 
                                
                                

                                i see the problem you had zabbix-agent-1.4.1,1.tbz when on the server http://ftp.nl.freebsd.org/pub/FreeBSD/ports/packages/All/ the only package they have is zabbix-agent-1.4.2,1.tbz

                                seems like they changed there package ver.

                                1 Reply Last reply Reply Quote 0
                                • R
                                  Remco
                                  last edited by

                                  I've updated the pkg_config.xml and added the zabbix-agent.xml to cvs.

                                  1 Reply Last reply Reply Quote 0
                                  • ?
                                    Guest
                                    last edited by

                                    I've install  Zabbix Agent that's available at package manager, and at services tab there is a new option for Zabbix Agent, only asking for settings for: Settings   
                                    Server,
                                    Server Port,
                                    Hostname,
                                    Listen Port

                                    which values must put there?
                                    How can I use it, where I can see the reports?

                                    many thanks for your help

                                    1 Reply Last reply Reply Quote 0
                                    • R
                                      Remco
                                      last edited by

                                      @afrugone:

                                      I've install  Zabbix Agent that's available at package manager, and at services tab there is a new option for Zabbix Agent, only asking for settings for: Settings   
                                      Server,
                                      Server Port,
                                      Hostname,
                                      Listen Port

                                      which values must put there?
                                      How can I use it, where I can see the reports?

                                      many thanks for your help

                                      These settings correspond with the zabbix-agentd.conf settings. The server and server port are used for sending active checks, the hostname must be an unique hostname, also used for active checks and the listen port is the port the agent listens on.

                                      1 Reply Last reply Reply Quote 0
                                      • ?
                                        Guest
                                        last edited by

                                        remco,

                                        Many thanks for your soon answer,  I put TEST data, but the service didn't start, Is necessary put real running server?

                                        Thanks
                                        Alfredo

                                        1 Reply Last reply Reply Quote 0
                                        • R
                                          Remco
                                          last edited by

                                          Could you try the following values:

                                          Server=localhost
                                          ServerPort=10050
                                          Hostname=localhost
                                          ListenPort=10050

                                          If it still is not working, could you send me the /var/log/zabbix/zabbix_agentd.log ?

                                          What is it doing when you start it by hand (/usr/local/etc/rc.d/zabbix_agentd.sh) ?

                                          1 Reply Last reply Reply Quote 0
                                          • ?
                                            Guest
                                            last edited by

                                            Remco,

                                            I try with localhost and port 10050, still not working, the /var/log/zabbix/zabbix_agentd.log is:


                                            25774:20071212:123708 zabbix_agentd started. ZABBIX 1.4.2.
                                            25775:20071212:123708 zabbix_agentd collector started
                                            25776:20071212:123708 zabbix_agentd listener started
                                            25777:20071212:123708 zabbix_agentd listener started
                                            25778:20071212:123708 zabbix_agentd listener started
                                            25779:20071212:123708 zabbix_agentd active check started [localhost:10050]


                                            Status: Services
                                            Service           Status
                                            bandwidthd Running
                                            zabbix-agent Stopped
                                            darkstat   Running
                                            dnsmasq         Running

                                            Try to start with /usr/local/etc/rc.d/zabbix_agentd.sh, and nothing happened, not start and no change at log.

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.