- Create cluster/ for Proxmox cluster infrastructure (SSH guide, HA monitor, UPS) - Create lxc108-oracle/ for Oracle Database documentation and scripts - Create vm201-windows/ for Windows 11 VM docs and SSL certificate scripts - Add SSL certificate monitoring scripts (check-ssl-certificates.ps1, monitor-ssl-certificates.sh) - Remove archived VM107 references (decommissioned) - Update all cross-references between files - Update main README.md with new structure and navigation Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
74 lines
3.2 KiB
Handlebars
74 lines
3.2 KiB
Handlebars
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<style>
|
|
body { font-family: Arial, sans-serif; margin: 0; padding: 20px; background-color: #f5f5f5; }
|
|
.container { max-width: 600px; margin: 0 auto; background: white; padding: 25px; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.1); }
|
|
h1 { margin-top: 0; padding-bottom: 15px; border-bottom: 3px solid #3498db; }
|
|
.status-onbatt { color: #e67e22; border-color: #e67e22; }
|
|
.status-online { color: #27ae60; border-color: #27ae60; }
|
|
.status-lowbatt { color: #c0392b; border-color: #c0392b; }
|
|
.status-shutdown { color: #8e44ad; border-color: #8e44ad; }
|
|
.alert-box { padding: 15px; border-radius: 5px; margin: 20px 0; border-left: 4px solid; }
|
|
.alert-warning { background: #fef9e7; border-color: #f39c12; }
|
|
.alert-danger { background: #fdedec; border-color: #e74c3c; }
|
|
.alert-success { background: #eafaf1; border-color: #2ecc71; }
|
|
.alert-info { background: #ebf5fb; border-color: #3498db; }
|
|
.metrics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 20px 0; }
|
|
.metric { background: #ecf0f1; padding: 15px; border-radius: 5px; text-align: center; }
|
|
.metric-label { font-size: 12px; color: #7f8c8d; text-transform: uppercase; }
|
|
.metric-value { font-size: 24px; font-weight: bold; color: #2c3e50; margin-top: 5px; }
|
|
.footer { margin-top: 25px; padding-top: 15px; border-top: 1px solid #ecf0f1; font-size: 12px; color: #7f8c8d; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h1 class="status-{{ event_class }}">[UPS] {{ event_title }}</h1>
|
|
|
|
<p><strong>Hostname:</strong> {{ hostname }}<br>
|
|
<strong>Date:</strong> {{ event_date }}<br>
|
|
<strong>Event:</strong> {{ event_type }}</p>
|
|
|
|
<div class="alert-box alert-{{ alert_type }}">
|
|
<strong>{{ event_description }}</strong>
|
|
</div>
|
|
|
|
<h3>UPS Status</h3>
|
|
<div class="metrics">
|
|
<div class="metric">
|
|
<div class="metric-label">Status</div>
|
|
<div class="metric-value">{{ ups_status }}</div>
|
|
</div>
|
|
<div class="metric">
|
|
<div class="metric-label">Battery</div>
|
|
<div class="metric-value">{{ battery_charge }}%</div>
|
|
</div>
|
|
<div class="metric">
|
|
<div class="metric-label">Input Voltage</div>
|
|
<div class="metric-value">{{ input_voltage }}V</div>
|
|
</div>
|
|
{{#if battery_runtime}}
|
|
<div class="metric">
|
|
<div class="metric-label">Runtime</div>
|
|
<div class="metric-value">{{ battery_runtime }} min</div>
|
|
</div>
|
|
{{/if}}
|
|
</div>
|
|
|
|
{{#if action_taken}}
|
|
<p><strong>Action:</strong> {{ action_taken }}</p>
|
|
{{/if}}
|
|
|
|
{{#if next_steps}}
|
|
<p><strong>Next Steps:</strong> {{ next_steps }}</p>
|
|
{{/if}}
|
|
|
|
<div class="footer">
|
|
<p>Log: /var/log/ups-events.log<br>
|
|
Proxmox UPS Monitoring System</p>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|