Skip to main content

Come monitorare lo stato di Sophos RED via SSH in PRTG

Sophos 22 June 2022

All’interno della directory /var/sec/chroot-httpd/tmp/red/server ci sono alcuni file con l’ID dei dispositivi RED.

-rw-r–r– 1 root root 4705 Sep 16 16:25 red_config_A320086FD64F0F4
-rw-r–r– 1 root root 4701 Sep 16 16:25 red_config_A32009F3A854FF7
-rw-r–r– 1 root root 5671 Sep 16 16:25 red_config_A3200F4751D00F8
-rw-r–r– 1 root root 5704 Sep 16 16:25 red_config_A3200FA107E50D6
-rw-r–r– 1 root root 185 Sep 16 16:30 red_state_A320086FD64F0F4
-rw-r–r– 1 root root 181 Sep 16 16:30 red_state_A32009F3A854FF7
-rw-r–r– 1 root root 182 Sep 16 16:30 red_state_A3200F4751D00F8
-rw-r–r– 1 root root 182 Sep 16 16:30 red_state_A3200FA107E50D6

Questi file contengono informazioni in real-time sullo stato dei vari RED:

{“status”:”online”,”signal_strength”:”N/A”,”uplink”:”WAN”,”linkstate”:””,”pid”:”28520″,”
lastping”:1474036277,”uplinkstate”:0,”peer”:”79.2.48.234″,”auto_deauthorization_state”:”none”}

Con PRTG eseguiamo uno script SSH con l’utente loginuser che identifica la stringa online e riportiamo il result code di PRTG:

“0:100:RED is online”
“0:200:RED is offline”

Gli script sono contenuti in questa directory:

astaro:/var/prtg/scripts #

Esempio di script per monitorare la connessione di Pompei:

redstate_Pompei.sh

#!/bin/bash
file=”/var/sec/chroot-httpd/tmp/red/server/red_state_A3200FA107E50D6″
if grep -q online “$file”; then
echo “0:100:RED is online”
else
echo “2:200:RED is offline”
fi

 

0 0 votes
Article Rating
Subscribe
Notify of

0 Comments
Oldest
Newest Most Voted
Goline It Services Logo

News

  • GOLINE is pleased to announce that it has achieved ESET Gold Partner status for 2027. The recognition follows the successful completion of ESET’s partner certification requirements and confirms GOLINE’s continued investment in cybersecurity expertise and professional development. ESET’s partner programme is designed to support companies working with its cybersecurity solutions through dedicated technical and sales resources, training and other partner services. For GOLINE, the achievement further strengthens its collaboration with ESET and its ability to integrate ESET security technologies into the cybersecurity solutions and services it provides to businesses. ESET solutions are already part of GOLINE’s cybersecurity portfolio, alongside technologies...
  • GOLINE SA is excited to announce a new partnership with NetApp, a global leader in cloud data services and storage solutions. This collaboration aims to help organizations modernize their IT infrastructure, streamline data management, and enhance performance across cloud and hybrid environments. Modern Data Solutions for Businesses Through this partnership, GOLINE integrates advanced data management solutions, enabling businesses to securely store, manage, and access critical information across cloud, on-premises, or hybrid setups. Clients can benefit from: Flexible and scalable storage solutions to meet growing data needs Simplified management of cloud and on-premises environments Enterprise-grade security for sensitive and mission-critical data...
  • GOLINE SA is proud to announce a new strategic partnership with Omnissa, a global leader in digital workspace platforms and Horizon Cloud Service solutions. This collaboration marks a significant step forward in helping organizations embrace secure, flexible, and high-performance work environments. Why Choose Omnissa for Your Business? The platform enables virtual desktops, applications, and unified endpoint management. Organizations can deploy scalable workspaces across cloud, hybrid, or on-premises setups. Key benefits include: Easy access to desktops and apps on any device Centralized management for Windows, macOS, iOS, Android, and ChromeOS Strong security with access controls and multi-factor authentication Automated scaling to...
  • Hosting Services
  • +41 (0)91 260 76 50
0
Would love your thoughts, please comment.x
()
x
| Reply