Memory Usage Linux

Engage with the community of users including those using the open source solutions.
Includes Nagios Core, Plugins, and NCPA

Re: Memory Usage Linux

Postby abrist » Tue Jun 18, 2013 12:20 pm

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

Re: Memory Usage Linux

Postby ofadl » Tue Jun 18, 2013 2:00 pm

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

Postby ofadl » Tue Jun 18, 2013 2:04 pm

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

Re: Memory Usage Linux

Postby abrist » Tue Jun 18, 2013 2:18 pm

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

Previous

Return to Community Support

Who is online

Users browsing this forum: No registered users and 20 guests