I’ve been experimenting with Zabbix recently. Unfortunately, as with most things, just following the documentation to install it is a chore.
I ended up at the step where I need to import data into my new MySQL database:
ubuntu@host:~$ zcat /usr/share/doc/zabbix-server-mysql*/create.sql.gz | mysql -uzabbix -p zabbix gzip: /usr/share/doc/zabbix-server-mysql*/create.sql.gz: No such file or directory
Of course, it didn’t exist! Luckily, thanks to a post by a random user, I now knew that the issue was that Ubuntu – or, in my case, Oracle’s cloud image of it – had stripped the documentation directory!
The problem can be fixed by modifying the right file:
…and adding the following line about Zabbix:
#... except zabbix path-include=/usr/share/doc/zabbix*
Re-install the zabbix packages, and you should now see the file needed to continue:
ubuntu@host:/usr/share/doc/zabbix-server-mysql$ ls changelog.Debian.gz copyright create.sql.gz