Passive check

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
mahtabalam
Posts: 9
Joined: Mon Sep 23, 2019 1:30 am

Passive check

Post 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?
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Passive check

Post by mbellerue »

Are you receiving any errors with your current configuration?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
mahtabalam
Posts: 9
Joined: Mon Sep 23, 2019 1:30 am

Re: Passive check

Post by mahtabalam »

mbellerue wrote:Are you receiving any errors with your current configuration?
No input found
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Passive check

Post by mbellerue »

Were you following any specific guide when trying to set this up?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
mahtabalam
Posts: 9
Joined: Mon Sep 23, 2019 1:30 am

Re: Passive check

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Passive check

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked