I use the resource.cfg file for the input of usernames and passwords for the WMI Wizard. For some reason this is not working anymore on hosts that i add.
It looks like this on one that is working:
'$USER9$'
'$USER10$'
When i run the check the error message looks like this:
Code: Select all
OMMAND: /usr/local/nagios/libexec/check_wmi_plus.pl -H SERVER -u '\$USER9\$' -p '\$USER10\$' -m checkeventlog -a 'Application' -o 2 -3 1
OUTPUT: UNKNOWN - The WMI query had problems. You might have your username/password wrong or the user's access level is too low. Wmic error text on the next line.For some reason it now adds \ to the $USER$ arg.
Anybody any idea? tried multiple things like checking if permissions were correct etc, but i find it weird since this is working on all already added hosts. only with new ones.