|
RE: DM Numeric custom script monitor: msg#00592sysutils.tivoli.general
exit 0 is a program return code. What you send to standard out is read by the monitor and evaluated based on what you put in the trigger field you refered to. Put a file on a system that you can set the first line to some value (like Wazzup). Put the following script on the machine. #!/bin/sh `cat /my_dir/my_dir/my_file` exit 0 my_dir/my_dir is the directoy path to the file that your "watching" my_file is what you called the file you're watching. Set the critical trigger to send an email to yourself when the response from the script is not equal to Wazzup. Set the warning trigger to send you an email when it's equal to Wazzup. You'll get the idea from this experiment. PS If this is Unix you're testing on remember it's case sensitive. Let the monitor run till it triggers then change the value in the my_file back and forth between Wazzup and somethng else. Basically with ncustom and scustom you can do whatever you need to do with the monitor. Open and close local files grabbing information as you go, run local programs based on the results you find, send events to TEC, anything you can imagine. In the end the script can then send some result to STDOUT and the monitor can do further responses from there. BTW: The output you send to STDOUT on a scustom can be a string including whitespaces. Just double-quote the value you're testing on if it does have white spaces. For instance you're script can send "Have a nice Day" then you can have the monitor test for that message as long as you double quote the trigger value (other wise your trigger willl just look for "Have"). I came into this world with nothing. And I have most of it left ! Test your ?Travel Quotient? and get the chance to win your dream trip! |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: SWD 4.2 FP03 windows registry key creation failure: 00592, Rafael . Almeida-h1NaCvFnKj9fyO9Q7EP/yw |
|---|---|
| Next by Date: | DM Numeric custom script monitor: 00592, t . seeling . extern_ohne_vollmacht-Dy1qpeo47VWzQB+pC5nmwQ |
| Previous by Thread: | RE: DM Numeric custom script monitori: 00592, Redusj-pWz/JrSLlZPq+pQ9gifPwA |
| Next by Thread: | DM Numeric custom script monitor: 00592, t . seeling . extern_ohne_vollmacht-Dy1qpeo47VWzQB+pC5nmwQ |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |