Skip to content
Snippets Groups Projects
Commit 4f5d78db authored by Hahn Axel (hahn)'s avatar Hahn Axel (hahn)
Browse files

check hostname

parent faea1244
Branches
No related tags found
1 merge request!25850 check hostname
......@@ -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>'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment