Please note that these free fragments are provided on an “as-is” basis, with no guarantee or support from Silect. To request your free copy of the Linux fragments please visit This fragment is mostly identical to the one described above, and only differs in the fact that a single shell command is used rather than a script.įragments on their own won’t provide a complete solution to your monitoring needs, but as these demonstrate some fundamental building blocks, such as how to run individual shell commands as well as script that can take in customizable parameters, and read back StdOut and StdErr output, we hope they provide you with some inspiration and save you time in putting together your own solutions. As is the case with the fragment described above, the script body needs to be base64-encoded. It also demonstrates how to assign elements such as StdOut, StdErr, a return code and error value as alert parameters. This fragment demonstrates how to define a rule that compares the output of a script that accepts parameters with a given value. When importing the script from a file on disk, MP Studio/MP Author Pro reads it and performs this conversion automatically. Note that the script must be base64-encoded so it can be embedded in final management pack. This fragment demonstrates how to use a script, with arguments customizable as fragment parameters, in a monitor. This fragment demonstrates how to use a shell command inside a two-state monitor to determine whether a daemon, identified by its name, is running. collectd is a daemon which collects system and application performance metrics periodically and provides mechanisms to store the values in a variety of ways, for example in RRD files. This fragment demonstrates how to use a shell command in a discovery to determine whether a given process, identified by its name, is running. collectd The system statistics collection daemon. The most notable differences are in the shell command and regular expressions used to perform the discovery.Ĭ.ProcessExists.mpx. This fragment is the RPM (RedHat) packaged-based version of the fragment described above as such, they’re nearly identical. This fragment demonstrates how to create a discovery by running a shell command, and parse its output using a regular expression.Ĭ.InstalledPackageRPM.mpx. It can be used as a starting point to monitor any system reporting that a given package has been installed. This fragment creates a discovery for packages installed on Debian-based Linux distributions. Below is a short description of the fragments:Ĭ.InstalledPackageDPKG.mpx. Today Silect would like to share with you a number of fragments we’ve put together to help you get started monitoring Linux systems. MP Author Pro and MP Studio both have built-in native support for fragments that makes working with such files a breeze – visit to learn more. Ever since the concept of fragments was introduced to the authoring community a number years ago, we’ve felt rather strongly that the best way to do so is through reusable fragments. Silect’s Support team often gets requests for samples demonstrating how to get started authoring management packs to monitor Linux systems.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |