Howto install Zabbix 3.4

I worked on a complete rewrite and:
1 - I am not completely satisfied with the result (much spaghetti code, a lot of repetitions);
2 - It does not support the multiple backup jobs yet (only ‘Config’ and ‘Data’ can be passed for check);
3 - Should be less change-prone (since it checks out /var/log/messages instead of the single backup file) — Now it only depends on the syntax of the SUCCESS/FAILURE line;
4 - Because it needs to access to /var/log/messages, now it requires to be run with sudo in userparameters (at least if you run your zabbix system with a user different from root).

You can find the updated files within the last commit on the previous reported repo on GitHub.

2 Likes

Zabbix 4.0 LTS is here!

https://www.zabbix.com/life_cycle_and_release_policy
https://www.zabbix.com/release_notes

It’s working in first tests but I did not test an update. Don’t test in production.

Installation instructions:

https://wiki.nethserver.org/doku.php?id=zabbix#zabbix_repo

I am going to test and integrate the script of @syntaxerrormmm, if someone has already tested it please report…

3 Likes

great! :raised_hands:
just a quick test… i’ve updated an almost clean install of 3.4 (only a discovery rule was set) . it worked and didn’t see any error in logs.
tnx!

3 Likes

That are great news! Thanks for testing!

1 Like

Huge work here. Thanks for that.

1 Like

Updated to 4.0:

[root@nethmon01 ~]# tail -n 20 /var/log/zabbix/zabbix_agentd.log
   949:20181006:140012.176 **** Enabled features ****
   949:20181006:140012.176 IPv6 support:          YES
   949:20181006:140012.176 TLS support:           YES
   949:20181006:140012.176 **************************
   949:20181006:140012.176 using configuration file: /etc/zabbix/zabbix_agentd.conf
   949:20181006:140012.176 agent #0 started [main process]
   951:20181006:140012.180 agent #1 started [collector]
   952:20181006:140012.180 agent #2 started [listener #1]
   953:20181006:140012.182 agent #3 started [listener #2]
   954:20181006:140012.182 agent #4 started [listener #3]
   955:20181006:140012.191 agent #5 started [active checks #1]
   955:20181006:140012.195 active check configuration update from [127.0.0.1:10051] started to fail (cannot connect to [[127.0.0.1]:10051]: [111] Connection refused)
   955:20181006:140112.229 active check configuration update from [127.0.0.1:10051] is working again
   955:20181006:140112.229 no active checks on server [127.0.0.1:10051]: host [Zabbix] not found
   955:20181006:140312.249 no active checks on server [127.0.0.1:10051]: host [Zabbix] not found
   955:20181006:140512.267 no active checks on server [127.0.0.1:10051]: host [Zabbix] not found
   955:20181006:140712.283 no active checks on server [127.0.0.1:10051]: host [Zabbix] not found
   955:20181006:140912.300 no active checks on server [127.0.0.1:10051]: host [Zabbix] not found
   955:20181006:141112.318 no active checks on server [127.0.0.1:10051]: host [Zabbix] not found
   955:20181006:141312.336 no active checks on server [127.0.0.1:10051]: host [Zabbix] not found





[root@nethmon01 ~]# tail -n 20 /var/log/zabbix/zabbix_agentd.log-20180923
   953:20180923:215059.714 no active checks on server [127.0.0.1:10051]: host [Zabbix] not found
   953:20180923:215259.734 no active checks on server [127.0.0.1:10051]: host [Zabbix] not found
   953:20180923:215459.753 no active checks on server [127.0.0.1:10051]: host [Zabbix] not found
   953:20180923:215659.772 no active checks on server [127.0.0.1:10051]: host [Zabbix] not found
   953:20180923:215859.791 no active checks on server [127.0.0.1:10051]: host [Zabbix] not found
   953:20180923:220059.810 no active checks on server [127.0.0.1:10051]: host [Zabbix] not found
   953:20180923:220259.829 no active checks on server [127.0.0.1:10051]: host [Zabbix] not found
   953:20180923:220459.846 no active checks on server [127.0.0.1:10051]: host [Zabbix] not found
   953:20180923:220659.861 no active checks on server [127.0.0.1:10051]: host [Zabbix] not found
   953:20180923:220859.879 no active checks on server [127.0.0.1:10051]: host [Zabbix] not found
   953:20180923:221059.895 no active checks on server [127.0.0.1:10051]: host [Zabbix] not found
   953:20180923:221259.911 no active checks on server [127.0.0.1:10051]: host [Zabbix] not found
   953:20180923:221459.929 no active checks on server [127.0.0.1:10051]: host [Zabbix] not found
   953:20180923:221659.946 no active checks on server [127.0.0.1:10051]: host [Zabbix] not found
   953:20180923:221859.962 no active checks on server [127.0.0.1:10051]: host [Zabbix] not found
   953:20180923:222059.978 no active checks on server [127.0.0.1:10051]: host [Zabbix] not found
   953:20180923:222259.994 no active checks on server [127.0.0.1:10051]: host [Zabbix] not found
   953:20180923:222459.014 no active checks on server [127.0.0.1:10051]: host [Zabbix] not found
   953:20180923:222659.029 no active checks on server [127.0.0.1:10051]: host [Zabbix] not found
   953:20180923:222859.044 no active checks on server [127.0.0.1:10051]: host [Zabbix] not found





[root@nethmon01 ~]# tail -n 20 /var/log/zabbix/zabbix_server.log
  1562:20181006:140023.214 server #23 started [trapper #1]
  1563:20181006:140023.215 server #24 started [trapper #2]
  1564:20181006:140023.218 server #25 started [trapper #3]
  1568:20181006:140023.218 server #29 started [alert manager #1]
  1549:20181006:140023.219 server #13 started [escalator #1]
  1567:20181006:140023.222 server #28 started [icmp pinger #1]
  1550:20181006:140023.222 server #14 started [proxy poller #1]
  1569:20181006:140023.223 server #30 started [preprocessing manager #1]
  1571:20181006:140023.223 server #32 started [preprocessing worker #2]
  1566:20181006:140023.225 server #27 started [trapper #5]
  1570:20181006:140023.300 server #31 started [preprocessing worker #1]
  1572:20181006:140023.300 server #33 started [preprocessing worker #3]
  1565:20181006:140112.229 cannot send list of active checks to "127.0.0.1": host [Zabbix] not found
  1562:20181006:140312.249 cannot send list of active checks to "127.0.0.1": host [Zabbix] not found
  1564:20181006:140512.266 cannot send list of active checks to "127.0.0.1": host [Zabbix] not found
  1563:20181006:140712.283 cannot send list of active checks to "127.0.0.1": host [Zabbix] not found
  1565:20181006:140912.300 cannot send list of active checks to "127.0.0.1": host [Zabbix] not found
  1565:20181006:141112.318 cannot send list of active checks to "127.0.0.1": host [Zabbix] not found
  1564:20181006:141312.336 cannot send list of active checks to "127.0.0.1": host [Zabbix] not found
  1566:20181006:141512.353 cannot send list of active checks to "127.0.0.1": host [Zabbix] not found






[root@nethmon01 ~]# tail -n 20 /var/log/zabbix/zabbix_server.log-20180923
  1290:20180923:215059.713 cannot send list of active checks to "127.0.0.1": host [Zabbix] not found
  1290:20180923:215259.734 cannot send list of active checks to "127.0.0.1": host [Zabbix] not found
  1291:20180923:215459.753 cannot send list of active checks to "127.0.0.1": host [Zabbix] not found
  1295:20180923:215659.772 cannot send list of active checks to "127.0.0.1": host [Zabbix] not found
  1290:20180923:215859.791 cannot send list of active checks to "127.0.0.1": host [Zabbix] not found
  1290:20180923:220059.810 cannot send list of active checks to "127.0.0.1": host [Zabbix] not found
  1292:20180923:220259.829 cannot send list of active checks to "127.0.0.1": host [Zabbix] not found
  1291:20180923:220459.845 cannot send list of active checks to "127.0.0.1": host [Zabbix] not found
  1292:20180923:220659.861 cannot send list of active checks to "127.0.0.1": host [Zabbix] not found
  1292:20180923:220859.879 cannot send list of active checks to "127.0.0.1": host [Zabbix] not found
  1292:20180923:221059.895 cannot send list of active checks to "127.0.0.1": host [Zabbix] not found
  1293:20180923:221259.910 cannot send list of active checks to "127.0.0.1": host [Zabbix] not found
  1292:20180923:221459.929 cannot send list of active checks to "127.0.0.1": host [Zabbix] not found
  1291:20180923:221659.946 cannot send list of active checks to "127.0.0.1": host [Zabbix] not found
  1292:20180923:221859.962 cannot send list of active checks to "127.0.0.1": host [Zabbix] not found
  1293:20180923:222059.978 cannot send list of active checks to "127.0.0.1": host [Zabbix] not found
  1293:20180923:222259.994 cannot send list of active checks to "127.0.0.1": host [Zabbix] not found
  1293:20180923:222459.014 cannot send list of active checks to "127.0.0.1": host [Zabbix] not found
  1293:20180923:222659.029 cannot send list of active checks to "127.0.0.1": host [Zabbix] not found
  1293:20180923:222859.044 cannot send list of active checks to "127.0.0.1": host [Zabbix] not found
2 Likes

Thanks for testing, did it work in general except of these errors?

I am going to do some more testing this weekend, if I encounter similar error I’ll report…

EDIT:

I have similar errors, it seems like the Zabbix host is called “Zabbix server” now instead of Zabbix.

In /etc/zabbix/zabbix_agentd.conf change the hostname:

Hostname=Zabbix server

and restart the services:

systemctl restart zabbix-agent zabbix-server

I’ll update the module, thanks

1 Like

@mrmarkuz

Hi

Did an update of Zabbix from 3.4.x to 4.0.4 LTS on a “productive” Home-Server.
No errors in the Terminal during update, however the Web-Interface of Zabbix still shows 3.4.xx…
Any ideas? (Done the upgrade on two Zabbix Servers, both no problems but still showing the older Versions…)

Found it - need to update via Software-Center…

PS: Great work again!

Regards
Andy, now in Konstanz am Bodensee…

3 Likes

@mrmarkuz

Hi
One clients System just got the Update to 4.2.2…
Installed the update, then Zabbix complains about “asset cache”.

Seems to be:

Since Zabbix 4.2.2, write permissions to the assets directory are required for the web server user. (From Zabbix https://www.zabbix.com/documentation/4.2/manual/installation/install )

A quick help was:
cd /usr/share/zabbix
chown -R root.apache assets/
chmod -R 775 assets/

Seems to work, except that Screens (Custom Screens) now won’t show any Text under the Graphs (Which show?).

Any ideas?

Andy

1 Like

Thanks, I’ll update the module to set the permissions.

Latest version of the 4.0 repo is 4.0.8, did you install another zabbix repo?

It has been reported already:

https://support.zabbix.com/browse/ZBX-16182

1 Like

Hi
Actually, it showed up on only one server of all my clients - also the newest setup 4-5 weeks old, for a doctors praxis…
In the normal updates…

Thx
Andy

tnx fo the link…
upgrading to 4.0.8 also give me error on cache directory not witable and also if changing owner to asset folder solve the error, still have problems with missing text on graphs. i have made a rollback to 4.0.7 for now

https://www.zabbix.com/forum/zabbix-help/379597-assets-cache-directory-is-not-writable

@mrmarkuz

Hi
Had another Zabbix on the newest NethServer (The others haven’t senn any updates so far?)
The Graphs AND Texts are back, seems to work as expected!

Thx

Andy

2 Likes

Hi
After the latest update (Zabbix: 4.0.9), it seems that editing maps doesn’t work any more. Maps work as expected in normal “view” mode, but not in “edit” mode.
Objects like servers, switches et Al. can only be placed by using coordinates, and objects can’t be marked - say for adding connections.
This shows up on two newly installed servers. (Not on any of the others…)

Any ideas?

Andy

I couldn’t reproduce it. I tested with Zabbix 4.0.9-3 on a fresh installed Neth VM and with Firefox and Chrome on a Windows client…

Which modules are installed on the two not working servers?

rpm -qa "nethserver*" | sort
`

Hi

rpm -qa “nethserver*” | sort
nethserver-antivirus-1.2.2-1.ns7.noarch
nethserver-avahi-1.1.0-1.ns7.noarch
nethserver-awstats-0.1.12-1.ns7.sdl.noarch
nethserver-backup-config-2.3.1-1.ns7.noarch
nethserver-backup-data-1.5.3-1.ns7.noarch
nethserver-base-3.7.2-1.ns7.noarch
nethserver-cgp-2.1.3-1.ns7.noarch
nethserver-c-icap-1.1.0-1.ns7.noarch
nethserver-clamscan-0.1.2-3.ns7.sdl.noarch
nethserver-cockpit-0.8.0-1.ns7.noarch
nethserver-cockpit-lib-0.8.0-1.ns7.noarch
nethserver-collectd-3.0.8-1.ns7.noarch
nethserver-crontabmanager-0.1.1-1.ns7.sdl.noarch
nethserver-cups-1.2.1-1.ns7.noarch
nethserver-dc-1.6.6-1.ns7.x86_64
nethserver-ddclient-1.0.7-1.ns7.sdl.noarch
nethserver-diagtools-1.0.3-1.ns7.noarch
nethserver-dnsmasq-1.7.0-1.ns7.noarch
nethserver-duc-1.4.5-1.ns7.noarch
nethserver-ejabberd-1.4.0-1.ns7.noarch
nethserver-fail2ban-1.1.7-1.ns7.noarch
nethserver-firewall-base-3.6.1-1.ns7.noarch
nethserver-guacamole-0.0.0-2.ns7.noarch
nethserver-hosts-1.2.2-1.ns7.noarch
nethserver-httpd-3.2.7-1.ns7.noarch
nethserver-httpd-admin-2.3.4-1.ns7.noarch
nethserver-httpd-proxypass-3.2.7-1.ns7.noarch
nethserver-httpd-virtualhosts-3.2.7-1.ns7.noarch
nethserver-ipsec-tunnels-1.1.6-1.ns7.noarch
nethserver-lang-de-1.3.0-4.ns7.noarch
nethserver-lang-en-1.3.0-4.ns7.noarch
nethserver-lang-pt-1.3.0-4.ns7.noarch
nethserver-letsencrypt-1.1.6-1.ns7.noarch
nethserver-lib-2.2.11-1.ns7.noarch
nethserver-lightsquid-1.1.2-1.ns7.noarch
nethserver-lsm-1.2.3-1.ns7.noarch
nethserver-mail-common-2.6.5-1.ns7.noarch
nethserver-mail-disclaimer-2.6.5-1.ns7.noarch
nethserver-mail-filter-2.6.5-1.ns7.noarch
nethserver-mail-getmail-2.6.5-1.ns7.noarch
nethserver-mail-server-2.6.5-1.ns7.noarch
nethserver-mail-smarthost-2.6.5-1.ns7.noarch
nethserver-mrmarkuz-0.0.1-3.ns7.noarch
nethserver-mysql-1.1.4-1.ns7.noarch
nethserver-nethforge-release-7-3.ns7.noarch
nethserver-net-snmp-1.1.0-1.ns7.noarch
nethserver-nextcloud-1.5.1-1.ns7.noarch
nethserver-nfs-0.1.4-1.ns7.sdl.noarch
nethserver-ntp-1.1.3-1.ns7.noarch
nethserver-nut-1.4.0-1.ns7.noarch
nethserver-openssh-1.2.2-1.ns7.noarch
nethserver-phonehome-1.3.0-1.ns7.noarch
nethserver-php-1.2.0-1.ns7.noarch
nethserver-phpldapadmin-0.0.5-1.ns7.sdl.noarch
nethserver-phpmyadmin-1.2.2-1.ns7.sdl.noarch
nethserver-phppgadmin-0.0.3-2.ns7.sdl.noarch
nethserver-postgresql-1.1.0-1.ns7.noarch
nethserver-pulledpork-2.1.4-1.ns7.noarch
nethserver-release-7-13.ns7.noarch
nethserver-restore-data-1.3.0-1.ns7.noarch
nethserver-rh-mariadb101-0.0.4-1.ns7.sdl.noarch
nethserver-rh-mariadb102-0.0.5-1.ns7.sdl.noarch
nethserver-rh-php56-php-fpm-1.0.0-1.ns7.noarch
nethserver-rh-php71-php-fpm-1.0.0-1.ns7.noarch
nethserver-rh-php72-php-fpm-1.0.0-1.ns7.noarch
nethserver-roundcubemail-1.3.0-1.ns7.noarch
nethserver-samba-4.3.1-1.ns7.noarch
nethserver-samba-audit-1.1.6-1.ns7.noarch
nethserver-smartd-1.1.0-1.ns7.noarch
nethserver-squid-1.8.1-1.ns7.noarch
nethserver-squidclamav-3.0.0-1.ns7.noarch
nethserver-squidguard-1.9.0-1.ns7.noarch
nethserver-sssd-1.4.8-1.ns7.noarch
nethserver-stephdl-1.0.8-1.ns7.sdl.noarch
nethserver-subscription-3.4.1-1.ns7.noarch
nethserver-tomcat-1.1.0-1.ns7.noarch
nethserver-unbound-1.1.0-1.ns7.noarch
nethserver-vsftpd-1.1.1-1.ns7.noarch
nethserver-yum-1.4.1-1.ns7.noarch
[root@abho-nethserver ~]#

I removed Zabbix, trying to reinstall it.
2nd time:

yum remove nethserver-zabbix
Loaded plugins: changelog, fastestmirror, nethserver_events
No Match for argument: nethserver-zabbix
No Packages marked for removal

Yet after a reboot and a “yum clean all” I can’t find the package on the mirrors…
[root@abho-nethserver ~]# yum -y install nethserver-zabbix
Loaded plugins: changelog, fastestmirror, nethserver_events
Loading mirror speeds from cached hostfile

Any ideas?

Background info:
This specific server is a clean install on Proxmox to replace a dying old HW server (HP Proliant ML110 G4 (!)) - really old. It’s a friends home server. The replacement is a HP Microserver G8 with a new NAS.
Before we actually replaced the server, my friend went on vacation, and a day later a severe power outage killed the network.
The NAS barely survived (also a 8-10 year old box), and the old HP Proliant actually booted up after three tries. It seems the power supply or more is screwed on the server, on switching on it just blinks, no air rush (typical for HP Proliant servers!) or BIOS, screen stays dead.
Disks apparently survived, I put one in the Proxmox and added it in as a second disk in a newly installed Nethserver, specifically installed just to load that disk. That works, all data seems available.
I can’t boot with that disk however, I run into the By-ID problem upon booting… (Well, moving P2V unplanned…) I did try editing the files, but I can’t get it to make a viable init.rd…
No matter, I can get at trhe files…
We missed a programming project with a MySQL file and some HTML, the thing died while doing the backup so it never made it. The backup also wasn’t conclusive for that reason.
I could recover that project.

But Zabbix still has issues. Status at the moment is: It isn’t installed, and refuses to do so…

Any ideas?
Andy

I think it isn’t on official nethserver repos, and you need zabbix repo and mrmarkuz repo. Remember to enable them for the installation.

1 Like

Hi

Both Repos are installed - according to the Docu https://wiki.nethserver.org/doku.php?id=zabbix
it isn’t required to actually enable the repo?

[root@abho-nethserver ~]# yum -y install https://mrmarkuz.goip.de/mirror/mrmarkuz/7/noarch/nethserver-mrmarkuz-0.0.1-3.ns7.noarch.rpm
Loaded plugins: changelog, fastestmirror, nethserver_events
nethserver-mrmarkuz-0.0.1-3.ns7.noarch.rpm | 3.3 kB 00:00:00
Examining /var/tmp/yum-root-O5Mozp/nethserver-mrmarkuz-0.0.1-3.ns7.noarch.rpm: nethserver-mrmarkuz-0.0.1-3.ns7.noarch
/var/tmp/yum-root-O5Mozp/nethserver-mrmarkuz-0.0.1-3.ns7.noarch.rpm: does not update installed package.
Error: Nothing to do
[root@abho-nethserver ~]#

[root@abho-nethserver ~]# yum -y install https://repo.zabbix.com/zabbix/4.0/rhel/7/x86_64/zabbix-release-4.0-1.el7.noarch.rpm
Loaded plugins: changelog, fastestmirror, nethserver_events
zabbix-release-4.0-1.el7.noarch.rpm | 13 kB 00:00:00
Examining /var/tmp/yum-root-O5Mozp/zabbix-release-4.0-1.el7.noarch.rpm: zabbix-release-4.0-1.el7.noarch
/var/tmp/yum-root-O5Mozp/zabbix-release-4.0-1.el7.noarch.rpm: does not update installed package.
Error: Nothing to do
[root@abho-nethserver ~]#

But it seems to work with:
yum --enablerepo=mrmarkuz install nethserver-zabbix
???

Thx for the reply
Andy

Check if they are enabled by default or enable the repo(s) at install time:

yum repolist enabled
yum --enablerepo=mrmarkuz install nethserver-zabbix

EDIT: wrong timing, you already did it.

1 Like

@dnutan

Maybe @mrmarkuz needs to do a small update on the docu in the wiki…

But it’s working again… Not yet solved, but (see issue above about 4.0.9 editing maps…)

:slight_smile:

My 2 cents
Andy

1 Like