blog manula org 2013 12 monitoring https url with nagios htm

13
pdfcrowd.com open in browser PRO version Are you a developer? Try out the HTML to PDF API Monitoring a HTTPS URL with Nagios By default Nagios supports URL monitoring and there is a command in /etc/nagios-plugins/config/http.cfg (In debian based systems). But if you want to monitor an URL like https://esb.wso2.com:9443/services/echo? wsdl2 you cannot use the default command. We can use a command like below to monitor a URL like the above one. define command{ command_name check_https_url command_line /usr/lib/nagios/plugins/check_http --ssl -H '$HOSTADDRESS$' -p '$ARG1$' -u '$ARG2$' } To add the comnmand to Nagios create a file named https_url.cfg in /etc/nagios-plugins/config/ with the above code (and reload nagios server). Manula's Blog

Upload: zebri

Post on 12-Sep-2015

27 views

Category:

Documents


0 download

DESCRIPTION

nagios

TRANSCRIPT

  • pdfcrowd.comopen in browser PRO version Are you a developer? Try out the HTML to PDF API

    Monitoring a HTTPS URL with NagiosBy default Nagios supports URL monitoring and there is a command in /etc/nagios-plugins/config/http.cfg (In

    debian based systems). But if you want to monitor an URL like https://esb.wso2.com:9443/services/echo?

    wsdl2 you cannot use the default command.

    We can use a command like below to monitor a URL like the above one.

    define command{

    command_name check_https_url

    command_line /usr/lib/nagios/plugins/check_http --ssl -H '$HOSTADDRESS$' -p

    '$ARG1$' -u '$ARG2$'

    }

    To add the comnmand to Nagios create a file named https_url.cfg in /etc/nagios-plugins/config/ with the

    above code (and reload nagios server).

    Manula's Blog

  • pdfcrowd.comopen in browser PRO version Are you a developer? Try out the HTML to PDF API

    To use the check_https_url add the code below to the host configuration file. For example (in

    /etc/nagios3/conf.d/server.cfg)

    define service {

    host_name appserver.wso2.com

    service_description WEB SERVICE

    check_command check_https_url!8243!/services/echo%3Fwsdl2

    use generic-service

    }

    Command arguments are port and the URI

    Share story

    Man ul a W ai dyan ath a

    0 com m ents:

  • pdfcrowd.comopen in browser PRO version Are you a developer? Try out the HTML to PDF API

    Newer Post Older Post

    Enter your comment...

    Comment as: Select profile...

    Publish Preview

    Home

    Google+ Badge

  • pdfcrowd.comopen in browser PRO version Are you a developer? Try out the HTML to PDF API

    Manula Waidyanathagoogle.com/+ManulaWaidyanatha

    988 followers

    Follow

    LinkedIn

    Have You Tried W SO2 Cloud?

  • pdfcrowd.comopen in browser PRO version Are you a developer? Try out the HTML to PDF API

    WSO2 Cloud

    Email

    Sign up

    Already have an account?

    Sign in

    Popular Posts

    How to run Jenkins under a different user in Linux [Redhat]

    Writing a simple Web Server in C

    Using Open vswitch with Xen

  • pdfcrowd.comopen in browser PRO version Are you a developer? Try out the HTML to PDF API

    Blog Archive

    2014 (2)

    2013 (5)

    December (1)

    Monitoring a HTTPS URL with Nagios

    August (1)

    July (1)

    March (1)

    January (1)

    2012 (4)

    2011 (8)

    2010 (6)

    Labels

  • pdfcrowd.comopen in browser PRO version Are you a developer? Try out the HTML to PDF API

    adium

    bash

    boot.local

    bridge

    bridge network

    C programming

    change user

    convirt

    create xen domain

    debian

    different user

    disk image

    Dock

    empathy

    firefox

  • pdfcrowd.comopen in browser PRO version Are you a developer? Try out the HTML to PDF API

    ganglia

    gmail

    Gnome Shell

    hadoop

    hiera

    HTTP header

    https

    hvm

    hypervisor api

    imap

    IPSec

    java

    javahelp

    jenkins

    kerberos

  • pdfcrowd.comopen in browser PRO version Are you a developer? Try out the HTML to PDF API

    kerberos and ssh

    kvm

    Launcher

    libvirt

    linux

    mime types

    monitoring

    mounting

    nagios

    NAS

    Network authentication

    networking

    notification

    openvswitch

    pdfhelp

  • pdfcrowd.comopen in browser PRO version Are you a developer? Try out the HTML to PDF API

    popper

    port-mirror

    programming

    puppet

    python

    qemu-dm

    redhat

    script

    security

    simple

    socket programming

    sockets

    ssh

    status codes

    stratos

  • pdfcrowd.comopen in browser PRO version Are you a developer? Try out the HTML to PDF API

    suse

    tap

    theme

    ubuntu

    user

    virt-manager

    virtual switch

    virtualization

    vitual machine management

    VitualBox

    wait

    Web server

    wget

    wheezy

    xen

  • pdfcrowd.comopen in browser PRO version Are you a developer? Try out the HTML to PDF API

    xen management

    xen-create-image

    yum

    Followers

    Join this sitew ith Google Friend Connect

    Members (14)

    Already a member? Sign in

    Powered by Blogger.

  • pdfcrowd.comopen in browser PRO version Are you a developer? Try out the HTML to PDF API

    Copyright 2013 Manula's Blog - and Blogger Templates - Success tips and advice - Template by SoraTemplates