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

Merge branch 'add-instances-switcher' into 'master'

5850 check hostname

See merge request !2
parents 9fb41b0b a474e8f4
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,22 @@ 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(!strstr($sServerFromLogfile, ".")){
$aErrors[]=[
'No FQDN',
'Der Hostname im Log ['.$sServerFromLogfile.'] ist kein KFQDN.',
];
}
if($iNextRunErr < date("U")){
$aErrors[]=[
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment