So to begin, I'm trying to use this plugin:
http://exchange.nagios.org/directory/Pl ... ts/details
So far, I've installed the .ps1 script in the NSClient++/scripts directory, changed the AD execution policy, defined my command in the commands.cfg (following the example on the plugin page), and defined the service for the AD check.
When I try to restart the Nagios service, I get the error
Code: Select all
Error: Service check command 'check-ad-account -a LockedOut "ou=MYSPECIFICOU,dc=MYDOMAIN,dc=com" specified in service 'AD Service Accounts' for host 'DC01' not defined anywhere!
Code: Select all
define command{
command_name check-ad-account
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -n -c check-ad-account -a $ARG1$ "$ARG2$" $ARG3$ $ARG4$ $ARG5$
}
Code: Select all
define service{
use generic-service
host_name DC01
service_description AD Service Accounts
check command check-ad-account -a LockedOut "ou=MYSPECIFICOU,dc=MYDOMAIN,dc=com"
}
All help is greatly appreciated!