Move nagios client and server into a namespaced role.

This commit is contained in:
Ralph Bean 2016-02-23 02:35:50 +00:00
parent 2226a9eae9
commit 0cf7929bac
658 changed files with 24 additions and 24 deletions

View file

@ -0,0 +1,19 @@
#!/bin/bash
RUNNING_VMS=`testcloud instance list | grep -i 'running' | wc -l`
CRITICAL=20
WARNING=15
if [ $RUNNING_VMS -gt $CRITICAL ]
then
echo "Testcloud: CRITICAL Number of VMs running: $RUNNING_VMS"
exit 2
elif [ $RUNNING_VMS -gt $WARNING ]
then
echo "Testcloud: WARNING Number of VMs running: $RUNNING_VMS"
exit 1
else
echo "Testcloud: OK Number of VMs running: $RUNNING_VMS"
exit 0
fi