Problem with Performance Monitor in Windows 2003

Hello,

i have this problem. I set the alert in Performance when a hard-disk of my server is full.
I configured two options:

- log an entry in the application event log
- run this program

Run this program doesn't work. I tried each configuration but the program doesn't run.
The file sendmail.bat if i launch it manually it works correctly
config.jpg
r3helpdeskAsked:
Who is Participating?
 
r3helpdeskConnect With a Mentor Author Commented:
Hello i solved - this is the configuration that i applied:
under "Run this program" i put the path of the bat file (d:\sendmail\sendmail.bat) and under "Command line argument" i put the flag in "Measured Value"
0
 
Ahmed786Commented:
In Run this program, why are you not pointing to your batch file i.e. to sendmail.bat.

You have at present pointed to cmd.exe
0
 
r3helpdeskAuthor Commented:
Hello, i have tried also this configuration, but it doesn't work.
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
Ahmed786Commented:
It may run only when you have met the requirement what it has been set during monitoring.

At same time have you get any log entries in your application event log ?, if no then the batch file can also be not running.

If you get entries in your application log then that batch file should run.
0
 
r3helpdeskAuthor Commented:
the event is generated, it appears in the logs but the batch doesn't start
0
 
bbaoIT ConsultantCommented:
it won't start as it requires the command shell.

the correct way to call is "CMD.EXE /C D:\xxxx\sendmail\SENDMAIL.BAT"
0
 
r3helpdeskAuthor Commented:
ok, i try.

Thanks
0
 
r3helpdeskAuthor Commented:
hello, is it correct?
config.jpg
0
 
r3helpdeskAuthor Commented:
i have tried this configuration but it doesn't work.
Any help?
0
 
Ahmed786Commented:
I think you have not put the correct entry,

it is as below

"CMD.EXE /C D:\xxxx\sendmail\SENDMAIL.BAT"  

(There is space after CMD.EXE and also space after /C)
0
 
bbaoIT ConsultantCommented:
the question should not be deleted. as the author found the solution himself/herself, the posted solution should be accepted as the answer.
0
 
r3helpdeskAuthor Commented:
This was the solution to my problem
0
All Courses

From novice to tech pro — start learning today.