Monitoring a specific TPC Port

Gustavo Gaiote GGaiote at visanet.com.br
Tue Aug 26 16:37:08 CEST 2003


	Hello,

	How can I configure my Nagios to monitoring a specific TCP port?
	Here, we have a specific equipment that I need to check the TCP port
4167, if is available or not available. 
	I believe that is a service configuration... ok?

Regards,

Gustavo Gaiote




-----Mensagem original-----
De: nagios-users-request at lists.sourceforge.net
[mailto:nagios-users-request at lists.sourceforge.net] 
Enviada em: terça-feira, 26 de agosto de 2003 00:35
Para: nagios-users at lists.sourceforge.net
Assunto: Nagios-users digest, Vol 1 #1630 - 11 msgs

Send Nagios-users mailing list submissions to
	nagios-users at lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.sourceforge.net/lists/listinfo/nagios-users
or, via email, send a message with subject or body 'help' to
	nagios-users-request at lists.sourceforge.net

You can reach the person managing the list at
	nagios-users-admin at lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Nagios-users digest..."


Today's Topics:

   1. New Nagios installation (Patrick McShane)
   2. Re: New Nagios installation (James Turnbull)
   3. Segfault (Jamie Baddeley)
   4. RE: Network Badnwidth utilization question (Fred Albrecht)
   5. Re: RH 7.1 and nrpe (Scott Zawalski)
   6. send_nsca on solaris 8/9 (Todd Anderson)
   7. CGI authentication puzzle (Carroll, Jim P [PCS])
   8. nrpe_nt plugin for check cpu temperature (Phu Nguyen)
   9. check-host-alive ping substitute... (Brian May)
  10. singular notification puzzle (Carroll, Jim P [PCS])
  11. Re: Nagios client? question. (Marco Ciullini)

--__--__--

Message: 1
From: "Patrick McShane" <pem at icdc.com>
To: <nagios-users at lists.sourceforge.net>
Date: Mon, 25 Aug 2003 00:44:01 -0400
Subject: [Nagios-users] New Nagios installation

This is a multi-part message in MIME format.

------=_NextPart_000_00BC_01C36AA1.FA36A530
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable


Hi all,

I recently built a new Nagios 1.1 system and loaded up quite a few =
hosts/services including the check_nrpe plugin.   Very slick indeed!!!   =
Icons/logos/notes oh my....     The VRML screen is cool too when =
combined with the "parents" attribute.

Shorlty I'll build the MySQL DB connection for more comprehensive state =
data.=20

One quick question since starting and watching the Nagios service with a =
fews days of data (no DB backend yet, just file-based).

When viewing items like Trends/Availability in the "Reporting" section =
of the main web page, what particular set of service checks should be =
defined for EACH host (or any TCPIP entity for that matter) to insure =
that the trend/availability data has "sane" information?   Right now I =
see most of the hosts showing " 100% Time Undetermined " (gray column).  =
 I have one host that is showing some percentage numbers in the " % Time =
Up" but I don't know why its showing data and all the others show "100% =
undetermined".   Can someone help a newby out with this?

Thanks,
Pat McShane
ICDC.COM

------=_NextPart_000_00BC_01C36AA1.FA36A530
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.3790.59" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial>Hi all,</FONT></DIV>
<DIV><FONT face=3DArial></FONT> </DIV>
<DIV><FONT face=3DArial>I recently built a new Nagios 1.1 system and =
loaded up=20
quite a few hosts/services including the check_nrpe plugin.   =
Very=20
slick indeed!!!   Icons/logos/notes oh =
my....    =20
The VRML screen is cool too when combined with the "parents"=20
attribute.</FONT></DIV>
<DIV><FONT face=3DArial></FONT> </DIV>
<DIV><FONT face=3DArial>Shorlty I'll build the MySQL DB connection for =
more=20
comprehensive state data. </FONT></DIV>
<DIV><FONT face=3DArial></FONT> </DIV>
<DIV><FONT face=3DArial>One quick question since starting and watching =
the Nagios=20
service with a fews days of data (no DB backend yet, just=20
file-based).</FONT></DIV>
<DIV><FONT face=3DArial></FONT> </DIV>
<DIV><FONT face=3DArial>When viewing items like =
Trends/Availability in the=20
"Reporting" section of the main web page, what particular set of service =
checks=20
should be defined for EACH host (or any TCPIP entity for that matter) to =
insure=20
that the trend/availability data has "sane" information?   =
Right now I=20
see most of the hosts showing "<!--StartFragment --><FONT=20
face=3D"Times New Roman"> 100% Time Undetermined </FONT>" (gray=20
column).   I have one host that is showing <EM>some</EM> =
percentage=20
numbers in the "<!--StartFragment --><FONT face=3D"Times New Roman"> % =
Time=20
Up<FONT face=3DArial>" but I don't know why its showing data and all the =

others show "100% undetermined".   Can someone help a =
newby out=20
with this?</FONT></FONT></FONT></DIV>
<DIV><FONT face=3DArial></FONT> </DIV>
<DIV><FONT face=3DArial>Thanks,</FONT></DIV>
<DIV><FONT face=3DArial>Pat McShane</FONT></DIV>
<DIV><FONT face=3DArial>ICDC.COM</FONT></DIV>
<DIV><FONT face=3DArial></FONT> </DIV></BODY></HTML>

------=_NextPart_000_00BC_01C36AA1.FA36A530--



--__--__--

Message: 2
From: "James Turnbull" <james at lovedthanlost.net>
To: "Patrick McShane" <pem at icdc.com>,
	<nagios-users at lists.sourceforge.net>
Subject: Re: [Nagios-users] New Nagios installation
Date: Mon, 25 Aug 2003 16:39:25 +1000

> When viewing items like Trends/Availability in the "Reporting"
> section of the main web page, what particular set of service checks
> should be defined for EACH host (or any TCPIP entity for that matter)
> to insure that the trend/availability data has "sane" information?  
> Right now I see most of the hosts showing " 100% Time Undetermined "
> (gray column).   I have one host that is showing some percentage
> numbers in the " % Time Up" but I don't know why its showing data and
> all the others show "100% undetermined".   Can someone help a newby
> out with this?        

Have a look at the FAQ :-

http://www.nagios.org/faqs/viewfaq.php?faq_id=136

Regards

James


--__--__--

Message: 3
From: Jamie Baddeley <jamie.baddeley at vpc.co.nz>
Reply-To: jamie.baddeley at vpc.co.nz
To: nagios-users at lists.sourceforge.net
Date: Mon, 25 Aug 2003 19:27:00 +1200
Subject: [Nagios-users] Segfault

Hi All,

I've just finished a new nagios install.

checking configs, it gets to:

....Checking for circular paths between hosts...

and segfaults.

I've got about 200 hosts and about 600 services, with a moderately complex 
parent/child setup.

I'm not doing anything blatantly silly, so is it possible that I've simply 
done something wrong with my parents definitions, and instead of Nagios 
telling me so, it just hangs?

Lemme know if an strace (or insert favourite debug approach here) will help.

Cheers

jamie


--__--__--

Message: 4
Subject: RE: [Nagios-users] Network Badnwidth utilization question
Date: Mon, 25 Aug 2003 16:01:42 +0200
From: "Fred Albrecht" <Fred.Albrecht at za.tiscali.com>
To: "Anders Holm" <anders.holm at elivefree.net>,
	<nagios-users at lists.sourceforge.net>

--------------------------------------
   Please visit www.tiscali.co.za
--------------------------------------
Hi

I'm using RTG to get my interface stats out of the routers and into a DB.  I
then use RTG's graphing tools to draw my bandwidth graphs (which is very
fast).  No MRTG/APAN/CRICKET needed.  Also linked the graphs onto my nagios
pages using the extended info config files.

Part of the info I pull out of the router is the bandwidth statement (which
I assume my network guys keep up to date when they change an interfaces BW).
Nagios then uses a custom check to compare the current traffic with it's
bandwidth and logs if it reaches my specified thresholds.  Easy. ;)

fred

> -----Original Message-----
> From: Anders Holm [mailto:anders.holm at elivefree.net]
> Sent: 22 August 2003 12:30 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Network Badnwidth utilization question
> 
> 
> Hi Folks.
> 
> I'm wondering, being new to Nagios and all, is there a way to 
> check a network 
> device to see if it is reaching it's maximum network 
> bandwidth? I.e. to see if a 
> network device is getting saturated....
> 
> RTFM response are just fine.. ;) I'm quite new to Nagios but 
> have fiddled with 
> other network monitoring tools. Just not quite sure how to do 
> this with nagios, 
> which I'd like to recommend to a customer...
> 
> TIA!
> 
> //Anders//
> 
> -- 
> What you see depends on from what angle you're viewing it,
> your perception may be different from another being and yet
> you are both right and still, you are both wrong, so which
> angle holds the truth ...?
> --
> It said "Insert disk #3 but only two would fit"
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: VM Ware
> With VMware you can run multiple operating systems on a 
> single machine.
> WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
> at the same time. Free trial click 
> here:http://www.vmware.com/wl/offer/358/0
> _______________________________________________
> 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
> 


--__--__--

Message: 5
Date: Mon, 25 Aug 2003 12:03:39 +0200
From: Scott Zawalski <scott.zawalski at bundestag.de>
To: Pascal Robert <probert at cesart.com>,
	nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] RH 7.1 and nrpe

Pascal Robert wrote:

> Hi,
>
> I get some problems with nrpe when the server try to contact RH 7.1 
> machines.
>
> Server setup:
>
> - RH Linux 8
> - Nagios 1.1
> - Nagios Plugins 1.3.1
>
> Client setup:
>
> - RH Linux 7.1
> - NRPE 1.9
> - Nagios Plugins 1.3.1
>
> Nagios is working fine with anything higher than RH 7.1, it's only the 
> 7.1 machines that's giving me headaches.
> On one client, I can contact it from the server but the connection is 
> close immediately:
>
> $ libexec/check_nrpe -H xxx.xxxx.xxx -c check_disk
> CHECK_NRPE: Error receiving data from host.
>
> $ telnet xxx.xxxx.xxx 5666
> Trying 192.168.1.10...
> Connected to devgen.cesart.local.
> Escape character is '^]'.
> Connection closed by foreign host.
>
> In the clien't log (/var/log/messages), the only reason I get is this:
>
> Aug 21 10:30:43 devgen nrpe[11501]: Could not read request from 
> client, bailing out...
>
> If I connect to localhost:5666 on the client, I get an answer.
>
> And on the two other 7.1 machines, if I start nrpe with xinetd, I 
> can't connect to port 5666, even from localhost.  The only way to get 
> to this port is by running nrpe as a daemon instead of by xinetd.  But 
> in this case, I get the same problem as the first machine.
>
> I don't have any firewall rules in place, and all other clients 
> (either RH 7.2, 7.3 or 8.0) are working fine.  I did recompile nrpe 
> and the plugins on each client so it's not a binary problem either.
>
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: VM Ware
> With VMware you can run multiple operating systems on a single machine.
> WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
> at the same time. Free trial click 
> here:http://www.vmware.com/wl/offer/358/0
> _______________________________________________
> 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
>
>
What do you have under allowed hosts?

look in the nrpe.cfg and check and see if the host you are trying to 
contact your nagios client with is on this line.


Mine looks like:
allowed_hosts=1.2.3.1

Good luck,
Scott






--__--__--

Message: 6
Date: Mon, 25 Aug 2003 10:46:39 -0500
From: Todd Anderson <todd at bsd.uchicago.edu>
To: "nagios-users at lists.sourceforge.net"
<nagios-users at lists.sourceforge.net>
Subject: [Nagios-users] send_nsca on solaris 8/9

send_nsca on Solaris 8 and 9 seems to compile correctly. It fails to 
work however, the binary never really seems to execute when called by 
the ocsp command despite it having been given the correct permissions 
and ownership. I have it working fine on redhat, but the solaris 
installs refuse to work.   Has anyone had similar problems with 
send_nsca on solaris?

thanks,
Todd




--__--__--

Message: 7
Date: Mon, 25 Aug 2003 12:22:24 -0500
From: "Carroll, Jim P [PCS]" <jcarro10 at sprintspectrum.com>
To: <nagios-users at lists.sourceforge.net>
Subject: [Nagios-users] CGI authentication puzzle

Greets all,

While logged into the web interface for Nagios as myself, I only
recently discovered (as it's not somewhere I go to frequently)
that if I click on "Network Outages", I get the dreaded message:

"It appears as though you do not have permission to view information=20
you requested...

If you believe this is an error, check the HTTP server authentication=20
requirements for accessing this CGI
and check the authorization options in your CGI configuration file."

Just for fun, I tried it as guest.  No such problem.  I tried it as
nagiosadmin.  No such problem.

outages.cgi has mode 755.  The parent directory has mode 775.

Here are the relevant snippets from my cgi.cfg:

use_authentication=3D1
authorized_for_system_information=3D*
authorized_for_configuration_information=3D*
authorized_for_system_commands=3Dnagiosadmin,jcarro10
authorized_for_all_services=3Dnagiosadmin,guest
authorized_for_all_hosts=3Dnagiosadmin,guest
authorized_for_all_service_commands=3D*
authorized_for_all_host_commands=3D*

(NB:  I'm logged in as jcarro10.)

Can anyone offer a possible reason why this is happening?

jc


--__--__--

Message: 8
From: "Phu Nguyen" <Phu at uui.com>
To: <nagios-users at lists.sourceforge.net>
Date: Mon, 25 Aug 2003 16:49:27 -0700
Subject: [Nagios-users] nrpe_nt plugin for check cpu temperature

This is a multi-part message in MIME format.

------=_NextPart_000_0014_01C36B28.D9AE2B80
Content-Type: text/plain;
	charset="US-ASCII"
Content-Transfer-Encoding: 7bit

Hi everyone,

 

I'm curious if the plug-in for checking system temperature exists any
where?

 

Thank you,

Phu Nguyen.


------=_NextPart_000_0014_01C36B28.D9AE2B80
Content-Type: text/html;
	charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<html>

<head>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">


<meta name=3DGenerator content=3D"Microsoft Word 10 (filtered)">

<style>
<!--
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin:0in;
	margin-bottom:.0001pt;
	font-size:12.0pt;
	font-family:"Times New Roman";}
a:link, span.MsoHyperlink
	{color:blue;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{color:purple;
	text-decoration:underline;}
span.EmailStyle17
	{font-family:Arial;
	color:windowtext;}
@page Section1
	{size:8.5in 11.0in;
	margin:1.0in 1.25in 1.0in 1.25in;}
div.Section1
	{page:Section1;}
-->
</style>

</head>

<body lang=3DEN-US link=3Dblue vlink=3Dpurple>

<div class=3DSection1>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Hi everyone,</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>I’m curious if the plug-in for checking system =
temperature
exists any where?</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'> </span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Thank you,</span></font></p>

<p class=3DMsoNormal><font size=3D2 face=3DArial><span =
style=3D'font-size:10.0pt;
font-family:Arial'>Phu Nguyen.</span></font></p>

</div>

</body>

</html>

------=_NextPart_000_0014_01C36B28.D9AE2B80--



--__--__--

Message: 9
From: "Brian May" <brian at unearthed.org>
To: <nagios-users at lists.sourceforge.net>
Date: Mon, 25 Aug 2003 18:12:55 -0700
Subject: [Nagios-users] check-host-alive ping substitute...

Is there a good substitute for ping to see if a host is up or down? my
hosting facility is dropping all ICMP echo requests.  Should I just have a
check that randomly checks services that they box has instead? or does
anyone have a better solution?



--__--__--

Message: 10
Date: Mon, 25 Aug 2003 11:58:09 -0500
From: "Carroll, Jim P [PCS]" <jcarro10 at sprintspectrum.com>
To: <nagios-users at lists.sourceforge.net>
Subject: [Nagios-users] singular notification puzzle

Greets all,

Strange problem which I've only recently become aware of.

Summary:

- host check of router fails
- single failure notification is sent out
- status is never acknowledged
- subsequent notifications are never sent
- host recovers
- recovery notification sent out
- host fails again
- single failure notification
- status is never acknowledged
- subsequent notifications are never sent

I'm sure you can see a pattern to this.

The definition for this host belongs to a hostgroup.  That=20
hostgroup belongs to an escalation where first_notification=20
is set to 1 and last_notification is set to 0.

Thoughts?

jc


--__--__--

Message: 11
Date: Mon, 25 Aug 2003 08:33:30 +0200
From: Marco Ciullini <marco.ciullini at datamar.it>
To: nagios Users List <nagios-users at lists.sourceforge.net>
Subject: Re: [Nagios-users] Nagios client? question.

nrpe and nsca are your friends.

Nrpe (Nagios remote plugin executor) is a server that runs on the remote 
machine you want to monitor: the nagios server tells nrpe to execute the 
checks...
Nsca (Nagios Service Check Acceptor) is a server that runs on the nagios 
machine, and accepts "Passive services results" sent by remote hosts. 
It's very useful when the host you have to monitor is behind a firewall, 
and NRPE could not be reached.

http://nagios.sourceforge.net/docs/1_0/addons.html#nrpe
http://nagios.sourceforge.net/docs/1_0/addons.html#nsca

Bye


Christian Purnomo ha scritto:
> HI folks
> 
> I'm 1 day old in using Nagios.  I have been previously using Big Brother
> monitoring and quite happy with that.  I recently decided to look around
and
> found Nagios, I notice there are quite a few of features that I like from
> Nagios that I'm lacking with big brother (I haven't upgraded my BB for a
while,
> BB team may have added more features that I'm not aware of).
> 
> I have a question about the way nagios external plugin, since I can't see
nagios runs a client side on remote server, I wonder how I can monitor such
services on a remote server, which service is only connect-able from the
machine itself, hence no remote type connection.
> 
> Let's take a remote server running mysql database running with
> --bind-address=127.0.0.1 , how can I monitor this mysql database from a
> seperate nagios server? I can use 'ssh' to login into the remote server
and
> perform some tests.  Is this how you do it? 
> 
> With big brother, since big brother has a client end, all I need to do is
to
> write a module for that server, this module will talk to the BB client on
the
> remote server, the client program will then talk to the BB main server.
> 
> Many thanks
> 
> Christian.
> 
> 
> 
> -------------------------------------------------------
> This SF.net email is sponsored by: VM Ware
> With VMware you can run multiple operating systems on a single machine.
> WITHOUT REBOOTING! Mix Linux / Windows / Novell virtual machines
> at the same time. Free trial click
here:http://www.vmware.com/wl/offer/358/0
> _______________________________________________
> 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

-- 
Marco Ciullini

Datamar s.r.l.
Via Corsica 9/4 E
16128 Genova
tel +39 0105705806
fax +39 0105451440
http://www.datamar.it
mailto:marco.ciullini at datamar.it

Please avoid sending me Word, Excel or PowerPoint attachments.
See http://www.fsf.org/philosophy/no-word-attachments.html




--__--__--

_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users


End of Nagios-users Digest
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20030826/3ec969d6/attachment.html>


More information about the Users mailing list