Creating a criteria:

Aravinth Anto Intern t-aravinth at juspay.in
Thu Aug 2 04:56:46 CEST 2012


Thanks for replying.

So doing this :


define host{

        host_name                        test

        ;other stufs

        ;check command so that response time is less than 2s

        check_interval                  0.5

        retry_interval                  1

        max_check_attempts              10

        check_period                    24x7

        }


Will do the job?

On Wed, Aug 1, 2012 at 10:24 PM, Paul Dubuc <work at paul.dubuc.org> wrote:
> Alex Griffin wrote:
>
>> Aravinth Anto Intern wrote:
>>> Hi all, I'm new to nagios. And trying to figure out how do I do this :
>>>
>>> Response time>  2s for 10 continuous requests in a 5 minutes.
>>>
>>> If this is the case then I need to create a alert.
>>>
>>> I defined a template for this :
>>>
>>>
>>> define host{
>>>
>>>      host_name                        test
>>>
>>>      ;other stufs
>>>
>>>           ;check command so that response time is less than 2s
>>>
>>>      check_interval                  5
>>>
>>>      retry_interval                  1
>>>
>>>      max_check_attempts              10
>>>
>>>      check_period                    24x7
>>>
>>>      }
>>>
>>> For my criteria :
>>>
>>> Response time>  2s for 10 continuous requests in a 5 minutes.
>>>
>>> Is that correct?
>>>
>>> Thanks in advance.
>  >
>> No, this will only check once every 5 minutes. The max_check_attempts
>> directive is for retrying after a failed check. You need to find or
>> write a plugin that does all 10 requests itself and then set it up as a
>> *passive* check in Nagios. I believe it must be passive, otherwise
>> Nagios will kill it for running too long.
>>
>> Alex Griffin
>> ---
>
> Another way would be to set the retry interval to 0.5.  If the whole purpose
> of the check is to fail when the response time is greater than 2 seconds, then
> the check would be run every 30 seconds as long as it keeps failing and would
> enter a hard state, generating a notification, if it kept failing for 5 minutes.
>
>
> ------------------------------------------------------------------------------
> Live Security Virtual Conference
> Exclusive live event will cover all the ways today's security and
> threat landscape has changed and how IT managers can respond. Discussions
> will include endpoint security, mobile security and the latest in malware
> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at 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

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list