So all of a sudden, after a week of using it, I get an error message on my zabbix server
gui (http://localhost/zabbix/.)
The error says: Zabbix server is not running: the information displayed may not be current.
Any idea why is this happening ll of a sudden and out of the blue? I restarted the machine - which should automatically restore the zabbix server
upon startup - but it's still not running.
I also researched for a startup or restart command but true to form with zabbix
helpful, clear documentation is non-existent.
EDIT:
Some more info:
MySQL
is running normally. I'm able to select
, insert into
, whatever I want.
Doing /etc/init.d/zabbix-server status
results in * zabbix_server is not running
The last entry in zabbix_server.log
is Zabbix Server stopped. Zabbix 2.2.9 (revision 52686).
Doing sudo /etc/init.d/zabbix-server start
results in * Starting Zabbix server zabbix_server
but the status is still not running
and the log file doesn't have any new entries.
I was using a special character in my DB password - wrapping the DBPassword option in
/etc/zabbix/zabbix_server.conf
and doingsudo service zabbix-server restart
got me back up and running.Not Working
DBPassword=MyString?
Working
DBPassword='MyString?'
In my case it happens when introducing host with templates, graphs,trigger etc, the server falls. The problem was that by default the cache is at 128k and you have to change it.
Uncheck # Sizecache and add 32M for example.
restart service and voila!! server working
I solved this problem on Ubuntu 18.04 by uninstalling Zabbix and reinstalling it again from scratch.
The initial installation didn't work because I had followed old posts/guides/tutorials, even from Zabbix documentation itself, so these might probably be outdated. So, the trick was to find and follow the most updated guide to Zabbix installation from its docs.
Here are the two links I followed for uninstalling and reinstalling Zabbix:
When installing Zabbix from the link above, your choosen Zabbix Version, OS Distribution, OS Version or Database may be different from the ones I've selected, but following the instructions on this page will probably be also the right way for you to install your chosen Zabbix configuration without getting errors post installation.
Looks like the problem was that I created a
Database monitoring
Item
programmatically and it triggered a bug that caused the server to shutdown.Once I deleted the item the server came back up, and creating subsequent
Items
didn't kill it.The deadly
Item
had avalue_type
ofNumeric unsigned
, -1 programmatically, while the newly createdItems
have avalue_type
offloat
, which is 0 programmatically.The whole thing has a voodoo element to it but it did solve my problem.
The
zabbix-server
daemon doesn't seem to like passwords with special characters in them. Unsure whether quotes would work in the configuration I just removed special characters from the database password, updated the configuration files and restarted the daemon.Configuration parsing errors don't show up in logs for some reason.
My problem was caused by having external ip in $ZBX_SERVER setting.
I changed it to localhost instead so that ip was resolved internally,
Changed
to
then
Zabbix 3.4 on Ubuntu 14.04.3 LTS