I tried the IP address from the command line (logged in as nagios), and I did get the expected reponse: FTP OK - ......etc. There is only one daemon running for nagios. BTW, there are other services setup and running okay for this particular host. It's just that the service "check_ftp" responds with "Connection refused" on the web interface.
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marc Powell Sent: Thursday, January 11, 2007 2:54 PM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] CHECK_FTP returns "Connection refused" Always respond on list so that others may benefit from your experience. > -----Original Message----- > From: Bret Goodfellow [mailto:[EMAIL PROTECTED] > Sent: Thursday, January 11, 2007 2:45 PM > To: Marc Powell > Subject: RE: [Nagios-users] CHECK_FTP returns "Connection refused" > > Okay, I put the "echo" back in to see what was being executed. Here it > is: > > /usr/lib64/nagios/plugins/check_ftp -H dev01 This is not possible if the information you have given previously about your current host and command definitions is correct. Your command definition uses the $HOSTADDRESS$ macro. That value can only be 10.8.24.170 as defined in your host definition, therefore the output you have to be seeing is /usr/lib64/nagios/plugins/check_ftp -H 10.8.24.170 Which is correct, the configuration or the output? You must be restarting nagios to test the command{} definition variations so nagios should be using the information you provided. Are you sure that nagios is reading the cfg_file(s) with the host{} definition and/or command{} definition you provided earlier and not some other? > This command looks no different from what I have run from the command > line. And to answer the last question, the service has not been > successful from the web interface. Nagios isn't running in a login shell so your OS could be doing something funny with the hostname expansion needed to perform the DNS lookup. *shrug*. Regardless, it should be using the IP and not the hostname 'dev01' anyway so I think there's something else going on. -- Marc ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net 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 ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users@lists.sourceforge.net 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