check_nrpe

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
lea
Posts: 9
Joined: Fri Mar 27, 2020 2:21 am

check_nrpe

Post by lea »

dear guys

i have windows server with nagios and i need nagios to send me message when logn fail of someone n active directory
i installd nsclient on win server and i configured it
i search for it and saw that maybe check_user can do the job
but how can i post the command in nagios?can you help me do the link?

thank you
gormank
Posts: 1114
Joined: Tue Dec 02, 2014 12:00 pm

Re: check_nrpe

Post by gormank »

If it was me, I'd go to a host you want to check, and run the check command with the needed arguments. Once that's working verify the command in the nsclient ini file, then create a service in Nagios to use check_nrpe to run the command. You need the host to run on defined as well.
Personally I use hostgroups to groups similar hosts, and then put those groups in a larger windows hostgroup. I add that hostgroup to the windows services. I also use host and service templates to separate the monitoring info (such as intervals) from the hosts and services. This way I have one service that does a particular check function, not one service per host. Others do things in another way.
User avatar
jbrunkow
Posts: 441
Joined: Fri Mar 13, 2020 10:45 am

Re: check_nrpe

Post by jbrunkow »

You will have to install the check_user plugin on your Nagios host for the command to be available.

The default location for plugins on Nagios is the following.

Code: Select all

/usr/local/nagios/libexec
Just copy the plugin to that location on your Nagios host.

Can you please reference exactly what documents or articles you have followed thus far? That way I may be more able to pinpoint where you are getting stuck.

I hope that helps! You may also want to look over this more general Nagios core document about how plugins work.
https://assets.nagios.com/downloads/nag ... ugins.html
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!
lea
Posts: 9
Joined: Fri Mar 27, 2020 2:21 am

Re: check_nrpe

Post by lea »

i followed this post
https://exchange.nagios.org/directory/P ... er/details

the heck_users is installed in the specific location

my need is to tell me if the login fail in the AD
can u guide? how can i make the user variable?
lea
Posts: 9
Joined: Fri Mar 27, 2020 2:21 am

Re: check_nrpe

Post by lea »

any help?
Locked