Skip to content
Snippets Groups Projects

5850 check hostname

Merged Hahn Axel (hahn) requested to merge add-instances-switcher into master
1 file
+ 10
1
Compare changes
  • Side-by-side
  • Inline
@@ -74,7 +74,6 @@ class cronlogrenderer extends cronlog{
if(!$aData){
$aData=$this->getServersLastLog();
}
$sTblHead='';
$iOK=0;
$iErrors=0;
@@ -95,6 +94,15 @@ class cronlogrenderer extends cronlog{
$iNextRun=$aEntry['SCRIPTSTARTTIME']+((int)$aEntry['SCRIPTTTL']*60);
$iNextRunWarn=$aEntry['SCRIPTSTARTTIME']+((int)$iTtlUsed*60);
$iNextRunErr=$aEntry['SCRIPTSTARTTIME']+(((int)$aEntry['SCRIPTTTL']+(int)$this->_iExpiredJobsFailAfter)*60);
// ticket #5850 - check hostname vs. servername in logfile
$sServerFromLogfile=preg_replace('/_.*/', '', basename($aEntry['logfile']));
if($sServerFromLogfile!=$aEntry['server']){
$aErrors[]=[
'Hostname?',
'Der Hostname im Log ['.$sServerFromLogfile.'] stimmt nicht mit Servernamen ['.$aEntry['server'].'] überein.',
];
}
if($iNextRunErr < date("U")){
$aErrors[]=[
@@ -175,6 +183,7 @@ class cronlogrenderer extends cronlog{
$sIdTable='datatable1';
$sHtml='
<!-- START '.__METHOD__.' -->
<pre>'.print_r($aData, 1).'</pre>
'
. '<h3>Letztes Logfile pro Job</h3>'
Loading