Memory Usage Linux

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Memory Usage Linux

Post 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
}
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
ofadl
Posts: 201
Joined: Mon Jun 03, 2013 8:57 am

Re: Memory Usage Linux

Post 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
ofadl
Posts: 201
Joined: Mon Jun 03, 2013 8:57 am

Re: Memory Usage Linux

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Memory Usage Linux

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked