Installing NRPE
Re: Installing NRPE
Well, that's how I installed it.
When it comes to the monitoring wizard, do you run the NRPE wizard or the Linux Server wizard, or does it matter?
When it comes to the monitoring wizard, do you run the NRPE wizard or the Linux Server wizard, or does it matter?
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Installing NRPE
Yes I can see there are some differences between the NRPE wizard vs the Linux Server wizard and how it creates the services.
I think everything is OK on the client.
On the Nagios XI server do the following:
I think everything is OK on the client.
On the Nagios XI server do the following:
- CCM
Delete all the services the wizard created for the laptop
Apply Config
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Installing NRPE
Thanks.
Ran the Linux Server Wizard and most services are now checking properly. I am getting "Could not parse argument" and Status Unknown for disk usage and cpu load.
Here's the command for check disk:
check_nrpe!check_disk!-a '-w 20% -c 10% -p /dev/sda1'
Mahalo
Ran the Linux Server Wizard and most services are now checking properly. I am getting "Could not parse argument" and Status Unknown for disk usage and cpu load.
Here's the command for check disk:
check_nrpe!check_disk!-a '-w 20% -c 10% -p /dev/sda1'
Mahalo
You do not have the required permissions to view the files attached to this post.
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Installing NRPE
For the could not parse arguments ones, can you show us the command definition/arguments being passed from those services in the ccm? And also, a copy of the remote host's nrpe.cfg would be great. Unless it is the same one you posted previously, and you have not modified it.
Re: Installing NRPE
At the bottom of the nrpe.cfg file, all the command lines involving -w $ARG1$ -c $ARG2$ were commented out.
I removed the # on those lines and now I get Status Unknown. Unknown Argument.
Should I try removing the client then reinstalling it? Thinking there might be something left over from when I originally tried to set this up with nrpe wizard?
I removed the # on those lines and now I get Status Unknown. Unknown Argument.
Should I try removing the client then reinstalling it? Thinking there might be something left over from when I originally tried to set this up with nrpe wizard?
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
Re: Installing NRPE
No, if some checks are working, then your issue is most likely with the configuration of the agent.toleolu wrote:Should I try removing the client then reinstalling it?
Could you post your XI $ARG$ configuration and the remote nrpe.cfg?
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: Installing NRPE
I hope this is what you meant.
The nrpe.cfg is attached.
The nrpe.cfg is attached.
You do not have the required permissions to view the files attached to this post.
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
Re: Installing NRPE
We usually include the command definitions for our agent in the common.cfg config. Is it located in the follow directory:
If so, you may want to comment out whatever command lines you uncommented from nrpe.cfg, as the proper commands are located in common.cfg.
As far as the partition checks are concerned, lets try to run the check locally (on the remote system) as user nagios with the "very, very verbose" flag (-vvv):
Post the output of the command.
Code: Select all
ls -la /usr/local/nagios/etc/nrpeAs far as the partition checks are concerned, lets try to run the check locally (on the remote system) as user nagios with the "very, very verbose" flag (-vvv):
Code: Select all
cd /usr/local/nagios/libexec
su nagios -c "./check_disk -vvv -w 20% -c 10% -p /dev/sda1"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.
-
slansing
- Posts: 7698
- Joined: Mon Apr 23, 2012 4:28 pm
- Location: Travelling through time and space...
Re: Installing NRPE
Edit: Woops, take a look at abrist's post first
Ahhh there is the problem, you have an ARG2 defined but only one ARG slot on the actual command. Additionally, this is what NRPE expects to receive:
I would honestly shift your entire $ARG2$ line in nagios to the $ARG1$ line to make it easier, and then remove everything from your NRPE command but:
Your new command in XI should look like the following on the $ARG1$ line:
Ahhh there is the problem, you have an ARG2 defined but only one ARG slot on the actual command. Additionally, this is what NRPE expects to receive:
Code: Select all
command[check_disk]=/usr/local/nagios/libexec/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$
Code: Select all
command[check_disk]=/usr/local/nagios/libexec/check_disk $ARG1$Code: Select all
check_disk -a '-w 20% -c 10% -p /dev/sda1'Re: Installing NRPE
Wow, that's a lot to digest.
Except for going in and removing the comment marker on those lines in the nrpe.cfg file, I've stayed out of these files and just ran everything per the default installation and wizard config documentation.
All the Windows Server install and configs went off without a hitch, so I'm wondering if I'm doing something wrong on the Linux side, or this is just kind of how things go when setting these agents up on a Linux box.
That's not a Windows versus Linux statement mind you, just trying to understand how all this works.
Except for going in and removing the comment marker on those lines in the nrpe.cfg file, I've stayed out of these files and just ran everything per the default installation and wizard config documentation.
All the Windows Server install and configs went off without a hitch, so I'm wondering if I'm doing something wrong on the Linux side, or this is just kind of how things go when setting these agents up on a Linux box.
That's not a Windows versus Linux statement mind you, just trying to understand how all this works.
Charles Masteller
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates
Information Systems Specialist
Hawaii Health Systems Corp.
"No one will ever need more than 640K RAM". Bill Gates