Removed pialert_pholus.log

This commit is contained in:
Jokob-sk
2023-03-04 20:47:25 +11:00
parent 1a05435691
commit 176a436ad4
5 changed files with 3 additions and 35 deletions

View File

@@ -1920,10 +1920,6 @@ def performPholusScan (timeoutSec):
# cleanup - select only lines containing a separator to filter out unnecessary data
newLines = list(filter(lambda x: '|' in x, newLines))
# regular logging
for line in newLines:
append_line_to_file (logPath + '/pialert_pholus.log', line +'\n')
# build SQL query parameters to insert into the DB
params = []

View File

@@ -364,25 +364,7 @@ if (isset($_POST['submit']) && submit && isset($_POST['skinselector_set'])) {
</div>
</div>
</div>
</div>
<div class="log-area">
<div class="row logs-row">
<textarea id="pialert_pholus_log" class="logs" cols="70" rows="10" wrap='off' readonly><?php echo file_get_contents( "./log/pialert_pholus.log" ); ?>
</textarea>
</div>
<div class="row logs-row" >
<div>
<div class="log-file">pialert_pholus.log<div class="logs-size"><?php echo number_format((filesize("./log/pialert_pholus.log") / 1000000),2,",",".") . ' MB';?>
<span class="span-padding"><a href="./log/pialert_pholus.log"><i class="fa fa-download"></i> </a></span>
</div></div>
<div class="log-purge">
<button class="btn btn-primary" onclick="logManage('pialert_pholus.log','cleanLog')"><?= lang('Gen_Purge');?></button>
</div>
</div>
</div>
</div>
</div>
<div class="log-area">
<div class="row logs-row">

View File

@@ -202,7 +202,7 @@ function cleanLog($logFile)
$path = "";
$allowedFiles = ['pialert.log', 'pialert_front.log', 'IP_changes.log', 'stdout.log', 'stderr.log', "pialert_pholus.log", "pialert_pholus_lastrun.log"];
$allowedFiles = ['pialert.log', 'pialert_front.log', 'IP_changes.log', 'stdout.log', 'stderr.log', "pialert_pholus_lastrun.log"];
if(in_array($logFile, $allowedFiles))
{

View File

@@ -650,7 +650,7 @@ The arp-scan time itself depends on the number of IP addresses to check so set t
'PHOLUS_RUN_SCHD_description' => 'Only enabled if you select <code>schedule</code> in the <a href="#PHOLUS_RUN"><code>PHOLUS_RUN</code> setting</a>. Make sure you enter the schedule in the correct cron-like format
(e.g. validate at <a href="https://crontab.guru/" target="_blank">crontab.guru</a>). For example entering <code>0 4 * * *</code> will run the scan after 4 am in the <a onclick="toggleAllSettings()" href="#TIMEZONE"><code>TIMEZONE</code> you set above</a>. Will be run NEXT time the time passes.',
'PHOLUS_DAYS_DATA_name' => 'Data retention',
'PHOLUS_DAYS_DATA_description' => 'How many days of Pholus scan entries should be kept (globally, not device specific!). The <a href="/maintenance.php#tab_Logging">pialert_pholus.log</a> file is not touched. Enter <code>0</code> to disable.',
'PHOLUS_DAYS_DATA_description' => 'How many days of Pholus scan entries should be kept (globally, not device specific!) Enter <code>0</code> to disable.',
// Nmap
'Nmap_display_name' => 'Nmap',

View File

@@ -173,8 +173,6 @@ function getData(){
$.get('api/table_plugins_objects.json', function(res) {
pluginObjects = res["data"];
console.log(pluginObjects)
$.get('api/table_plugins_history.json', function(res) {
@@ -259,8 +257,6 @@ function generateTabs()
}
}
console.log(pluginObjects)
// Generate the object rows
var obCount = 0;
for(var i=0;i<pluginObjects.length;i++)
@@ -271,12 +267,6 @@ function generateTabs()
for(var j=0;j<colDefinitions.length;j++)
{
if(colDefinitions[j].column == 'UserData' )
{
console.log(colDefinitions[j].column)
console.log(pluginObjects[i][colDefinitions[j].column])
console.log(pluginObjects[i])
}
clm += '<td>'+ getFormControl(colDefinitions[j], pluginObjects[i][colDefinitions[j].column], pluginObjects[i]["Index"]) +'</td>'
}
obRows += '<tr>' + clm + '</tr>'