This is the old XigmaNAS forum in read only mode,
it will taken offline by the end of march 2021!



I like to aks Users and Admins to rewrite/take over important post from here into the new fresh main forum!
Its not possible for us to export from here and import it to the main forum!

[HOWTO] Install Zabbix on Finch / Qjail-3.4

Jails with XigmaNAS
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
dreamcat4
experienced User
experienced User
Posts: 111
Joined: 21 Mar 2014 21:59
Status: Offline

[HOWTO] Install Zabbix on Finch / Qjail-3.4

Post by dreamcat4 »

Description:

Zabbix is client/server based an system monitoring tool. It is the main competitor of Naigos.

http://www.zabbix.com/screenshots.php

HOW-TO Link:

https://gist.github.com/dreamcat4/9e938d53c29340c17958

Requires Finch v1.20. (version check included).

These cmds can all be copy-pasted and should "just work". However if you wish, it is possible to change some variables near the top. For example "jail_ip=", "jail_loopback=" and "jailname=".


Zabbix Overview:

There are several components of zabbix: agent, server, and frontend. The agent instance is run on any computer in your LAN which you wish to monitor. There are versions os zabbix_agent for many platforms, including Linux, Windows, Mac OS X and FreeBSD. (zabbix also has pre-made templates for monitoring each operating system). Each zabbix_agent runs as a daemon and reports it's data back it's data to zabbix_server (x1) which is a headless 'C' daemon. Then "zabbix_frontend" is actually the PHP web application which offers the GUI Browser interface and controls the zabbix_server.

Additionally, any lesser network devices that cannot run zabbix_agent, but instead have SNMP (printers, routers, etc.) can report their data back to zabbix_server also for monitoring.

NOTES:

All the commands were tested on FINCH + QJAIL, not theBrig. The zabbix frontend is served by NGINX and PHP-FPM. With MYSQL for the Database backend (to store the data). All nginx and PHP configuration is included (inlined). So can just copy-paste, no editing in a text editor.

Be aware that (from inside a jail), the local zabbix_agent may not be able to see some certain information about the local host system (NAS4Free / FreeNAS / pfSense). Because from inside of a jail some things are restricted and it cannot access. However most things are OK.

If some aspect you really need to monitor is not visible, then just install a 2nd zabbix_agent into the finch chroot. I didn't provide instruction for doing that but it is well documented in the same HOWTO gist link above.

dreamcat4
experienced User
experienced User
Posts: 111
Joined: 21 Mar 2014 21:59
Status: Offline

Re: [HOWTO] Install Zabbix on Finch / Qjail-3.4

Post by dreamcat4 »

After installing zabbix, it must be configured to monitor your devices.

New how-To:
zabbix configuration - monitor CPU temperature & hdd status (smart attributes)

https://gist.github.com/dreamcat4/1935177aafc8bb674675

Post Reply

Return to “Jails”