Generate a unique device ID by entering your email address. This ID will be used to track your device's status.
Set up your device (computer, server, IoT device) to periodically ping our service using the provided URL.
Validate your email to receive notifications if your device stops responding for more than 5 minutes.
Monitor your servers' uptime and get instant notifications if they go down.
Keep track of your IoT devices and ensure they're functioning properly.
Monitor scheduled tasks and get notified if they fail to run.
Track network connectivity and detect outages quickly.
Create a new file named monitor.ps1 with this content:
while ($true) {
try {
Invoke-RestMethod "https://imok.lv/u/your-device-id"
Write-Host "Ping sent successfully at $(Get-Date)"
} catch {
Write-Host "Error sending ping: $_"
}
Start-Sleep -Seconds 60
}
1. Create a new file named monitor.sh:
#!/bin/bash
while true; do
curl -s https://imok.lv/u/your-device-id
echo "Ping sent at $(date)"
sleep 60
done
2. Make it executable and run:
chmod +x monitor.sh
./monitor.sh
Add to your Dockerfile:
# Add monitoring script
COPY monitor.sh /monitor.sh
RUN chmod +x /monitor.sh
# Run your application and the monitor
CMD ["/bin/bash", "-c", "/monitor.sh & your-main-application"]
Or use Docker Compose:
services:
your-service:
image: your-image
healthcheck:
test: ["CMD", "curl", "-f", "https://imok.lv/u/your-device-id"]
interval: 60s
timeout: 3s
retries: 1
your-device-id with the ID generated aboveWe recommend a 60-second interval. The system will send you an email if no ping is received for 5 minutes.
Yes, pings are limited to once per minute per device to prevent system overload.
Once your email is validated, you'll receive email alerts when your device goes offline for more than 5 minutes.
ImOK - Simple Device Status Monitoring
Need help? Contact ralfs@artificial.lv