Skip to main content

Config file for Rent-a-car example

As a further example, here is the new_host.cfg file for the Rent-a-Car basic example (the host definitions are the same as the cxf_host.cfg file and have been omitted):

define service {
    use                   generic-service
    service_description   TESB_RAC_CRMService
    display_name          TESB_RAC_CRMService
    check_interval        1
    host_name             tesb_cxf
    check_command         check_jmx4perl_cxf!EndpointState!CRMServiceProvid
er!{http://services.talend.org/CRMService}CRMServiceProvider

    }

define service {
    use                   generic-service
    service_description   TESB_RAC_ReservationService
    display_name          TESB_RAC_CRMService
    check_interval        1
    host_name             tesb_cxf
    check_command         check_jmx4perl_cxf!EndpointState!ReservationServi
ceProvider!{http://services.talend.org/ReservationService}ReservationServic
eProvider

    }

 define service {
    use                   generic-service
    service_description   ReservationService_ANY_FAULTS
    display_name          ReservationService_ANY_FAULTS
    check_interval        1
    host_name             tesb_cxf
    check_command         check_jmx4perl_cxf!AnyFaults!ReservationServicePr
ovider!{http://services.talend.org/ReservationService}ReservationServicePro
vider

    }

You can run the example, add new_host.cfg to the nagios.cfg as before, restart Nagios, and view the metrics.

Did this page help you?

If you find any issues with this page or its content – a typo, a missing step, or a technical error – let us know how we can improve!