Sunday, October 16, 2005

nagios plugin script for checking status of mirrored drives via nrpe.

Following script need to be defined in both nagios comamnds and nrpe agent on the client side

# Copyright (c) 2005 Opengaming Israel, Naor Weissmann
# operations: check if all metastat unitx are operational.
youtput=`metastat |grep -i stat |grep 'State:' |grep -v 'Okay' |wc -l`

if [ $youtput -eq 0 ]; then
RETSTR="OK - All metadevices are stable"
RETSTR="ERROR - Metadevices need Maintainence"

echo $RETSTR
exit $RETVAL

nagios-the beginning

First time I've heard about nagios was 3 years ago from someone called Nathan. He went on and on about that system, how it can monitor pretty much everything and being open source can be integrated with our products. At that time I had small company called neta systems group and integrated different open source products under private brands.
somehow I've left nagios unchecked . I think cause nathan mentioned that it is waaaay to complicated to install then some other system we used :-).
anyways no I'm in opengaming and nagios was brought up again. And this time I've installed a beta version and now it monitors abut 30 server and growing.
I've made some scripts for it and will post them here as well.

solving error: Your current user or role does not have access to Kubernetes objects on this EKS cluster.

Trying to access EKS cluster with kubectl you might get an error similar to: Your current user or role does not have access to Kubernetes ob...