General tcp_check question

Kashif Mohammad Kashif.Mohammad at cern.ch
Thu Feb 26 14:34:20 CET 2009


 
 
I have installed nagios for a distributed inviornment and all sites are not in my control. So when I run 
sh-3.00$ /usr/lib/nagios/plugins/check_tcp -H "<site-1>" -t 60 -p 9002
I got this output
TCP OK - 0.003 second response time on port 9002|time=0.003480s;;;0.000000;60.000000

But when I run
sh-3.00$ /usr/lib/nagios/plugins/check_tcp -H "<site-2>" -t 60 -p 9002
I get this output
CRITICAL - Socket timeout after 60 seconds
 I suspect that it is an firewall issue at that site so I wanted to know that what is underlying command of tcp_check and how can I allow or disallow tcp_check command to run on my system if I am the system administrator on that system.
 
Thanks and Regards
Kashif

 
________________________________

From: Satish Patel [mailto:satish at linuxbug.org]
Sent: Thu 2/26/2009 3:24 AM
To: Lee Azzarello; Nagios Users Mailinglist
Subject: Re: [Nagios-users] Multiple IP address SSH/HTTP check



means put to entry for 2 ip address for single host

but how it will identified this ip address belong to single host can you
give me example where i can edit this option and how?

-satish

----- Original Message -----
From: "Lee Azzarello" <lee at dropio.com>
To: "Nagios Users Mailinglist" <nagios-users at lists.sourceforge.net>
Sent: Wednesday, February 25, 2009 4:09 PM
Subject: Re: [Nagios-users] Multiple IP address SSH/HTTP check


> Treat them as two different hosts, or pick a single address to depend on.
>
> -lee
>
> On Wed, Feb 25, 2009 at 11:13 AM, Satish Patel <satish at linuxbug.org>
> wrote:
>>
>> I have client which has multiple IP address and runing apache and ssh
>> on it but i dont know how to check service on multiple ip address?
>>
>> i have define both interface IP address in hosts.cfg file
>>
>> like this.
>>
>> address 192.168.1.1,172.16.1.1
>>
>> Regards,
>>
>> Satish Patel
>>
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
>> CA
>> -OSBC tackles the biggest issue in open source: Open Sourcing the
>> Enterprise
>> -Strategies to boost innovation and cut costs with open source
>> participation
>> -Receive a $600 discount off the registration fee with the source code:
>> SFAD
>> http://p.sf.net/sfu/XcvMzF8H
>> _______________________________________________
>> 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
>>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
> CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source code:
> SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> 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
>


------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
_______________________________________________
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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090226/715381aa/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H
-------------- next part --------------
_______________________________________________
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