Page 5 of 5

Re: Memory Usage Linux

Posted: Tue Jun 18, 2013 12:20 pm
by abrist
ofadl wrote:# this command runs a program $ARG1$ with no arguments
define command {
command_name check_nrpe_1arg
command_line /usr/lib/nagios/plugins/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
}
This is the command definition you should be using as you do not pass any arguments for the check_mem check. The service check should then look like:

Code: Select all

define service{
use generic-service
host_name content.comtex.com
service_description Memory Usage
check_command check_nrpe_1arg!check_mem
}

Re: Memory Usage Linux

Posted: Tue Jun 18, 2013 2:00 pm
by ofadl
im sorry, so am changing my command definition to what you posted, or am i changing my service definition to what you posted im confused

Re: Memory Usage Linux

Posted: Tue Jun 18, 2013 2:04 pm
by ofadl
Nvm i just figured it out, i changed the service definition i had. turned out i was missing the 1arg part and now its working perfectly fine!!!!!! Thanks alot guys for all your help i really appreciate it

Re: Memory Usage Linux

Posted: Tue Jun 18, 2013 2:18 pm
by abrist
No problem, I am glad to be of help. But I am even more jubilant to close this thread with impunity! Have a great week.