====== Starting the log monitor ======
For some background information:
* [[operations:log_files_explained|Some notes on log files and what they're for.]]
- First make sure that e-remote control is running for the antenna you wish to monitor.
- In e-remote control, in the "Logging and Operator Input" section, click on the red dot icon ("record the logfile"):\\ {{:operations:econtrol_log_area.jpg|}} \\ This will open a dialog window where you need to give a name for the log file to be saved. Select the "Browse for other folders" option, then double-click on "logs" at the end of the list on the left (this is a shortcut to /vlbobs/ivs/logs). Finally, give the log file a name at the top of the dialog. Suggested syntax is __econtrol.log
e.g.: a file is saved in this location /vlbobs/ivs/logs/r4456_yg_econtrol.log
- The red dot icon in econtrol should now show a green bar in the top left to indicate that the log is being recorded:\\ {{:operations:econtrol_log_recording.png|}}
- Type a command into the Operator Input section (next to the blue triangle) so that the new log file is created. e.g. clkoff
- Now start the log monitor from the Applications menu on ops8:\\ ''Applications -> AuScope -> Log monitor''
- Or try the [[operations:documentation.logmonitor_v3|new experimental version]].
- You will be asked which station is being monitored (type 1, 2 or 3) and then the GUI will start.
- Select\\ ''File -> Open Log File'' \\ and type in the name of the log file you just created (e.g. ''/vlbobs/ivs/logs/r4456_yg_econtrol.log'') or click on Browse and find the file.
- Click OK and the monitor should now be tracking the log file and checking for problems.
- At the moment, this program will
- monitor the difference in delays between maser and GPS and formatter and GPS, and sound an alarm if they differ by more than 1 us
- watch for all other error messages and either beep or sound an alarm depending on severity
- watch for Mark5 sync errors that require fmset to be run.
- You can acknowledge an alarm which will turn off the siren. You can also mute the alarm for 5 mins at a time.
- If you put in your mobile number and enable the SMS alarm, you'll get a text message whenever an alarm goes off.
- You can control the behaviour of SMS alarms remotely by putting comments in the PCFS log:
- [[operations:documentation:control_sms_alarms_remotely|Remote control of SMS alarms]]
- There is a watchdog feature which remembers when the last field system log entry was received. If it is more than 15 minutes ago, the log monitor will start to beep. This is to trap field system software failures and network dropouts.
- This 15 minute timeout can be changed from the graphical interface.
- The log monitor won't start checking the time difference until the first //new// log entry is received
- Once a setup is complete there may be several hours before the next log entry at the experiment start. In this case, a series of incessant beeps after 15 minutes could get annoying. Pressing the "Reset watchdog" button will reset the log line counter to zero, meaning that the time difference will not be checked again until there's a new entry.
To set the optimal timeout values in the log monitor open a terminal on ops2 and type ./watchdog_check.sh , this will return a value to input into the log monitor for each telescope involved in the experiment.
For example:
./watchdog_check.sh r4734
Will return:
hb12: Set watchdog timeout to 12 minutes
ke12: Set watchdog timeout to 16 minutes
yg12: Set watchdog timeout to 19 minutes
Note the log monitor script can also be started on ops6 (the PC in the "Lounge"). Just open a terminal window and repeat steps 5 and 6 above. Both ops2 and ops6 share the /vlbobs directory, so log recording needs to be started only from one place.
====== Configuring the log monitor ======
The log monitor program reads a configuration file which tells it what to do when it sees an error. It will either beep, ring the alarm or ignore the error. The file is on ops2 in ''/usr2/control.xx/alarm_actions.txt'' where ''xx'' is the two-letter code for the antenna. To change how the monitor responds to alarms:
- Edit the file
- look for the alarm code you want to change the response to and change it (can be BEEP, ALARM or IGNORE)
- Close the file and re-start the log monitor
For example, if you want to stop the mark5 error 900 from ringing the alarm to just beeping, edit the file and change this line M5 -900 ALARM
to this M5 -900 BEEP