cd /usr/local/nagios/libexec
./check_nrpe -H 192.168.19.141 -c check_disk -a '-w 20% -c 10% -p /'
I was unware that you had to install a plug-in for a service in which Nagios offers you during the configuration wizard.
This is mostly due to your installation method, as source and repo installs may not include all the plugins used by the linux nrpe wizard in XI (which uses the linux-nrpe-agent tarball but does not support all linux distros). That was actually the primary purpose of the ubuntu ppa, but it looks like you were having problems with that. You could always just grab the few non standard plugins you want to use with the linux agent wizard by extracting them out of the linux-nrpe-agent tarball.
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.
By restarting xinetd and nrpe, you most likely now have 2 nrpe services running. So lets kill all instances of nrpe, and delete the /etc/init.d/nrpe init script so that does not get loaded again. And then from now on, only restart nrpe through xinetd.
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.
After trying to delete the file, it says the NRPE directory did not exsist. So I did LS and the only one that slightly resembeled it was nagios-nrpe-server, should I delete that instead?
hmmmm. We need to full stop here. You should consider either rolling back to before nrpe was installed, or you need to clean up the conflicting installations. nagios-nrpe-server is the init script installed from the debian(ubuntu) package. So that would be the one to remove, though you may be better off uninstalling the nrpe package through apt:
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 feels like I haven't got the knowledge in order to complete this set-up, even with your remote help. What would you suggest? because I can't keep bothering you day after day.
I could try the PPA again? Or I may just have to edit my project and try and different server but apart from Windows and Ubuntu, I can't see any other that would be easier to configure.
CentOS 6 is very easy (for a remote host) as our linux-nrpe-agent works out of the box with it. My suggestion would be to start fresh with the ubuntu ppa or try centos on the monitored host.
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.
I'll take your advise and try PPA with Ubuntu first and then if that fails I'll try CentOS6. The reason I went for ubuntu is because I just felt it was more widley used in business rather than other options (excluding windows).
Not to be cheeky, but Is it ok If I still ask for help regarding the PPA installation? As no doubt I'll get into trouble and if so do you want me to keep posting here? Or should I PM you in order to stop flooding this post?.
Lets close this thread out and start a new one with the ppa install. You can follow the information in Tony's post on page 1 in this thread. But we should probably not push this thread any further as any resolution will just confuse a future forum searcher. The trick with nrpe is that there are multiple ways to compile/install it. You should only use one. For your use case with ubuntu, the ppa is the easiest way. You will run into other distros that do not have any "special" nrpe support, and those you will have to use a package install or a source install. But for ease of learning, start with the ppa.
Note: you should wipe the ubuntu box or at least remove the the nrpe package from apt and cleanup the install from source. If this box is just pure testing and not production, just wipe it.
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.