[ZBX-929] PHP Frontend bug in dashboard Created: 2009 May 29  Updated: 2017 May 30  Resolved: 2009 Jun 05

Status: Closed
Project: ZABBIX BUGS AND ISSUES
Component/s: Frontend (F)
Affects Version/s: 1.6
Fix Version/s: 1.6

Type: Incident report Priority: Major
Reporter: Sven Goldt Assignee: Unassigned
Resolution: Won't fix Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

Solaris


Attachments: JPEG File screenshot-1.jpg    

 Description   

The dashboard claims that the Zabbix Server is not running which is wrong.

1. fsockopen returns FALSE on error so please compare with FALSE in config.inc.php:
$status["zabbix_server"] = ($checkport == FALSE) ? S_NO : S_YES;

2. in blocks.inc.php
$table->AddRow(array(S_ZABBIX_SERVER_IS_RUNNING,new CSpan($status['zabbix_server'], ($status['zabbix_server'] == S_YES ? 'on' : 'off')),' - '));

So it is "on" if Status is S_YES, not "off".

So far this only fixes the color of the Zabbix Server Status, but the text is still "no" for unknown reasons.

ZABBIX server is running No -



 Comments   
Comment by Alexei Vladishev [ 2009 Jun 05 ]

Thanks for reporting this. We will take a look soon.

Comment by Artem Suharev (Inactive) [ 2009 Jun 05 ]

Nothing to fix.

Comment by Sven Goldt [ 2009 Jun 05 ]

Nothing to fix ? I gave you a partial fix but even that you can't do ?

Comment by Sven Goldt [ 2009 Jun 05 ]

With the partial fix the color of "No" just changed from red to green.

Comment by Artem Suharev (Inactive) [ 2009 Jun 09 ]

If you would done more research you would notice that 'on' and 'off' is a CSS classes, which represent green coloring for off and red for on. So when server is running we use class 'off' which is for green!!!

BTW: You haven't mentioned zbx version... so I assume that your zbx server and frontend are located on the separate servers.

Comment by Sven Goldt [ 2009 Jun 09 ]

Well, i haven't mentioned the version because it is given already in "Affects Version/s" at the top of the page.
The Zabbix server and it's frontend are on the same machine.
I am not concerned of the color, i am concerned about the "No" instead of "Yes".
How can the frontend display the latest values when the zabbix server is not running ? It''s because the server IS running.

Do you see "ZABBIX server is running Yes -" on your dashboard screen ?

Comment by Artem Suharev (Inactive) [ 2009 Jun 09 ]

Well there are 4 releases by now in 1.6 branch.. and sources are different.

Yes, I do see it up and running.

If server and frontend on the same server, then check if php is compiled with sockets support.

Comment by Sven Goldt [ 2009 Jun 09 ]

Registered Stream Socket Transports: tcp, udp, unix, udg, ssl, sslv3, sslv2, tls

The Version is the latest but i guess 1.6.1 - 1.6.4 would all show "No".

Comment by Artem Suharev (Inactive) [ 2009 Jun 09 ]

No, you must find module sockets, and it must be enabled.

Comment by Sven Goldt [ 2009 Jun 10 ]

I recompiled php and explicitely added "--enable-sockets" but nothing changed.
When configure finds socket support it will be added automatically anyways and in my case no modules are used so every extension is built-in:
extensions=" libxml openssl pcre zlib bcmath calendar ctype curl date dom filter gd hash iconv json mbstring mysql oci8 pdo pdo_sqlite posix reflection session simplexml sockets spl sqlite standard tokenizer xml xmlreader xmlwriter"
phpinfo() shows also: Sockets Support enabled

Comment by Artem Suharev (Inactive) [ 2009 Jun 10 ]

In zabbix.conf.php those two variables must be defined:

$ZBX_SERVER = "your.zabbix.server.ip";
$ZBX_SERVER_PORT = "port";

Check this.

Comment by Sven Goldt [ 2009 Jun 10 ]

Great. That did it !

Thanks,
Sven

Comment by Artem Suharev (Inactive) [ 2009 Jun 10 ]

Glad to hear that!

I hope that you do understand that it is a onetime support.
Sorry but we do not have so much time to help everybody.

Next time, before posting please try to search for your problem on our forum ( http://www.zabbix.com/forum/index.php ).

Comment by Igor Danoshaites (Inactive) [ 2009 Jun 16 ]

Hi!
I close this issue as it has been resolved some time ago.
For the next time please close issues when it is resolved by us and checked on your side.
Thank you.

Generated at Fri Apr 04 13:20:25 EEST 2025 using Jira 9.12.4#9120004-sha1:625303b708afdb767e17cb2838290c41888e9ff0.