Posts

Showing posts with the label nagios

nagios 32bit check_load or check_disk

check _load rpm package centos 6 i386 for check_load or check_disk inside /usr/lib/nagios/plugins

NRPE: Unable to read output

root@sm41 plugins]# /usr/lib64/nagios/plugins/check_disk -w 20% -c 10% -p /dev/sda3 /usr/lib64/nagios/plugins/check_disk: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by /usr/lib64/nagios/plugins/check_disk) ----------------------------------------------------------------------------------------------------------- To know whether your system is  32 -bit or  64 -bit, type the command "uname -m" and press "Enter". This displays only the machine hardware name. It shows if your system is running  32 -bit (i686 or i386) or  64 -bit(x86_64). /usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /dev/sda3 ---------------------------------------------------------------------------------------------------------- 1. Download the script:      https://gist.githubusercontent.com/harv/f86690fcad94f655906ee9e37c85b174/raw/2cfcc7922b0c2f391afb957fd209a1f1f2f9f659/glibc-2.17_centos6.sh 2. As 'root', run:     $ sh ...

NRPE - CHECK_NRPE: Error - Could Not Complete SSL Handshake

yum install -y nrpe nagios-plugins-all sudo apt install -y nagios-nrpe-server nagios-plugins vi /etc/nagios/nrpe.cfg In this file you will find the line: allowed_hosts=127.0.0.1 This list is a comma-delimited list. Change it to: allowed_hosts=127.0.0.1,<Nagios XI server ip> service nrpe restart For Ubuntu /etc/init.d/nagios-nrpe-server restart

Nagios

For redhat/centos Client side yum install epel-release yum install  https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm # this repo is for centos 7 yum install nrpe  nagios -plugins-users  nagios -plugins-load  nagios -plugins-swap  nagios -plugins-disk  nagios -plugins-procs vi /etc/nrpe.d/op5_commands.cfg # it's optional vi /etc/ nagios /nrpe.cfg # 1.search  disk  in that file and mention hard- disk  number and restart and enable service # 2.allowed_hosts=127.0.0.1,:: 1,115.112.176.40  (mention server ip on clent pc in nrpe.conf file) systemctl restart nrpe systemctl enable nrpe for ubuntu Step 2 - Install NRPE Service sudo apt-get install nagios-nrpe-server nagios-plugins Step 3 - Configure NRPE After the installation is complete, edit the nrpe file  /etc/nagios/nrpe.cfg : vim /etc/nagios/nrpe.cfg Step 4 - Restart NRPE service nagios-nrpe-server restart Server side /usr/local/nagios/etc/objects...

Nagios cronjob to check fetch mails every minute

Crontab -e */1 * * * *    $HOME/bin/otrs.Console.pl Maint::PostMaster::MailAccountFetch >/opt/otrs/bin/log