Page 1 of 1

check_nrpe

Posted: Mon May 11, 2020 6:14 am
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

Re: check_nrpe

Posted: Tue May 12, 2020 11:05 am
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.

Re: check_nrpe

Posted: Tue May 12, 2020 11:17 am
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

Re: check_nrpe

Posted: Wed May 13, 2020 12:54 am
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?

Re: check_nrpe

Posted: Fri May 15, 2020 4:19 am
by lea
any help?