How to monitor custom ports, specifically TCP 3203 for SAP


#1

I was wondering how I can monitor a custom port. The docs seems to show that you can make custom plug-ins pretty easily, i.e. same plugin as an HTTP plug-in, except just change the port to whatever you want.

Can anyone tell me if this is something simple, if so, how? Or is it pretty involved with Perl, etc…

thanks in advance…


#2

run ./check_tcp :wink:

Luca


#3

thanks Luca. That works fine from a terminal session, but how do I use this command and specify the port in the service.cfg file?


#4

You might want to write out the command in your misccommands.cfg file. Something like:

define command{
command_name check_tcp_custport
command_line $USER1$/check_tcp -H $HOSTADDRESS$ -p $ARG1$ -w $ARG2$ -c $ARG3$
}

Then, in services, you’ll have an entry somewhere that will say

*check_command check_tcp_custport!port!warningvalue!*criticalvalue

I think that it could work that way…

Edited Tue Jan 31 2006, 11:39PM ]


#5

got it, thanks !!!