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

Merge branch 'vp' into xcache3

parents b253e5c8 52f4286c
No related branches found
No related tags found
No related merge requests found
#!/bin/bash
xrdpid=$(pgrep xrootd)
nopen=$(lsof -p $xrdpid | wc -l)
if [[ $nopen -gt 10000 ]]
then
echo "WARNING: Currently $nopen open files"
exit 1
else
echo "OK: No suspiciously high number of open files"
fi
exit 0
#!/bin/bash
lastbeat=$(journalctl -eu xcache-vp-heartbeat.service | grep OK | awk '{print $1}')
lastbeat=$(date --date="$lastbeat" "+%s")
now=$(date "+%s")
if [[ $((now - lastbeat)) -gt 300 ]]
then
echo "CRITICAL: last heartbeat to VP service more than 5 minutes ago"
exit 2
else
echo "OK: heartbeats running fine"
fi
exit 0
#!/bin/bash
if systemctl is-active systemd-nspawn@xcache --quiet
then
echo "OK: xrootd service running"
else
echo "CRITICAL: xrootd service not active"
exit 2
fi
exit 0
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