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.
Zabbix server error due to problems with the firewall. As a root user, we check and confirm whether the firewall is allowing connection to Zabbix Server port which is 10051. If not, then we add the following rule in the configuration file /etc/sysconfig/iptables. Finally, restart the service in order to fix the error.
Now, on the Zabbix server, log in as an user that has admin privileges to Zabbix web gui, and create new action: Configuration -> Actions -> New Action. Name the new action someething like 'Restart Apache'.
You can find the configuration file in /etc/zabbix/zabbix_server. conf. Edit it with your favorite editor, I use Nano editor. Find the CacheSize Option and change the parameter to something greater than the default value.
The apache configuration file of Zabbix web-interface is located in /etc/httpd/conf. d/zabbix. conf. Some PHP configuration parameters are already provided.
Solution might be this simple:
sudo su
nano /etc/zabbix/zabbix-server.conf
Remove "#" in front of DBPassword=YourPassword (will change from blue to grey)
Ctrl x (Y to save and press enter to exit)
service zabbix-server restart
Now you can refresh your browser running ZABBIX. If not, you will have to do the same steps for CacheSize=32M
You do not have to change anything in /etc/zabbix/web/zabbix.conf.php (localhost is fine)
When editing anything, remember "#" in front of line means invisible to linux.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With