Skip to content
Snippets Groups Projects
Commit 56c4b0ea authored by Nikolai Hartmann's avatar Nikolai Hartmann
Browse files

fix heartbeat check

parent 81a10a85
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
lastbeat=$(journalctl -eu xcache-vp-heartbeat.service | grep OK | awk '{print $1}')
lastbeat=$(journalctl -eu xcache-vp-heartbeat.service | grep OK | awk '{print $1" "$2" "$3}' | tail -n 1)
lastbeat=$(date --date="$lastbeat" "+%s")
now=$(date "+%s")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment