- Timestamp:
- Nov 8, 2011, 2:44:12 PM (15 years ago)
- Location:
- branches/eam_branches/ipp-20110906
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
ippMonitor (modified) (1 prop)
-
ippMonitor/raw/czartool_labels.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20110906
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20110906/ippMonitor
- Property svn:mergeinfo changed
/trunk/ippMonitor (added) merged: 32366-32369,32373,32403-32404,32539,32564,32567,32601
- Property svn:mergeinfo changed
-
branches/eam_branches/ipp-20110906/ippMonitor/raw/czartool_labels.php
r32226 r32630 158 158 echo "<tr><td>Documentation</td><td><a href=\"http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/Processing\"><font color=\"blue\">here</font></a></td></tr>"; 159 159 echo "<tr><td>Cluster load</td><td><a href=\"http://ganglia.pan-starrs.ifa.hawaii.edu/?r=hour&s=descending&hc=6&c=IPP%2520Production\"><font color=\"blue\">here</font></a></td></tr>"; 160 echo "<tr><td>Who's using the cluster?</td><td><a href=\"http://ipp db01.ifa.hawaii.edu/clusterMonitor/top.html\"><font color=\"blue\">here</font></a></td></tr>";160 echo "<tr><td>Who's using the cluster?</td><td><a href=\"http://ippmonitor.ipp.ifa.hawaii.edu/ippMonitor/clusterMonitor/top.html\"><font color=\"blue\">here</font></a></td></tr>"; 161 161 echo "<tr><td>IPP metrics</td><td><a href=\"http://ipp0022.ifa.hawaii.edu/ps1sc/ippMetrics\"><font color=\"blue\">here</font></a></td></tr>"; 162 162 echo "<tr><td>Czar log pages</td><td><a href=\"http://svn.pan-starrs.ifa.hawaii.edu/trac/ipp/wiki/PS1_IPP_CzarLogs\"><font color=\"blue\">here</font></a></td></tr>"; … … 200 200 echo "<tr>"; 201 201 createTableColumnHeader("Database"); 202 createTableColumnHeader("Status ");202 createTableColumnHeader("Status (sec behind master)"); 203 203 showReplicationsStatus($REPL_HOST_GPC1, $REPL_USER_GPC1, $REPL_PASSWORD_GPC1, $REPL_DBNAME_GPC1); 204 204 showReplicationsStatus($REPL_HOST_NEBULOUS, $REPL_USER_NEBULOUS, $REPL_PASSWORD_NEBULOUS, $REPL_DBNAME_NEBULOUS); … … 903 903 //die("MySQL DB connection error: Check the configuration for $replDatabaseName"); 904 904 //die(""); 905 return ;905 return -1; 906 906 907 907 } … … 910 910 # Have a look for Last_Errno in http://dev.mysql.com/doc/refman/5.0/en/show-slave-status.html 911 911 $errorStatusInMySql = $row[18]; 912 $replStatus = ($errorStatusInMySql==0?"OK":"<font color=\"red\">PROBLEM</font>"); 912 $sec_behind = $row[32]; 913 $replStatus = ($errorStatusInMySql==0?"OK ($sec_behind)":"<font color=\"red\">PROBLEM</font>"); 913 914 echo "<tr><td>$replDatabaseName</td><td>$replStatus</td></tr>"; 914 915 if ($errorStatusInMySql!=0) {
Note:
See TracChangeset
for help on using the changeset viewer.
