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.
I can't see a reason this wouldn't be working right now. Everything should be getting passed correctly. Can you please upload a screenshot of the error you are getting in the GUI?
Yes, but I have it commented out because of the following information I just noticed
Warning: Duplicate definition found for command 'check_nrpe' (config file '/etc/nagios3/objects/commands.cfg', starting on line 65)
Error: Could not add object property in file '/etc/nagios3/objects/commands.cfg' on line 66.
Error processing object config files!
***> One or more problems was encountered while processing the config files...
Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.
You have two commands.cfg files. One of them has the check_nrpe commented out and the other does not. If you changed them both to have it commented out, then it will absolutely fail.
I only one of them commented out (/etc/nagios3/objects/commands.cfg) the other one(/etc/nagios3/commands.cfg) did not seem to do anything. and if I reverse these two I get the same error.
Warning: Duplicate definition found for command 'check_nrpe' (config file '/etc/nagios3/objects/commands.cfg', starting on line 65)
Error: Could not add object property in file '/etc/nagios3/objects/commands.cfg' on line 66.
Error processing object config files!
***> One or more problems was encountered while processing the config files...
Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.
* errors in config!
Which I thought that meant the system must be trying to use this config file (/etc/nagios3/objects/commands.cfg) which has the code commented out.
I get the same issue. GUI has the error but everything moved and started just fine. the grep had this result:
command_name check_nrpe
command_name check_nrpe_1arg