Page 1 of 1

Monitor only service

Posted: Tue Sep 24, 2019 1:52 am
by afigles
Hello team,

We want to monitor only a service, no status host.

I have define the host and the service (check_http) but the console shows the status as Down, how could I no monitor the status host? This is my cfg:

Code: Select all

define host{
        use             linux-server            ; Inherit default values from a template
        host_name       SCTD                    ; The name we're giving to this server
        alias           SCTD                    ; A longer name associated with the server
        address         web.domian.es      ; IP address of the server
        }

define service{                         ###### SCTD web
        use                             local-service         ; Name of service template to use
        host_name                       SCTD
        service_description             HTTP
        check_command                   check_https!/sctd/loginPage.do
        }

Re: Monitor only service

Posted: Tue Sep 24, 2019 1:12 pm
by scottwilkerson
This is not possible, but it is possible to set the check command to something that is always ok

For example if you have check_dummy command configured you could add the following to the host

Code: Select all

        check_command                   check_dummy!0!OK

Re: Monitor only service

Posted: Thu Sep 26, 2019 9:41 am
by afigles
MMM but whats the command for the status?? In my cfg file is not the command.

Re: Monitor only service

Posted: Thu Sep 26, 2019 9:46 am
by scottwilkerson
The definition for the check_dummy command would be

Code: Select all

define command {
    command_name    check_dummy
    command_line    $USER1$/check_dummy $ARG1$ $ARG2$
}

Re: Monitor only service

Posted: Thu Sep 26, 2019 11:15 am
by afigles
But this command will be a new service no??

In the console is the host, status and service. Muy problem is that an host is in AWS cloud and ICMP is not allow and is Down, how could change the value to Unreachable or not check the status??

that is to say, I only monitor the service and not host.

Re: Monitor only service

Posted: Thu Sep 26, 2019 11:30 am
by scottwilkerson
Change this

Code: Select all

define host{
        use             linux-server            ; Inherit default values from a template
        host_name       SCTD                    ; The name we're giving to this server
        alias           SCTD                    ; A longer name associated with the server
        address         web.domian.es      ; IP address of the server
        }
to this

Code: Select all

define host{
        use             linux-server            ; Inherit default values from a template
        host_name       SCTD                    ; The name we're giving to this server
        alias           SCTD                    ; A longer name associated with the server
        address         web.domian.es      ; IP address of the server
        check_command                   check_dummy!0!OK
        }

Re: Monitor only service

Posted: Fri Sep 27, 2019 1:14 am
by afigles
Great! Thanks!

Re: Monitor only service

Posted: Fri Sep 27, 2019 7:01 am
by scottwilkerson
afigles wrote:Great! Thanks!
glad it is resolved

Locking thread