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.
In my case i had to disable Linux SE
Disable Firewall
Edit config file uncommenting#
Then restart the services
in my case after installing zabbix from sources (removed zabbix 4.0 because upgrading to 4.2 wasn't possible via apt on a Raspbian GNU/Linux 9.4 stretch) it loaded the config from
/usr/local/etc/zabbix_server.conf
instead from/etc/zabbix/zabbix_server.conf
After deleting
/usr/local/etc/zabbix_server.conf
and creating a symlink pointing to the correct config file in/etc/zabbix/zabbix_server.conf
it started to workEdit this file:
sudo nano /etc/default/zabbix-server
Adjust the
START
property toyes
:Then try to run Zabbix again:
sudo service zabbix-server start
There maybe IP address conflict, try host 'Zabbix server'
On RHEL/CentOS/OEL 6
Check that the firewall is allowing connection to Zabbix Server port which is 10051, as a user with root priv:
vi /etc/sysconfig/iptables
and add the following lines
restart iptables
If you have disabled IPV6, you need to also edit the hosts file and remove IPV6 line for "localhost"
remove or comment out "#" the ipv6 line for localhost
restart the zabbix-server and check if the error message is gone.
Solution might be this simple:
You do not have to change anything in /etc/zabbix/web/zabbix.conf.php (localhost is fine)