jca001 Posted December 19, 2020 Posted December 19, 2020 I have a Zabbix Server running on a RPI 4 that is monitoring my PCs, other RPIs, Network Equipment, etc. I know ISY994 does not support any kind of SNMP so Zabbix just checks it is up by doing a ping. I have a Polisy and I know it is running BSD and Zabbix has a BSD Agent. So my question is can the Zabbix BSD Agent be install on Polisy? Or does Polisy support some Generic SNMP that I can configure Zabbix to use?
Michel Kohanim Posted December 20, 2020 Posted December 20, 2020 @jca001, Let us investigate the usage and possible conflicts . With kind regards, Michel
Michel Kohanim Posted December 20, 2020 Posted December 20, 2020 @jca001, It shall be added as a package for you to install. With kind regards, Michel
jca001 Posted December 21, 2020 Author Posted December 21, 2020 @Michel Kohanim Thanks. As always one answer leads to more questions. Just for clarification, do you mean the Zabbix Client or SNMP in general? Is there a Time Line, version update when it will be available? Will the inclusion be automatic or will I have to do some special steps?
Michel Kohanim Posted December 21, 2020 Posted December 21, 2020 @jca001, 1. Zabbix Client 2. Already available and will automatically be updated if there are new versions available 3. You need to manually install/configure it using ssh sudo pkg install zabbix-client With kind regards, Michel
jca001 Posted December 21, 2020 Author Posted December 21, 2020 @Michel Kohanim thanks for the quick reply. I am missing something or there are more command that I need to run. Before doing the following I rebooted Polisy. [admin@polisy ~]$ uname -a FreeBSD polisy 12.1-RELEASE-p5 FreeBSD 12.1-RELEASE-p5 r361000 POLISY amd64 [admin@polisy ~]$ sudo pkg update Updating FreeBSD-base repository catalogue... FreeBSD-base repository is up to date. Updating udi repository catalogue... udi repository is up to date. All repositories are up to date. [admin@polisy ~]$ sudo pkg upgrade Updating FreeBSD-base repository catalogue... FreeBSD-base repository is up to date. Updating udi repository catalogue... udi repository is up to date. All repositories are up to date. Checking for upgrades (0 candidates): 100% Processing candidates (0 candidates): 100% Checking integrity... done (0 conflicting) Your packages are up to date. [admin@polisy ~]$ sudo pkg install zabbix-client Updating FreeBSD-base repository catalogue... FreeBSD-base repository is up to date. Updating udi repository catalogue... udi repository is up to date. All repositories are up to date. pkg: No packages available to install matching 'zabbix-client' have been found in the repositories
Michel Kohanim Posted December 21, 2020 Posted December 21, 2020 @jca001, Please upgrade to 12.2 version of the OS: curl -s https://pkg.isy.io/script/update121.sh | sudo bash With kind regards, Michel
jca001 Posted December 21, 2020 Author Posted December 21, 2020 @Michel Kohanim I was hoping that was a missed step and everything would be fine after that, but it is not. [admin@polisy ~]$ uname -a FreeBSD polisy 12.2-RELEASE-p2 FreeBSD 12.2-RELEASE-p2 r368666 POLISY amd64 sudo pkg update, says there is nothing to update. sudo pkg upgrade, says everything is up to date. sudo pkg install zabbix-client, still says the package is not matched. I am running zabbix 5.X, so maybe a version needs to be specified? Something like zabbix-client5. I tried to find an option for pkg (man pkg) to list all the available packages, but could not identify one.
Michel Kohanim Posted December 21, 2020 Posted December 21, 2020 @jca001, Apologies: sudo pkg install zabix5-agent You can always search available packages: sudo pkg search zab (finds all the packages that start with zab) With kind regards, Michel
jca001 Posted December 21, 2020 Author Posted December 21, 2020 @Michel Kohanim There is still something wrong. sudo pkg search zab, does not show anything. Just to make sure the command does match something I did, sudo pkg search dev, and it showed many packages that contained "dev" somewhere in the package name. I think even if the package was in the repository your example would have failed because I think you meant to type "zabbix5-agent", 2bs.
jca001 Posted December 21, 2020 Author Posted December 21, 2020 @Michel Kohanim I just checked Zabbix Download page and selected FreeBSD and it shows support only up to 11.2 of the OS for Zabbix 5.2 that I am running. So this may be why it is not listed in the UDI's repository. Unless you can find an Agent in the UDI repository, I will just try setting up SNMP. I just want to monitor that Polisy is on my network and running and I think Generic SNMP will provide some System information, such as CPU utilization, Memory utilization, etc that would indicate Polisy is running. I checked Polisy I can find /etc/snmpd.config, but not the snmpd program itself. Maybe FreeBSD implemented it using a different name for the daemon. Running sudo pkg -v version, indicates there are 3 SNMP related packages installed and up to date. I will loook at /etc/snmpd.config and see if I can figure out how to configure SNMP. I may need a little help with this.
jca001 Posted December 22, 2020 Author Posted December 22, 2020 @Michel Kohanim I was able to get SNMP configured on Polisy and Zabbix Server is getting lots, really too much, information. I will continue to make changes to /etc/snmpd.config.
Michel Kohanim Posted December 22, 2020 Posted December 22, 2020 @jca001, I have Zabbix installed on my Polisy. We compile these packages ourselves. Please do a pkg search. With kind regards, Michel
jca001 Posted December 22, 2020 Author Posted December 22, 2020 @Michel Kohanim I had done "pkg search zab" before and nothing showed up. But I just did it now and see zabbix-agent-5.0.6. I am running Zabbix 5.2.2, any chance the agent for 5.2 could be provided? I am going to install the 5.0.6 agent on my Polisy and see if my Zabbix Server can use it. Thanks for all the help you have provided.
jca001 Posted December 22, 2020 Author Posted December 22, 2020 @Michel Kohanim I installed zabbix5-agentd-5.0.6 and it seems to be working fine. It found CPU information, File System information and other things and there are no errors logged on Polisy or my Zabbix Server. So this may be fine for my needs.
Michel Kohanim Posted December 23, 2020 Posted December 23, 2020 @jca001, I am very glad to hear. Libraries are checked and built nightly. So, when there are updates, they will automatically show up. With kind regards, Michel
Recommended Posts