Discussion:
[Nagios-users] check_tcp: Port must be a positive integer
K Ramanujan
2009-08-24 06:52:54 UTC
Permalink
Hi

I have configure nagios on redhat 4

Nagios version- 3.0.5

Pluging version-1.4-12
NRPE -2.12

We have print server configure on windows 2003 ... as TCP Print Server. When ever I am firing check_tcp command thorough command line it is giving the output. When I am adding on command definition it is giving error that port must be positive integer.


My definition is
Command definition is

define command{
command_name check_tcp
command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p $ARG1$ $ARG2$

}


Service definition is


define service{
use generic-service
hostgroup_name windows-servers
service_description TCP Print Server
check_command check_tcp! Xxx (port)


Please guide...



Thanks & Regards,
Ramanujan
Assaf Flatto
2009-08-24 09:24:36 UTC
Permalink
Post by K Ramanujan
Hi
I have configure nagios on redhat 4
Nagios version- 3.0.5
Pluging version-1.4-12
NRPE -2.12
We have print server configure on windows 2003 ... as TCP Print Server.
When ever I am firing check_tcp command thorough command line it is giving
the output. When I am adding on command definition it is giving error that
port must be positive integer.
My definition is
Command definition is
define command{
command_name check_tcp
command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p $ARG1$ $ARG2$
}
Service definition is
define service{
use generic-service
hostgroup_name windows-servers
service_description TCP Print Server
check_command check_tcp! Xxx (port)
Please guide...
Thanks & Regards,
Ramanujan
In the service definition you are passing only one parameter while your command definition you are
waiting for 2 parameters .

$ARG2$ will be empty , but you are not supplying it with a value.

Assaf
--
Assaf Flatto
SSP Ops Team
Linux System Administrator
169 Euston Road, London, NW1 2AE





IMPORTANT . this email and the information in it may be confidential, legally
privileged and/or protected by law. It is intended solely for the use of the
person to whom it is addressed. If you are not the intended recipient, please
notify the sender immediately and do not disclose the contents to any other
person, use it for any purpose, or store or copy the information in any medium.
Please also delete all copies of this email and any attachments from your
system.

We cannot guarantee the security or confidentiality of email communications. We
do not accept any liability for losses or damages that you may suffer as a
result of your receipt of this email including but not limited to computer
service or system failure, access delays or interruption, data non-delivery or
mis-delivery, computer viruses or other harmful components.

Copyright in this email and any attachments belong to Select Service Partner UK
Limited. Should you communicate with anyone at Select Service Partner UK Limited by
email, you consent to us monitoring and reading any such correspondence.

Nothing in this email shall be taken or read as suggesting, proposing or
relating to any agreement concerted practice or other practice that could
infringe UK or EC competition legislation.

Select Service Partner UK Limited is a company registered in England and Wales
(company number 05687183) whose registered office is at 1 The Heights, Brooklands, Weybridge. Surrey. KT13 0NY
K Ramanujan
2009-08-25 04:38:56 UTC
Permalink
Hi All,

I have configure nagios on redhat 4

Nagios version- 3.0.5

Plug in version-1.4-12
NRPE -2.12


I want to configure my entire windows server in graph...

I can able to see all windows nodes in host details and service details.

When ever I am tracing that windows machine in trend only default graph is showing. I want some more good loking.

Need your help here..


Regards,

Ramanujan
Anwar Maharban
2009-08-25 06:42:00 UTC
Permalink
Hi,

Hmm.. i guess you should have a look at Centreon
(http://www.centreon.com/) or any other similar package like that one,
cause i think that what you are looking for.
It uses nagios aswell..

Or just seek for the right addon at http://www.monitoringexchange.org

Regards,

Anwar Maharban
Post by K Ramanujan
Hi All,
I have configure nagios on redhat 4
Nagios version- 3.0.5
Plug in version-1.4-12
NRPE -2.12
I want to configure my entire windows server in graph...
I can able to see all windows nodes in host details and service details.
When ever I am tracing that windows machine in trend only default graph is showing. I want some more good loking.
Need your help here..
Regards,
Ramanujan
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now. http://p.sf.net/sfu/bobj-july
_______________________________________________
Nagios-users mailing list
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
Jim Avery
2009-08-25 10:56:53 UTC
Permalink
 Hi All,
 I have configure nagios on redhat 4
 Nagios version- 3.0.5
 Plug in version-1.4-12
 NRPE -2.12
I want to configure my entire windows server in graph...
I can able to see all windows nodes in host details and service details.
 When ever I am tracing that windows machine in trend only default graph is showing. I want some more good loking.
Have you looked at pnp4nagios? http://www.pnp4nagios.org/pnp/start
Marc Powell
2009-08-24 13:49:45 UTC
Permalink
Post by K Ramanujan
My definition is
Command definition is
define command{
command_name check_tcp
command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p
$ARG1$ $ARG2$
}
Service definition is
define service{
use generic-service
hostgroup_name windows-servers
service_description TCP Print Server
check_command check_tcp! Xxx (port)
If this is what you've got in there literally, it's not going to work
as $ARG1$ == 'Xxx', which is not a numeric port. If you've obfuscated
this for some reason, I don't understand why you did so. Assuming that
'Xxx (port)' is just a literal port *number* (i.e. 21) then this
should work fine.

To see what nagios is trying to execute, and hopefully provide
direction for you, change the command_line above to be

command_line echo "$USER1$/check_tcp -H $HOSTADDRESS$ -p $ARG1$
$ARG2$" >> /tmp/tcp.out

and check the contents of /tmp/tcp.out.

--
Marc
Continue reading on narkive:
Search results for '[Nagios-users] check_tcp: Port must be a positive integer' (Questions and Answers)
6
replies
who win the match for jonh and randy ortan?
started 2007-08-19 06:00:21 UTC
rugby league
Loading...