I need list of commands that i need to mention in commands.cfg file for OS monitoring parameters like CPU, users, swap and memory...
Can anyone provide them to me. I am trying to monitor remote system using add-ocheck_by_ssh plugin instead of NRPE add-on.
list of commands that i need to mention in commands.cfg
-
- Posts: 4
- Joined: Thu Nov 13, 2014 7:35 am
Re: list of commands that i need to mention in commands.cfg
Can you be a bit more specific? What OS are you trying to monitor? That will greatly affect what commands need to be run over SSH.
Former Nagios employee
-
- Posts: 4
- Joined: Thu Nov 13, 2014 7:35 am
Re: list of commands that i need to mention in commands.cfg
I am trying to monitor "SUSE Linux Enterprise Server 11" on which Hadoop is running. We have monitoring enabled for Hadoop services using nagios over ssh. I would like to monitor OS parameters like disk, CPU usage and memory..etc. I am unable to update commands.cfg file with correct commands for monitoring OS parameters. i am not sure how to mention threshold levels for these parameters.tmcdonald wrote:Can you be a bit more specific? What OS are you trying to monitor? That will greatly affect what commands need to be run over SSH.
For example :-
define command {
command_name check_ssh_load
command_line $USER1$/check_by_ssh -H $HOSTADDRESS$ -C "/usr/lib64/nagios/plugins/check_load -w $ARG1$ -c $ARG2$"
}
In the smae way i need commands for other parameters of OS like disk, CPU usage, memory, users.. etc.
Re: list of commands that i need to mention in commands.cfg
Well, a default install of nrpe and nagios plugins on the remote host should get you those base checks. Additionally, most core installs will include these base check commands. What is the output of:
Code: Select all
grep "check_" /path/to/commands.cfg | grep command_name
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.
"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.
Re: list of commands that i need to mention in commands.cfg
Even better, since not all commands would start with "check_" is to:
Since those are the directives that define the commands to execute.
Code: Select all
grep "command_name" commands.cfg
or
grep "check_command" services.cfg
Re: list of commands that i need to mention in commands.cfg
Yeah, probably a good call. I was trying to eliminate all of the commands that are used more for internal purposes. Either will work I guess.eloyd wrote:Since those are the directives that define the commands to execute.
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.
"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.