action script

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
Deadbeef
Posts: 2
Joined: Mon Aug 05, 2002 6:00 pm
Contact:

action script

Post by Deadbeef »

Hi,

I want to be able to log in a text file every page that are sent to users.
I got to be able to do it for my manager.
Is there an action that can do that ?
Or any way that i can do it ?

Thanks
Ben
KS-Soft
Posts: 13012
Joined: Wed Apr 03, 2002 6:00 pm
Location: USA
Contact:

Post by KS-Soft »

Log in text file? I think you can use simple script (BAT file) and "Execute external program" action to start that script.
E.g. "testlog.BAT" file may look like:

Code: Select all

echo >>mylogfile "========================"
echo >>mylogfile "page to %1"
echo >>mylogfile "message %2"
echo >>mylogfile "========================"
Command line to start script may look like: c:\program files\hostmon\testlog.bat pager_id "%TestName% %Status% %CommentLine1%

On the other hand if you need to log just information that page was sent or not, you may use system log. You can change settings of the log on Advanced Logging page in the Options dialog.

Regards
Alex
Post Reply