Howto install Zabbix 3.4


(André Wismer) #21



Just installed your Version of NethServer-Zabbix…

The only problems with the install was a mirror issue:

zabbix-server-pgsql-3.4.6-1.el FAILED [Errno 12] Timeout on (28, ‘Connection timed out after 30000 milliseconds’)
Trying other mirror.
zabbix-server-pgsql-3.4.6-1.el FAILED [Errno 12] Timeout on (28, ‘Connection timed out after 30000 milliseconds’)
Trying other mirror.
(14/14): zabbix-server-pgsql-3.4.6-1.el7.x86_64.rpm | 2.0 MB 00:00:01

But it did finally install on the third try…

It’s now installed and working. A view of the map:

One (small) problem observed: The default values for processes on the Zabbix-Server (Also the NethServer) is too low…

Otherwise it seems to be working in the chosen environment, a small home server for a friend.

Cool stuff!

(Markus Neuberger) #22

Thanks for testing!

Which values would you recommend?

(André Wismer) #23

Hard to say at the moment, there’s hardly any load on the server at the moment…
But this is a really low powered, old box - a HP Proliant ML110 G4 (!) - and there’s not much running besides Firewall, Mail, NextCloud and Zabbix.

See the load below…

I’d say 400-500 would be a good value.

Also a good idea would be to change the default symbol reflecting NethServer… :wink:
I can provide these as a ZIP including all 5 default sizes… (Mail?)

BTW: I really like the fact that Zabbix shows up under Applications (Anwendungen)!


(Dominik) #24

Hi everybody!

Finally i have tested your solution which has been described here by @mrmarkuz and @syntaxerrormmm - and I must say that i haven’t seen better Zabbix Howto that this - great job all of you - finally i can monitor my network/server environment !

I was wondering if the developer team could make it possible to have Zabbix as a module in NS ?

(Markus Neuberger) #25

You may try this one, maybe I should make it more visible…

Thanks to @Andy_Wismer who sent some nice symbols to use, I’ll implement them asap.


sorry for the late reply … i’ve installed last week as test-in-production :slight_smile: and for now it’s all ok (only linux server monitoring ) but i still need to reconfigure lot of things…
anyway no error during install and i appreciate the postgresql choiche…
great work :clap: tnx i’ll keep you informed

(Markus Neuberger) #27

Thanks for testing!

(André Wismer) #28


I’m so intrigued by this that I’ve got this running on 4 servers. All 4 are running excellently so far - no hiccups!

Quite a few of my clients run a small environment, some at home, some even in the small office. Quite common is a HP Microserver Gen8 with 16 GB RAM and virtualisation (Now all ProxMox). There’s hardly enough RAM to run a NethServer and a Windows (Terminal/RDP) Server side by side - let alone a Stand-Alone monitoring system (Zabbix).

Then again, a few clients who have NethServer running on an older Server hardware, but natively. No virtualisation or possibility of a stand alone monitoring system. This helps in such a scenario, too!

Markus, you must make this a full Module for NethServer, I’ll gladly provide the testing and Symbols.

A bow to the City of Vienna! Keep up your excellent work!

Andy Wismer

(Emiliano Vavassori) #29

Why not using a Zabbix Proxy in this case? Well, one for each customer I mean. We use a virtualized NethServer with 1/2 vCPU and 2 GB of RAM on each customer’s hypervisor. Alternatively you may deploy a Proxy on a RaspberryPi :wink: you then link all the proxies to a single centralized Server. Trust me, Zabbix binaries are really optimized and will work well also on poor hardware.

(André Wismer) #30


My clients want in house monitoring. My older Nagios was satisfied with 1-2 GB RAM, Zabbix takes 2-4 or more…

For the Multiple-Sites scenario, I like the idea of using OPNsense as the Firewall, and NethServer as Server On-Site. OPNsense actually comes with an Agent or Proxy (or both) if needed. I have cases where the remote site has basically ONLY a windows cashier-box, sometimes a networked printer, and VPN to the main site.

The client’s OK with buying the OPNsense hardware, I get monitoring thrown in with the VPNs… :wink:

My 2 cents


(Emiliano Vavassori) #31

You are lucky. Ours don’t, plus I am quite sure they wouldn’t like to pay for monitoring even when you explain to them why they would want to have it in place. Answering to them “We know what’s going on” when they call you on phone with issues is a much sufficient reward in some case.

Sure, as always, YMMV and you are not bound to choices done by other within NS; still, if you are ok with Nagios, why bothering changing monitoring system?

I think Zabbix is far superior to Nagios for a lot of reasons (you may add/remove checks to a host from the web interface; the single frontend console can be set up to show data only for a customer using different usernames to access it; autodiscoverying/autoregistration rules can be set up, so customers only need to install the Agent [if you provide an installer to them] or enable SNMP on a device; it can be extended with small effort if you are ok with writing some scripts and a lot more).

You may be accustomized to some kind of setup/hardware but I do think Zabbix is flexible enough to fit inside 1 GB RAM box (if you don’t use, for example, JMX checks for Java/Tomcat applications). As I have said, binaries are really optimized. Below some graphs for a Proxy on a Raspberry PI (1 week of data). This Raspberry PI collects data about 153 checks on 7 hosts.

(Markus Neuberger) #32

In comparison to only Nagios this is absolutely true. I use to monitor networks with OMD which is able to manage any point you mentioned with Nagios or Icinga as core. This is not about Zabbix vs. Nagios, i just wanted to point out that Nagios fans still have the possibility to use their favourite monitoring inside NethServer with nice web UI.

(André Wismer) #33


I was using a simple distri called FAN. It worked for a while great, still does actually.
But being based on an OLD Kernel, and no more updates since 2+ years AND Repo shut down by centos / red hat I thought it’s time to move on.

That’s when, durng evaluation, I discovered Zabbix - and I’m sold on it!

Many Maps, Screens, and it all comes in one package.

Their Client List is also quite respecatable, I know of more huge companies who use it, but aren’t displayed on the customer list…

My 2 cents

(Markus Neuberger) #34

@syntaxerrormmm, I tested your backup monitor script, it rocks! :clap:

You missed a “d” in zabbix_agentd.d in the README:

install -m 0644 -o root -g root userparameter_nethserver.conf /etc/zabbix/zabbix_agentd.d/userparameter_nethserver.conf

@Andy_Wismer, how do you import all the images? I managed to import them in postgresql:

Create following directory symbols_by_andy_wismer and put the images there, it has to be there to be correctly imported, at least I found no other way:

mkdir -p /var/lib/pgsql/data/symbols_by_andy_wismer
cd /var/lib/pgsql/data/symbols_by_andy_wismer

Then import the images:

for d in *; do su postgres -c "psql zabbix postgres -c \"insert into images (imageid,imagetype,name,image) values ((select max(imageid) +1 from images),1,'$d',pg_read_binary_file('symbols_by_andy_wismer/$d'));\""; done

(André Wismer) #35


Thanks for solving that problem for me. Until now, all clients got a “master image” from me, containing all Images and DB entries.

As time passed, the clients repositories (Image Repos) grew, but each individually.

As I create the images “on demand” - also known as “when I need them”, I don’t actually have to import that much, one at a time.

The master Image was a dump from a clean Zabbix DB, and a tgz of the images folder.

Keep up the great work!

Will test that Backup Script as soon an I’ve tested the Backup / Restore with Zabbix…

Best Regards

(Emiliano Vavassori) #36

Really not the best piece of a script, but at least it works :wink:

Thanks for reporting, already corrected :slight_smile:

(Markus Neuberger) #37

New zabbix module version available:

  • Additional map images - thanks to @Andy_Wismer
  • Backup monitoring script - thanks to @syntaxerrormmm
    You just have to import the /root/zbx-nethbackup-check-master/nethbackup_check.xml file via web UI as described at the end of Emilianos readme

On the Zabbix Server, import the nethbackup_check.xml file inside the Configuration > Templates > Import function. Then assign the template NethServer backup check to any host on which you have installed the Zabbix Agent and the previous files.


You may choose between Zabbix 3.4 and 3.5:

For 3.4:

yum -y install

For 3.5 (Zabbix 4.0.0alpha3):

yum -y install

Install nethserver-zabbix:

yum -y install


Some image examples, but there are a lot more now…


You may add own images to /var/lib/pgsql/data/zabbiximages
Just do signal-event nethserver-zabbix-update and you have them available in zabbix.

Backup check

(André Wismer) #38



Great work!

Can this version be installed over the earlier version?



(fpausp) #39 - Is this the latest version ?

(André Wismer) #40



Actually the included Images are the latest version of that library. I will update the library on my own website… Done!

is the latest & greatest version… :wink:
Actually both links will get you the latest version now.