Skip to content
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .omc/sessions/a1a9193b-aae0-43d7-bd1f-726d20d95ee8.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"session_id": "a1a9193b-aae0-43d7-bd1f-726d20d95ee8",
"ended_at": "2026-04-09T11:54:31.477Z",
"reason": "other",
"agents_spawned": 0,
"agents_completed": 0,
"modes_used": []
}
Comment thread
TheWitness marked this conversation as resolved.
Outdated
8 changes: 8 additions & 0 deletions .omc/sessions/a22869a1-89d7-4361-99da-c0e9ddd0c107.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"session_id": "a22869a1-89d7-4361-99da-c0e9ddd0c107",
"ended_at": "2026-04-09T11:42:50.950Z",
"reason": "other",
"agents_spawned": 2,
"agents_completed": 0,
"modes_used": []
}
Comment thread
TheWitness marked this conversation as resolved.
Outdated
2 changes: 2 additions & 0 deletions db_functions.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

declare(strict_types = 1);

Comment thread
TheWitness marked this conversation as resolved.
/*
Expand Down
2 changes: 2 additions & 0 deletions images/index.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

declare(strict_types = 1);

Comment thread
TheWitness marked this conversation as resolved.
/*
Expand Down
2 changes: 2 additions & 0 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2026 The Cacti Group |
Expand Down
2 changes: 2 additions & 0 deletions locales/LC_MESSAGES/index.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

declare(strict_types = 1);

Comment thread
TheWitness marked this conversation as resolved.
/*
Expand Down
2 changes: 2 additions & 0 deletions locales/index.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2026 The Cacti Group |
Expand Down
2 changes: 2 additions & 0 deletions monitor.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

declare(strict_types = 1);

Comment thread
TheWitness marked this conversation as resolved.
/*
Expand Down
2 changes: 2 additions & 0 deletions monitor_controller.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

declare(strict_types = 1);

Comment thread
TheWitness marked this conversation as resolved.
/*
Expand Down
8 changes: 5 additions & 3 deletions monitor_render.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

declare(strict_types = 1);

Comment thread
TheWitness marked this conversation as resolved.
/*
Expand Down Expand Up @@ -668,13 +670,13 @@ function getHostStatus(array $host, bool $real = false): int {
global $thold_hosts, $iclasses;

// If the host has been muted, show the muted Icon
if ($host['status'] != 1 && in_array($host['id'], $thold_hosts, true)) {
if ($host['status'] != 1 && in_[$host['id'], $thold_hosts, true]) {
$host['status'] = 4;
}

if (in_array($host['id'], $_SESSION['monitor_muted_hosts'], true) && $host['status'] == 1) {
if (in_[$host['id'], $_SESSION['monitor_muted_hosts'], true] && $host['status'] == 1) {
$host['status'] = 5;
} elseif (in_array($host['id'], $_SESSION['monitor_muted_hosts'], true) && $host['status'] == 4) {
} elseif (in_[$host['id'], $_SESSION['monitor_muted_hosts'], true] && $host['status'] == 4) {
Comment thread
TheWitness marked this conversation as resolved.
Outdated
$host['status'] = 9;
} elseif ($host['status'] == 3) {
if ($host['cur_time'] > $host['monitor_alert'] && !empty($host['monitor_alert'])) {
Expand Down
2 changes: 2 additions & 0 deletions poller_functions.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

declare(strict_types = 1);

Comment thread
TheWitness marked this conversation as resolved.
/*
Expand Down
2 changes: 2 additions & 0 deletions poller_monitor.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

declare(strict_types = 1);

Comment thread
TheWitness marked this conversation as resolved.
/*
Expand Down
4 changes: 3 additions & 1 deletion setup.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php

declare(strict_types=1);
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2026 The Cacti Group |
Expand Down Expand Up @@ -395,7 +397,7 @@ function monitor_device_action_prepare($save) {
}
}

function monitor_device_action_array($device_action_array) {
function monitor_device_action_[$device_action_array] {
Comment thread
TheWitness marked this conversation as resolved.
Outdated
$device_action_array['monitor_settings'] = __('Change Monitoring Options', 'monitor');
$device_action_array['monitor_enable'] = __('Enable Monitoring', 'monitor');
$device_action_array['monitor_disable'] = __('Disable Monitoring', 'monitor');
Expand Down
2 changes: 2 additions & 0 deletions sounds/index.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<?php

declare(strict_types=1);

/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2026 The Cacti Group |
Expand Down
2 changes: 2 additions & 0 deletions themes/classic/index.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php

declare(strict_types=1);
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2026 The Cacti Group |
Expand Down
2 changes: 2 additions & 0 deletions themes/dark/index.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php

declare(strict_types=1);
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2026 The Cacti Group |
Expand Down
2 changes: 2 additions & 0 deletions themes/index.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php

declare(strict_types=1);
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2026 The Cacti Group |
Expand Down
2 changes: 2 additions & 0 deletions themes/midwinter/index.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php

declare(strict_types=1);
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2026 The Cacti Group |
Expand Down
2 changes: 2 additions & 0 deletions themes/modern/index.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php

declare(strict_types=1);
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2026 The Cacti Group |
Expand Down
2 changes: 2 additions & 0 deletions themes/paper-plane/index.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php

declare(strict_types=1);
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2026 The Cacti Group |
Expand Down
2 changes: 2 additions & 0 deletions themes/paw/index.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php

declare(strict_types=1);
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2026 The Cacti Group |
Expand Down
2 changes: 2 additions & 0 deletions themes/sunrise/index.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<?php

declare(strict_types=1);
/*
+-------------------------------------------------------------------------+
| Copyright (C) 2004-2026 The Cacti Group |
Expand Down
Loading