LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-16-2014, 01:02 PM   #1
socalheel
Member
 
Registered: Oct 2012
Location: Raleigh, NC
Distribution: CentOS / RHEL
Posts: 158

Rep: Reputation: 3
nagios critical socket timeout with check_ftp


i'm not sure why i am getting false alarms from nagios while checking ftp on a remote server.

i have tried a few options with the check_ftp command such as increasing the timeout value to 20, 30, and 60. each of those occurrences did not solve the problem.

both the remote server and nagios server are CentOS boxes.

here is my nagios alert:
Code:
Current Status:	  CRITICAL   (for 0d 0h 22m 32s)  (Has been acknowledged)
Status Information:	CRITICAL - Socket timeout after 10 seconds
here is the manual check_ftp result:
Code:
[root@monsrvr nagios]# /usr/lib/nagios/plugins/check_ftp -H remote.server.net
FTP OK - 0.093 second response time on port 21 [220 remote.server.net FTP Service!  Access is restricted to users with valid Company hosting accounts, all other access is prohibited!]|time=0.093283s;;;0.000000;10.000000
[root@monsrvr nagios]#
any ideas?
 
Old 03-17-2014, 04:05 AM   #2
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
Can you post the configuration for check_ftp command and how you pass the arguments for this command?
 
Old 03-17-2014, 12:22 PM   #3
socalheel
Member
 
Registered: Oct 2012
Location: Raleigh, NC
Distribution: CentOS / RHEL
Posts: 158

Original Poster
Rep: Reputation: 3
for our nagios configuration, we use a web interface (Lilac) to set up monitoring.

here is the check_ftp in services.cfg:

Code:
define service {
        host_name       servername.serverdomain
        service_description     FTP
        initial_state   o
        is_volatile     0
        max_check_attempts      7
        normal_check_interval   2
        retry_interval  1
        first_notification_delay        0
        active_checks_enabled   1
        passive_checks_enabled  1
        check_period    24x7
        parallelize_check       1
        obsess_over_service     1
        check_freshness 1
        freshness_threshold     180
        event_handler_enabled   1
        process_perf_data       1
        retain_status_information       1
        retain_nonstatus_information    1
        notification_interval   4
        notification_period     24x7
        notifications_enabled   1
        action_url      /pnp4nagios/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$
        check_command   check_nrpe!check_ftp
        icon_image      plug_in.png
        display_name    FTP
        notification_options    w,u,c,r,f,s
        stalking_options        o,w,u,c
        contact_groups  Null Placeholder Group
        servicegroups   Internal Services
}

here is the check_ftp in commands.cfg
Code:
define command {
        command_name    check_ftp
        command_line    $USER1$/check_ftp -H $HOSTADDRESS$ $ARG1$ -t 30
}
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
socket timeout error in nagios ravis.1808@gmail.com Linux - Networking 6 04-18-2018 08:18 AM
nagios - nrpe: is it possible to establish warning/critical levels? eantoranz Linux - Server 5 02-21-2013 04:59 PM
HTTP CRITICAL on Nagios Kuldeep1333 Linux - Server 2 02-18-2013 02:01 AM
service showing critical in nagios rajiv.patil82 Linux - Software 2 09-27-2010 02:23 AM
Nagios: Mail Alert for a single critical. bkcreddy17 Linux - Newbie 2 11-10-2009 11:23 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:05 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration