Announcement

Collapse
No announcement yet.

Configuring check_http for an alternate port

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
    celestius
    Junior Member

  • celestius
    replied
    sweet

    that worked. just for everyone else's info, you can have multiple arguments by putting them in the args field with '!' in front of them. e.g.:

    !40002 !usernameassword

    that way you can have something like this in your service command definition like this:

    $USER1$/check_http -H $HOSTADDRESS$ -p $ARG1$ -a $ARG2$

    Leave a comment:

  • DonKiShoot
    Senior Member

  • DonKiShoot
    replied
    just add ! in front of your argument

    !400002

    Leave a comment:

  • celestius
    Junior Member

  • celestius
    started a topic Configuring check_http for an alternate port

    Configuring check_http for an alternate port

    Hello,

    I am looking to monitor a web server running on a different port than 80. I am aware that check_http can accomplish this with the -p switch but I'm not sure how to do this in oreon. I tried creating a new check_http_with_ping service command with the following config:



    Then, I put the port number in the args field when I'm modifying the service like this:



    However, when I go to export the nagios configuration I get the following error:

    Error: Service check command 'check_http_with_port40002' specified in service 'AP1' for host 'Gateway' not defined anywhere!

    Basically I'm forwarding traffic through a router to several web servers and would like to be able to setup several 'services' on the router's ip that will check the various ports for web availability. Am I misunderstanding the use of the 'Args' field in the service definition page?
Working...
X