The SNMP Monitor Ex (named snmp_monitor_ex.tcl) script is extended
from the original script snmp_monitor.tcl shipped with the Scotty v2.1.5
distribution. You can either add this script to your manager.tcl file for
the internal menu system in Tkined, or simply load the script directly
using the "Start Script" in the Tools menu found in Tkined. As yet another
alternative, you can overwrite your snmp_monitor.tcl file with the snmp_monitor_ex.tcl
file (not recommended due to further upgrades of the Scotty environment).
Once started, you will notice the similarity of the original script.
In fact, there are only two new entries for the monitor at this point.
Click on one or more routers discovered and activate "Monitor Strict".
Step 1)
You are now supposed to enter all the variables you want to monitor.
Separate the variables by space. Click on the "Start monitoring!" button
when done. Use the "clear" button to clear current variable string settings.
Step 2)
If the variable exists and it's the first time you launch the Strict
Monitor, you will be presented with a window. This is where you specify
certain settings concerning the monitor job to be initiated. These values
will be saved as default values for later use. You can change the values
later by clicking on the "Monitor Strict Jobs"->"Modify" menu selection.
Description of the fields in the settings window:
-
Send warnings to syslog. If this is true, the monitor will put the
warning messages in the system's log file.
-
Use SMS to send warnings. If this is true, the monitor will notify
changes on your cellular phone. Your SMS message will contain the name
of the variable, the old value, the new value and the IP of the machine
where the changes occurred.
-
SMS Cellular phone number. Specify the phone number to send off
the warning messages to here.
-
Use EMAIL to send warnings. If this is true, the monitor will notify
changes in your mail.
-
Email address. Specify the email address to which send messages.
-
Delay between each SMS/Email (minutes). The monitor will not send
SMS / Emails all the time as changes to the important variable occur. You
can specify the number of minutes between each warning sent out using any
of the external messaging systems (cellular or email). Default value is
one hour (60 minutes).
The settings you have specified in this window, are stored in memory to
ease your typing.
If you would like to change the delay between each variable readout,
please use the standard "Set Monitor Parameter" in the menu. The strict
monitoring facility uses this default value as polling interval.
Step 3)
Hit "Ok!" to fire up the monitor job with the specified properties.
If changes occur, the script will print these events in an "SNMP - Monitor
Report" window. If you are annoyed with it and just want stuff to be sent
to your cellular phone or mail box, please feel free to close this window.
Step 4)
During the monitoring of your variable(s), you can modify the properties
of each monitor job. Clicking your way in the main menu "SNMP Monitor Ex",
you'll find the "Monitor Strict jobs" menu item. As you are given a list
of current strict jobs, select the job you want to bring to attention and
gently press "Modify".
Now, you're presented with a similar window to the once initially seen
during step 2). One difference is that this new window also include a "Kill
job" button. Obviously, the reader might believe that one can kill the
monitor jobs by using the standard "Modify Monitor Job"->"kill job" provided.
Technically, it's true - the strict job would disappear but the internal
variables related to each strict monitoring job will remain allocated in
memory. Thus, to avoid wasting memory resources, it is preferred that you
use the "Monitor Strict jobs" for deleting jobs instead of the standard
job modification service.
As you are finished monitoring the values you have selected, the monitor
job can be deleted from the system. Click on "Modify monitor job" in the
SNMP Monitor Ex menu. As you are given a list of current jobs, the jobs
marked with StrictEvent are the ones you have created using the service
provided by the Monitor Strict functionality. Select "Modify" and "Kill
job" to end the monitoring of that specific variable on that specific machine.