Monitoring Open-E Volume Groups
Posted: Wed Mar 07, 2018 5:02 pm
Hi,
I'm currently in the process of migrating plugins for Open-E to our new XI server and having an issue with a volume group check.
Distro/release: CentOS 7.4.1708
Processor: x86_64
NagiosXI Installation: Manual
I have the plugin installed, have a command configured, & service created. I can run the check from the NagiosXI server CLI, however, I cannot get output in the NagiosXI GUI when I "Run Command".
The command:
The actual script:
CLI output when supplied with an arguments:
OK - Volume Usage: 24.65%
Now from the GUI, when I run the service check with the exact same argument:
OK - Volume Usage: %
Its the equivalent of running the check at the CLI while not selecting any volume groups. Does anyone know why the float is not returned in the GUI output?
I'm currently in the process of migrating plugins for Open-E to our new XI server and having an issue with a volume group check.
Distro/release: CentOS 7.4.1708
Processor: x86_64
NagiosXI Installation: Manual
I have the plugin installed, have a command configured, & service created. I can run the check from the NagiosXI server CLI, however, I cannot get output in the NagiosXI GUI when I "Run Command".
The command:
Code: Select all
check_opene_volumeusage $USER1$/check_opene_volumeusage $ARG1$Code: Select all
VOLPERCENT=`ssh -i /usr/local/nagios/libexec/$1.key -2 -p 22223 -l api $1 volume_status | grep "lvGeneralUseGroup00;NAS" | cut -d ";" -f 6`
PERCENT=${VOLPERCENT%.*}
if [ "$PERCENT" -gt 79 ]; then
echo "Critical - Volume Usage: $VOLPERCENT%"
exit 2
elif [ "$PERCENT" -gt 59 ]; then
echo "Warning - Volume Usage: $VOLPERCENT%"
exit 1
else
echo "OK - Volume Usage: $VOLPERCENT%"
exit 0
fi
OK - Volume Usage: 24.65%
Now from the GUI, when I run the service check with the exact same argument:
OK - Volume Usage: %
Its the equivalent of running the check at the CLI while not selecting any volume groups. Does anyone know why the float is not returned in the GUI output?