Monitoring Anything with a Custom Monitor
In the last few articles, we’ve been walking through how to easy it is to use external monitors in Monitis when you use the Monitis PowerShell module. Monitis is an incredibly powerful monitoring platform, and external monitors are just the beginning. The real power of Monitis comes from being able to upload your own custom monitor.
Many monitoring platforms try to force you to install a particular monitoring agent, and this can be a bad thing for a number of reasons. For instance, if you’re in an ISO 27001 compliant data center, anything you have to permanently install on the system has to go thru security review. If you’re not in an ISO compliant data center, you might not be liable for it, but chances are you’re not going to install any monitoring agent without a thorough review.
Instead of forcing you to install an agent, Monitis allows you to use a REST API, or this PowerShell module, to upload a result to a custom monitor. No agent. No problem.
The command you’ll use to create a custom monitor in Monitis is Add-MonitisCustomMonitor.
You can use Add-MonitisCustomMonitor after you:
Run PowerShell ISE
Import-Module Monitis Connect-Monitis
You might notice that PowerShell commands are named in very uniform ways, and tend to be a little long. The uniform naming is there for your own good: by naming commands with a set of standard verbs, you get used to grouping tasks you need to do in a set of common operations. The long names are also there to help disambiguate. Add-MonitisCustomMonitor and all of it’s parameters have long, pronounceable names so you can simply see it and use it.
In case you haven’t used much PowerShell before, now’s as good of a time to tell you how to save a lot of typing by making it easier.
Start off by typing Add-Mon
Now press tab
PowerShell will autocomplete the available commands or parameters when you press tab. Shift+tab walks back thru the list. This makes it a lot easier to discover commands and options, and can save a lot of typing.
Powershell also will prompt you for any parameters it needs. So go ahead and tab-complete Add-MonitisCustomMonitor and press enter. PowerShell will ask you for a name, and will keep asking for a parameter until you press enter. Then it’s done.
The name is the name of your custom monitor. The parameters are the parameters your custom monitor will display. You now can keep as many records of that monitor up in the cloud as you’d like, and you can do anything you want with that information.
Pretty cool, right?
Today we’ve seen how simple it is to add custom monitors that keep any information you want in Monitis. Next, we’ll see how to put information in them, and start checking out some of the cool operating system information we can collect with Monitis.