Following script need to be defined in both nagios comamnds and nrpe agent on the client side
#!/bin/bash
# Copyright (c) 2005 Opengaming Israel, Naor Weissmann
# operations: check if all metastat unitx are operational.
#
RETSTR="initial"
RETVAL=0
youtput=`metastat |grep -i stat |grep 'State:' |grep -v 'Okay' |wc -l`
if [ $youtput -eq 0 ]; then
RETVAL=0
RETSTR="OK - All metadevices are stable"
else
RETVAL=2
RETSTR="ERROR - Metadevices need Maintainence"
fi
echo $RETSTR
exit $RETVAL
Sunday, October 16, 2005
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.
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.
Subscribe to:
Posts (Atom)
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...
-
General Information PGPool can run on same server along with PostgreSQL DB or on stand alone server(recommended). In this article we wil...
-
login to mysql as a root: mysql -uroot -p end execute: mysql> show processlist; will show you list of processes running in MySQL a...
-
Following information is intended for bash shell only. The system variable TMOUT can be set to specify the amount of time the user is ina...