Page 4 of 5
Re: Please help with Exchange issues
Posted: Thu Jul 05, 2012 11:41 am
by scottwilkerson
benningtonr wrote:I cannot find the log file under program files\nagios.
The log should be under
program files\NSClient++
Re: Please help with Exchange issues
Posted: Thu Jul 05, 2012 11:42 am
by benningtonr
there are no logfiles
Re: Please help with Exchange issues
Posted: Thu Jul 05, 2012 11:44 am
by scottwilkerson
What version of NSClient++ are you running?
Re: Please help with Exchange issues
Posted: Thu Jul 05, 2012 11:46 am
by benningtonr
NSClient++-0.3.9-x64
Re: Please help with Exchange issues
Posted: Thu Jul 05, 2012 12:22 pm
by scottwilkerson
Can I have you edit the nsc.ini to change the following
then restart nsclient++
This should produce a file nsclient.log file in the nsclient++ directory
Re: Please help with Exchange issues
Posted: Thu Jul 05, 2012 12:32 pm
by benningtonr
is there a chance that nsclient++ is getting settings from the registry?
I took the rem statement out from in front of debug=1 and restarted the service and no log file.
Re: Please help with Exchange issues
Posted: Thu Jul 05, 2012 1:28 pm
by scottwilkerson
Are you starting this as a service or just running the test mode in the terminal?
Also does your nsc.ini file have the line ?
Re: Please help with Exchange issues
Posted: Thu Jul 05, 2012 1:32 pm
by benningtonr
I am going into windows services and restarting. A window pops up stating it is stopping the service, then restarting the service.
Re: Please help with Exchange issues
Posted: Thu Jul 05, 2012 1:33 pm
by benningtonr
[log]
;# LOG DEBUG
; Set to 1 if you want debug message printed in the log file (debug messages are always printed to stdout when run with -test)
debug=1
;
;# LOG FILE
; The file to print log statements to
file=nsclient.log
;
;# LOG DATE MASK
; The format to for the date/time part of the log entry written to file.
date_mask=%Y-%m-%d %H:%M:%S
;
;# LOG ROOT FOLDER
; The root folder to use for logging.
; exe = the folder where the executable is located
; local-app-data = local application data (probably a better choice then the old default)
;root_folder=exe
Re: Please help with Exchange issues
Posted: Thu Jul 05, 2012 1:42 pm
by lmiltchev
scottwilkerson was asking about the "use_file=1" line. It is in the [Settings] section and it look like this:
Code: Select all
;# USE THIS FILE
; Use the INI file as opposed to the registry if this is 0 and the use_reg in the registry is set to 1
; the registry will be used instead.
use_file=1