abfabebb17
Change-Id: Ied0ccbc955c00c77b691d9260cb1077ae2894afd
17 lines
321 B
Bash
17 lines
321 B
Bash
#!/bin/bash
|
|
|
|
source ~/openrc
|
|
|
|
output=$(nova service-list | grep down)
|
|
if [ $? -eq 0 ]; then
|
|
echo -n "CRITICAL - OpenStack Nova services down: "
|
|
echo "${output}" | awk '{print $2,$4}' | while read LINE; do
|
|
echo -n "${LINE}; "
|
|
done
|
|
echo ""
|
|
exit 2
|
|
else
|
|
echo "OK - All nodes up"
|
|
exit 0
|
|
fi
|