Monitoring a log file

Hi,

I want to monitor a log file “portal.2010-12.log” on windows machine.
Here portal.2010-12.log
2010- is the year which can change
12 is the week which can change.

Hence, I made the following change to .cfg file and restarted the NSClient

logfile => ‘C:\Program Files (x86)\portal.[0-9][0-9][0-9][0-9]-[0-9]*.log’,

I get the following error on Nagios Console :

WARNING - (1 warnings, 1 unknown) - cannot write status file C:TEMP/check_portal_log.C__Program_Files_(x86)_portal.[0-9][0-9][0-9][0-9]-[0-9]*.log.check_portal_log

Please guide me for the same.

You may want to post this in the nsclient forum.

You also may want to explain more clearely what you have done. I am using nsclient myself and I dont even understand what plugin you are trying to use to check the log file nor what in the file you are trying to monitor.