Overview
The 6.3 release of the K1000 appliance adds a log monitoring feature for server operating systems. In addition, a set of "Log Enablement Package" have been created to monitor system performance and write alerts to log files when a defined threshold has been exceeded. This page provides an overview of the Log Enablement Package created for non-Windows operating systems. Each Log Enablement Package is a Perl script designed to run periodically using the built-in OS scheduler (cron, fcron, etc). When executed, the Perl scripts run a series of commands to determine the utilization of CPU, memory and local volumes. An alert is written to the system log (syslog) file if the utilization exceeds the defined threshold.
Log Enablement Package (LEP)
Operating System
|
OS Version
|
Log Enablement Package
|
Mac OS X |
10.6.x - 10.9.x |
|
Linux/FreeBSD |
Newest 4 versions of each OS |
|
HP-UX |
11.2x and 11.3x |
|
IBM AIX |
5.x - 7.x |
|
Solaris |
Intel/SPARC, 10.x - 11.x |
Metrics
Metric
|
Default Threshold
|
CPU usage |
85% |
Physical memory usage |
85% |
Local logical volume usage |
85% |
Instructions
The following instructions explain how to set up a Red Hat Enterprise Linux system with the K1000 Linux ITNinja Log Enablement Package. The procedure is nearly the same for each non-Windows operating system.
- Add a new agent or agentless device to inventory using the K1000 administrative interface and ensure an inventory runs successfully.
- Copy the Perl script K1000MonitoringLinuxPlugin.pl to the target device.
- Open K1000MonitoringLinuxPlugin.pl in a text editor.
- The configuration settings for the script are at the top. The default thresholds and alert prefix can be changed if desired. Note the alert prefix because this will be used in a later step.
- Execute the script using Perl to verify it runs without
errors:
perl K1000MonitoringLinuxPlugin.pl - Schedule the script to run periodically using the built-in OS scheduler (i.e, cron, fcron, etc). A 10 minute interval is good starting point.
- On the K1000, click Inventory > Devices. Click on the device to view its details.
- Scroll down to the Activities section and click Monitoring. Click Enable Monitoring.
- The next step is to set up a monitoring profile to pick up alerts on the target device. Click Monitoring > Profiles.
- At this point a new profile can be created or an existing one can be modified. In this example a new profile will be created.
- Click Choose Action > New. Provide a name for this monitoring profile (i.e., K1000 Linux ITNinja LEP). Additionally, a description may be specified but it is not required.
- Specify the full path and name of the system log
(syslog). Use the following value for Red Hat Enterprise Linux:
/var/log/messages - Leave the Log Date Format empty for syslog logs.
- Click the plus sign under Criteria.
- Set the alert level to the desired level.
- Set the search text to the alert prefix specified in
the Perl script K1000MonitoringLinuxPlugin.pl. The default alert prefix
is:
K1000 monitor alert: - Click Save next to the criteria.
- Click Save at the bottom of the page.
- Click Monitoring > Devices.
- Click the target device.
- Add the profile created in the previous step under "Profiles". This can be done by clicking in the space under "Profiles:" and selecting the newly created profile.
- Click Save at the bottom of the page.
Comments