Hi guys, I'm new to nagios, and am having problems passing the nagios -v <config> tool. My configuration files are all in place and being processed properly, except the following line in the main nagios script:
--------- # EXTERNAL COMMAND OPTION check_external_commands=1 # EXTERNAL COMMAND CHECK INTERVAL command_check_interval=-1 # EXTERNAL COMMAND FILE command_file=/etc/nagios/cluster_commands.cfg # EXTERNAL COMMAND BUFFER SLOTS external_command_buffer_slots=4096 --------- I get the following data back after running the nagios -v command (with some cleanup to ease readability) [error] The following 5 error(s) occurred: Error: Service check command 'check_http' specified in service 'HTTP' for host 'node01.rhc1' not defined anywhere! Error: Host check command 'check-host-alive' specified for host 'localhost' is not defined anywhere! Error: Host check command 'check-host-alive' specified for host 'node01.rhc1' is not defined anywhere! Error: Service notification command 'notify-service-by-email' specified for contact 'nagiosadmin' is not defined anywhere! Error: Host notification command 'notify-host-by-email' specified for contact 'nagiosadmin' is not defined anywhere! ------ [warning] The following 1 warning(s) were generated: Warning: Host 'localhost' has no services associated with it! ------ Naturally i'm not worried about the warnings... but the errors are all complaining about commands that DO exist in the cluster_command.cfg file (referenced in my main cfg file). I have checked the path and permissions numerous times. Is this a common error. (chown nagios:nagios /etc/nagios/cluster_commands.cfg & chmod 644 /etc/nagios/cluster_commands.cfg) I'm using Nagios 3.0.2 in RHE52. The cluster_command.cfg file is a copy of the /usr/local/share/doc/nagios-plugin's very own command.cfg. The file is un-edited at the moment and has check-host-alive, and notify-host-by-email etc.... their all defined (or so they are in the file anyways). What am I missing? :( Chris ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Nagios-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
