hi all.<br><br>i have nagios 2.10 on centos 5 , i'm trying to install check_ssh plugin ( in my system is in /usr/lib64/nagios/plugins )<br>in /etc/nagios/localhost.cfg i have add this line :<br><br>define service{<br> use <div id="1gom" class="ArwC7c ckChnd">
local-service ; Name of service template to use<br>
host_name localhost<br> service_description Check ssh<br> check_command check-ssh<br> }<br><br><br>and in /etc/nagios/command.cfg this line :<br>
<br># 'check_ssh' command definition<br>define command{<br> command_name check_ssh<br> command_line $USER1$/check_ssh -H $HOSTADDRESS$<br> }<br><br><br><br>but if i try a check with nagios -v nagios.cfg<br>
<br>i have this error :<br><br># nagios -v nagios.cfg<br><br>Nagios 2.10<br>Copyright (c) 1999-2007 Ethan Galstad (<a href="http://www.nagios.org/" target="_blank">http://www.nagios.org</a>)<br>Last Modified: 10-21-2007<br>
License: GPL<br>
<br>Reading configuration data...<br><br>Running pre-flight check on configuration data...<br><br>Checking services...<br>Error: Service check command 'check-ssh' specified in service 'Check ssh' for host 'localhost' not defined anywhere!<br>
Checked 10 services.<br>Checking hosts...<br> Checked 1 hosts.<br>Checking host groups...<br> Checked 1 host groups.<br>Checking service groups...<br> Checked 0 service groups.<br>Checking contacts...<br>
Checked 1 contacts.<br>Checking contact groups...<br> Checked 1 contact groups.<br>Checking service escalations...<br> Checked 0 service escalations.<br>Checking service dependencies...<br> Checked 0 service dependencies.<br>
Checking host escalations...<br> Checked 0 host escalations.<br>Checking host dependencies...<br> Checked 0 host dependencies.<br>Checking commands...<br> Checked 24 commands.<br>Checking time periods...<br>
Checked 4 time periods.<br>Checking extended host info definitions...<br> Checked 0 extended host info definitions.<br>Checking extended service info definitions...<br> Checked 0 extended service info definitions.<br>
Checking for circular paths between hosts...<br>Checking for circular host and service dependencies...<br>Checking global event handlers...<br>Checking obsessive compulsive processor commands...<br>Checking misc settings...<br>
<br>Total Warnings: 0<br>Total Errors: 1<br><br>***> One or more problems was encountered while running the pre-flight check...<br><br> Check your configuration file(s) to ensure that they contain valid<br> directives and data defintions. If you are upgrading from a previous<br>
version of Nagios, you should be aware that some variables/definitions<br> may have been removed or modified in this version. Make sure to read<br> the HTML documentation regarding the config files, as well as the<br>
'Whats New' section to find out what has changed.<br><br><br>i'm not an expert of nagios but i have succesfull setup some standard plugin ( like check_http,check_ftp,check_smtp ..etc )<br><br>thanks for your help<br>
<font color="#888888">
carlo</font></div>