Zabbix 5.0 LTS has been released

Hi

This line is not in my /etc/httpd/conf.d/zabbix.conf file…

My /etc/httpd/conf.d/zabbix.conf file looks like this:

# ================= DO NOT MODIFY THIS FILE ================= # # Manual changes will be lost when this file is regenerated. # # Please read the developer's guide, which is available # at NethServer official site: https://www.nethserver.org # # # # Zabbix monitoring system php web frontend #

Alias /zabbix /usr/share/zabbix

<Directory “/usr/share/zabbix”>
Options FollowSymLinks
AllowOverride None

<IfModule mod_authz_core.c>
  # Apache 2.4
  Require all granted
</IfModule>

<IfModule !mod_authz_core.c>
  # Apache 2.2
  Order allow,deny
  Allow from all
</IfModule>

<IfModule mod_php5.c>
    php_value max_execution_time 300
    #php_value memory_limit 128M
    php_value post_max_size 16M
    #php_value upload_max_filesize 2M
    php_value max_input_time 300
    #php_value always_populate_raw_post_data -1
    php_value date.timezone Europe/Zurich
</IfModule>

<Directory ~ “^/usr/share/zabbix/(conf|api|include)/”>

# Apache 2.4
Require all denied

<IfModule !mod_authz_core.c>
  # Apache 2.2
  Order deny,allow
  Deny from all
</IfModule>

<files *.php>
  <IfModule mod_authz_core.c>
    # Apache 2.4
    Require all denied
  </IfModule>

  <IfModule !mod_authz_core.c>
    Order deny,allow
    Deny from all
  </IfModule>

</files>

Can I just insert in that line (as line 22)?
No templating needed?

Seems there’s an old httpd conf file.

It is templated so please try to expand the template:

expand-template /etc/httpd/conf.d/zabbix.conf

Maybe there’s an old custom template fragment overwriting the recent one?

1 Like

Bingo!

Those two servers had both a custom-template version (from 2019), overwriting the current (newer) template…

Solved!

Thanks Markus!

1 Like

will this also update to 5.2 Version. considering it hasbuiltin notification and alerting systems

@mrmarkuz

Hi

I still have a small issue… On one of my clients there’s still a Zabbix which displays

Incorrect default charset for Zabbix database: "SQL_ASCII" instead "UTF8".

If I recall correctly, there was a command to upgrade that in one go, but I can’t recall the command, nor have I been able to find the reference…

Any ideas?

Thanks
Andy

It’s zabbixUnicode.sh

A db backup is recommended. I’m going to add the command to the wiki.

@mrmarkuz

Thanks!
I do have regular backups, and since I migrated this box yesterday (to Zabbix 5 LTS), this one has more than one backup!

Andy

1 Like

@mrmarkuz

Hi Markus

It seems on Zabbix 5.0 LTS, installed / upgraded as per

the command signal-event nethserver-zabbix-update does not make PostgreSQL read in any images, as it used to do.

This appears on new installs as well as on upgrades…

Any ideas?

My 2 cents
Andy

PS: Yes, I have new images for the library and I’d like to test them! :slight_smile:

1 Like

Sorry, I changed it to not slow down the zabbix-update event, see the end of /etc/e-smith/events/actions/nethserver-zabbix-conf-db
You need to remove the zabbiximages dir /var/lib/pgsql/data/zabbiximages and put your images to /root/images.tar.gz before adding the images to the DB.

Thanks for your images, I’ll add them with next release.

@mrmarkuz

Hi

Thanks for the infos.

This is not quite clear to me:

Is this a folder or file? “/root/images.tar.gz”
There is a folder /root/zabbiximages… Did you mean put the images here?

Thanks
Andy

It’s a tar file, you may create a new images.tar.gz file with your images.

1 Like

Is this used at all?

No, not anymore.

@mrmarkuz

I’ve seen - on Linux - people creating folders with names like action.exe (No, a folder, not a executable file!) and also the same for .tar.gz - also where this was a folder.

So I prefer to ask, rather than assume something, which may be influenced by ages old MS-Dos leanings on extensions… :slight_smile:

My 2 cents
Andy

1 Like

therefore call them directories, dude, folder is for Windows guys :wink:
(hope this make you laugh a bit)

1 Like

@pike

Sitting in front of a (german) macbook, I think Mac also uses the term Folder (Along with Finder).
In german, the term is “Ordner”, corresponding to the english “Folder”…

Sometimes I think Windows can be more contagious than Corona… :slight_smile:

Like the Linux guy using start.exe for his start script in Linux…

My 2 cents
Andy

AFAIK Zabbix 5.0.8 has appeared as agent and server package…

1 Like

It should be enough to update via yum:

yum update --enablerepo=zabbix,zabbix-frontend

1 Like

Seems enough…

1 Like

@mrmarkuz

Hi Markus

BTW, I think I’ve found a small bug:

When removing the SNMP component in the old Server Manager, the nethserver-zabbix component also get’s removed, this should not happen!

Afterwards, Zabbix is effectively removed from NethServer… :frowning:

Just discovered that, while preparing for next weeks Zabbix Hands-On training…

I think this may have to do with “deps”, not necessarily on Zabbix, but maybe somehow in the SNMP component of Nethserver…
I did not remove Zabbix, only the SNMP component. Afterwards, Zabbix was gone.

This is here not critical, this is an “empty” demo server…
But still, it should not happen, as SNMP is NOT dependent on Zabbix and neither is Zabbix dependent on SNMP…

Zabbix itself is not removed, but nethserver-zabbix…

My 2 cents
Andy

1 Like