Zabbix 5.0 LTS has been released

I didn’t find a better upgrade method than remove and install yet. Thanks for testing!

I’m working on the module, I hope I can provide an update soon.

4 Likes

Hi Markus, thanks for your work. Great as always!! :smiley:

I did a clear install on a test vm and configured a pc with the agent.
Seems to work. Server and PC are communicating.

But I get some Warnings in the systeminformation field:

grafik

You configured a config-database “php” in witch I found 2 of this options. But when I change them to the suggested values and expand the template, nothing changes in Zabbix. Even after a reboot. :thinking:

2 Likes

Thanks for testing!

I am going to provide an update soon with correct php settings and also the database history setting, see Zabbix 5.0 LTS has been released - #20 by dz00te

This is the config db for the default php, not rh-php73.

In the meanwhile you could create following files to get rid of the warnings:

Create /etc/opt/rh/rh-php73/php-fpm.d/zabbix.conf with following content:

php_value[post_max_size] = 16M
php_value[max_execution_time] = 300
php_value[max_input_time] = 300
php_value[date.timezone] = Europe/Vienna

Edit /etc/zabbix/web/zabbix.conf.php and add

$DB['DOUBLE_IEEE754'] = true;

Stop zabbix-server:

systemctl stop zabbix-server

Add patch to db:

cat $(rpm -ql zabbix-server-pgsql | grep double.sql) | sudo -u zabbix psql zabbix

Restart services:

systemctl restart zabbix-server rh-php73-php-fpm

4 Likes

Worked perfectly!! Thanks!!

1 Like

tnx! works great! :+1: :vulcan_salute:

1 Like

I updated the testing package.

  • Included php settings, timezone is set to Nethserver timezone
  • Included DB settings
  • New images by @Andy_Wismer
  • Removed the old zabbix backup script as @syntaxerrormmm provides an RPM for easy deployment

Thanks for testing!

To install:

yum -y install https://repo.zabbix.com/zabbix/5.0/rhel/7/x86_64/zabbix-release-5.0-1.el7.noarch.rpm
yum -y --enablerepo=zabbix,zabbix-frontend install https://mrmarkuz.dynu.net/mirror/devtest/nethserver-zabbix-0.0.1-8.ns7.noarch.rpm

For updating you need to remove the old zabbix packages and install the new one as described here.

If you already tested you need to reinstall to get the new version:

yum -y --enablerepo=zabbix,zabbix-frontend reinstall https://mrmarkuz.dynu.net/mirror/devtest/nethserver-zabbix-0.0.1-8.ns7.noarch.rpm

6 Likes

I installed Zabbix Agents inside my Nethserver and Proxmox-System.
Both are active (stared and enabled) but inside of the Zabbix host configuration both are not connected.
Do you have a hint or me?

Best regards, Marko

1 Like

You need to open port 10050 TCP on the machines that have only the agent.

For the nethserver I did:

  1. Creating new service “zabbix-agent”
  2. I opend the firewall
  3. I created a local role

The Zabbix agent isn’t still accessible, but the firewall don’t rejects anymore. Last entry before FW-Konfiguration
Sep 14 17:30:36 nethserver kernel: Shorewall:loc2fw:REJECT:IN=br0 OUT= MAC=xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx:xx SRC=192.168.3.210 DST=192.168.3.1 LEN=60 TOS=0x00 PREC=0x00 TTL=64 ID=36828 DF PROTO=TCP SPT=57568 DPT=10050 WINDOW=29200 RES=0x00 SYN URGP=0

For the Proxmox system I have no idea how to open the port. The firewall is inactive.

The zabbix agent is running?

systemctl status zabbix-agent

Please check if zabbix-agent is listening:

netstat -tlpn | grep 10050

# systemctl status zabbix-agent 
zabbix-agent.service - Zabbix Agent
   Loaded: loaded (/usr/lib/systemd/system/zabbix-agent.service; enabled; vendor preset: disabled)
   Active: active (running) since Sun 2020-09-13 19:03:37 CEST; 23h ago


# netstat -tlpn | grep 10050
tcp        0      0 0.0.0.0:10050           0.0.0.0:*               LISTEN      9496/zabbix_agentd
tcp6       0      0 :::10050                :::*                    LISTEN      9496/zabbix_agentd

Did you setup a firewall rule on the proxmox?

@capote

Hi Marko

Are both Zabbix Agents correctly configured with correct hostname (Needs to match the zabbix server entry, not necessarily the real hostname!) and IP (On GREEN!)?

I usually put both in double: under Active check and Server (For the server) and under SourceIP and ListenIP (for the Agent itself) in zabbix_agentd.conf…

My 2 cents
Andy

1 Like

Did you setup a firewall rule on the proxmox?

no, I don’t have activated the FW on the Proxmox, Should I do?
I am not enthusiastic about increasing the complexity…

No, it was just an idea. If it’s not active it should be ok too.

1 Like

oh…
I didn’t configure anything on agent side. I didn’t recognize to have to do so. I thought the installation was sufficient.
Now I have to read the manual :frowning:
Best Regards, MArko

IIRC you need to set who can access the zabbix agent in /etc/zabbix/zabbix_agentd.conf and restart the service, I completely forgot about that…

Server=<IP_of_Zabbix_server>

1 Like

Just set those 4 values and Hostname, maybe define logfile (size).

I also sometimes set these two (mostly on Windows…)

EnableRemoteCommands=1
LogRemoteCommands=1

This is set standard:
Include=/etc/zabbix/zabbix_agentd.d/*.conf

That’s all you need… :slight_smile:

The same for ALL your Linux hosts, also Mac!

I know I’m fast with problem analysis… :slight_smile:

My 2 cents
Andy

2 Likes

@mrmarkuz

Setting a /24 for zabbix server is not a very good idea, nor secure…

If this “EnableRemoteCommands=1” is active, you make things REALLY easy…

Just have the server in there, specifically one or two (If 2 Zabbix servers for redundancy) IPs, comma separated.

Localhost is not needed in the agent-config. If running on NethServer, the only place localhost makes sense is on the server, and your module handles that correctly.
All other host should NOT have localhost in the server field!

:slight_smile:

My 2 cents
Andy

2 Likes

is this a current supported option?

Option: EnableRemoteCommands - Deprecated, use AllowKey=system.run[] or DenyKey=system.run[] instead

Internal alias for AllowKey/DenyKey parameters depending on value:

0 - DenyKey=system.run[*]

1 - AllowKey=system.run[*]

Support

Mandatory: no