Page 1 of 1

Passive check

Posted: Tue Oct 22, 2019 5:16 am
by mahtabalam
I have nagios core 4.4.3 running on vps with CentOs7

I have 3 server
1. Nagios report.
2. nagios check
3. nagios vps

I want to check some service such as check_user from nagios checks(2)
and send the result passively to nagios report(1).
I have tried NSCA but i am a little bit confused how can I send the external command from 2 --> 1.
This is on 2.

Code: Select all

define service {
    use                   generic-service
    service_description    Current Users
    host_name              nagios-vps1.metafour.lan
    check_freshness        1
    freshness_threshold    600                         # Time in second it will recheck and if not get result will alert as Critical
    check_command           check_nrpe!check_users
}
This is on 1

Code: Select all

define service {
    use                    passive_service
    service_description    Current Users
    host_name              nagios-vps1.metafour.lan
    check_freshness        1
    check_command           check_dummy!2! "no input found"
}

Can anyone help me out of this?

Re: Passive check

Posted: Tue Oct 22, 2019 2:47 pm
by mbellerue
Are you receiving any errors with your current configuration?

Re: Passive check

Posted: Wed Oct 23, 2019 8:34 am
by mahtabalam
mbellerue wrote:Are you receiving any errors with your current configuration?
No input found

Re: Passive check

Posted: Wed Oct 23, 2019 2:00 pm
by mbellerue
Were you following any specific guide when trying to set this up?

Re: Passive check

Posted: Thu Oct 24, 2019 1:39 am
by mahtabalam
I have figured out the problem.
seems like we have to use obsess over service and configure the submit check result file.
Thank you

Re: Passive check

Posted: Thu Oct 24, 2019 6:33 am
by scottwilkerson
mahtabalam wrote:I have figured out the problem.
seems like we have to use obsess over service and configure the submit check result file.
Thank you
Great!


Locking