[prev in list] [next in list] [prev in thread] [next in thread] 

List:       nagios-users
Subject:    Re: [Nagios-users] Nagios plugin check_ftp default threshold limits
From:       "Giorgio Zarrelli" <zarrelli () linux ! it>
Date:       2012-11-29 11:29:30
Message-ID: f2b85b1b489e8c7665bf6d716a8fcc71.squirrel () picard ! linux ! it
[Download RAW message or body]

Hi,

I never used this plugin but perusing through the code I see:

	/* perf-data doesn't apply when server doesn't talk properly,
	 * so print all zeroes on warn and crit. Use fperfdata since
	 * localisation settings can make different outputs */
	if(match == FALSE)
		printf ("|%s",
				fperfdata ("time", elapsed_time, "s",
				(flags & FLAG_TIME_WARN ? TRUE : FALSE), 0,
				(flags & FLAG_TIME_CRIT ? TRUE : FALSE), 0,
				TRUE, 0,
				TRUE, socket_timeout)
			);
	else
		printf("|%s",
				fperfdata ("time", elapsed_time, "s",
				(flags & FLAG_TIME_WARN ? TRUE : FALSE), warning_time,
				(flags & FLAG_TIME_CRIT ? TRUE : FALSE), critical_time,
				TRUE, 0,
				TRUE, socket_timeout)
			);

	putchar('\n');
	return result;
}

So I suppose it depends on how long it takes or you consider acceptable to
receive an answer from the daemon.

Giorgio

<quota chi="Joerg Linge">
>
> Am 27.11.2012 um 11:29 schrieb Anil_KumarV@McAfee.com:
>
>> Hi Guys
>>
>> Can you guys let us know what is the default Critical(-c) and
>> warning(-w) response time threshold limits set for the below plugin :
>>
>
> https://github.com/nagios-plugins/nagios-plugins/blob/master/plugins/check_tcp.c#L61
>
> IMHO the default is 0 so you have to define -w and -c to check against
> these thresholds
>
> Per default the state depends in the ftp server response and not on
> response time
>
> Joerg
>
>
> ------------------------------------------------------------------------------
> Keep yourself connected to Go Parallel:
> VERIFY Test and improve your parallel project with help from experts
> and peers. http://goparallel.sourceforge.net
> _______________________________________________
> 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
>


------------------------------------------------------------------------------
Keep yourself connected to Go Parallel: 
VERIFY Test and improve your parallel project with help from experts 
and peers. http://goparallel.sourceforge.net
_______________________________________________
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
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic