![]() Testing runcmd command from the nagios server: Granting NRPE Permission to Restart Services Run the following command as root to give NRPE permission to restart services.Add below mentioned command below the commands section in the nrpe.cfg file:Ĭommand=sudo service $ARG1$ restart Configuring the Command in NRPE Open your nrpe.cfg file in a text editor and add the following line to define the command in NRPE. Open NRPE configuration file and make below mentioned changes:ī.To execute commands on remote nagios client follow below steps: Yum –enablerepo=epel -y list nagios-plugins*Ģ. Yum –enablerepo=epel -y install nrpe nagios-plugins Working with Nagios Server and NRPE Client to automatically restart services on failureĮxecuting Remote Commands using Nagios and NRPE update the remote client nrpe.cfg config file with the command=/usr/lib64/nagios/plugins/check_memory -u.in our dev environment i gave 755, please verify whether you important to change the execute permissions to that check_memory similar to the other check_plugins(i mean, the execute permission should be given to the nagios.Copy the perl script and write it as "check_memory" (or check_mem orĪ suitable name for you) in the same directory as where you have the.$ /usr/local/nagios/libexec/check_mem.pl -w 10 -c 5 -f This is the link from the above plugin page.simple and good documentation. its a perl script, so not even an installation needed. but the check_memory plugin is available from the ![]() ![]() Yes, i do thought why they didnt include a plugin which will check the memory, when they have included check_swap and check_disk. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |