fixing status label in index.php
fixing status label in index.php
Just upgraded from 1.19.4 to 1.20.1. Took a bit of work, but everything seems to be working fine now. The only remaining problem, which is just cosmetic, is that the status doesn't show correctly. It always says "Stopped" no matter what. Any hints on how to debug this problem? Thanks!
ok, did some more looking around and it seems like the problem is that the php calls are not getting the output from the various perl scripts. In zm_funcs.php/daemonCheck(), $result = exec ($string) where
$string is /usr/local/bin/zmdc.pl check
doesn't populate $result. Running the above command in a shell works fine and prints out "running"
A similar thing seems to be happening in zm_html_view_console.php where $monitor['zmc'] and $monitor['zma'] are empty because they are not capturing the results of the scripts they are calling. This causes the sources to all appear red in the display.
Any help appreciated on figuring out this problem.
$string is /usr/local/bin/zmdc.pl check
doesn't populate $result. Running the above command in a shell works fine and prints out "running"
A similar thing seems to be happening in zm_html_view_console.php where $monitor['zmc'] and $monitor['zma'] are empty because they are not capturing the results of the scripts they are calling. This causes the sources to all appear red in the display.
Any help appreciated on figuring out this problem.
- zoneminder
- Site Admin
- Posts: 5215
- Joined: Wed Jul 09, 2003 2:07 pm
- Location: Bristol, UK
- Contact: