Results 1 to 4 of 4

Thread: Need help on check different TCP port

  1. #1
    Join Date
    Oct 2012
    Beans
    11

    Question Need help on check different TCP port

    hai guys. I need help on checking certain tcp port on nagios. I just use this command to checking port 902. But the error appear when i try to validate. I just figure myself, but it did not work. Need guide. Thanks

    define service {
    use generic-service
    host_name ESX10,ESX11
    service_description ISS-RealSecure
    check_command check_tcp -p 902
    }

  2. #2
    Join Date
    Nov 2006
    Location
    Belgium
    Beans
    3,020
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Need help on check different TCP port

    your check_command in the service def should look something like
    Code:
     check_command     check_tcp!902


    this refers/should refer to a command definition (elsewhere in your nagios conf files, maybe in /etc/nagios-plugins/config/tcp_udp.cfg), something like
    Code:
    command_name	check_tcp
    command_line   <path to plugin> -p $ARG1$ <...>
    see also http://users.telenet.be/mydotcom/how.../commands.html

  3. #3
    Join Date
    Oct 2012
    Beans
    11

    Smile Re: Need help on check different TCP port

    Quote Originally Posted by koenn View Post
    your check_command in the service def should look something like
    Code:
     check_command     check_tcp!902


    this refers/should refer to a command definition (elsewhere in your nagios conf files, maybe in /etc/nagios-plugins/config/tcp_udp.cfg), something like
    Code:
    command_name	check_tcp
    command_line   <path to plugin> -p $ARG1$ <...>
    see also http://users.telenet.be/mydotcom/how.../commands.html
    Thanks! it work! =)
    Yesterday i was thinking about define new services in command.cfg for every TCP port that need to be monitor. If i define one by one,let say i have 300 TCP port to be monitor, then need 300x to define new services. Thanks God, you saving me a lot of time.

  4. #4
    Join Date
    Oct 2012
    Beans
    11

    Question Re: Need help on check different TCP port

    i have one other question,how do i check https (port 443) on ESX Server? i use check_tcp! 443 but message "CRITICAL - Socket timeout after 10 seconds" appear. If i use check_https, it will return missing plugin. i could understand that because there is no check https file in libexec directory. How do i check https?

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •