Blog Story: A Recap of Recent Posts on Monitis Extension Scripts

Blog Story: A Recap of Recent Posts on Monitis Extension ScriptsOver the last several weeks, Monitis has posted several articles in this blog on how to extend our all-in-one monitoring platform to enable you to explore a series of external and internal system monitors. Unlimited extensions measure almost any data and push it to Monitis. And with that data Monitis presents a nice customizable dashboard, and sysadmins can set up flexible notifications using their own thresholds. (Monitis has multiple notification channels — including live phone, email, Twitter and even URLs.)Here is a list of scripts and scenarios for sysadmins to show you how to automate routine system management tasks. Thus, you can spend more time playing golf or tennis. But if you really want to work, you can still use the information to save time and, instead, devote more resources to strategic thinking and actual IT management.

We grouped our articles by type of platform. Have a look below:

Scripts For Windows Servers Management:

Monitoring Your Windows Server Metrics with WMI. These posts discuss what can be monitored with WMI. For example, we talk about how you can create custom monitors and automatically upload values into them. In another post, we also talked about how to gather all the, well, valuable, value that is needed to effectively monitor your systems. In that article, you can find a list of WMI queries that you can use in your script to get the data you need. For example, a sample script to gather WMI data looks like the following:

computer = "."
Set oWMI = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" + computer + "\root\cimv2")
Set oRes = oWMI.ExecQuery("select PercentDiskTime from Win32_PerfFormattedData_PerfDisk_PhysicalDisk where Name = '0 C:'")
For each oEntry in oRes
wscript.echo oEntry.PercentDiskTime

Make sure you check out the post get a look at even more easy-to-use data script samples!
Monitoring IIS With VBScript via Monitis; It’s so Easy! This post discusses monitoring Microsoft’s Internet Information Services product, one of the most popular web servers for the Microsoft Windows platform. If Buddy Holly was still around, perhaps we’d use him as the spokesperson for this article. After all, wasn’t it he who sang that “It’s so Easy”?  Here you’ll read about everything you need to create a Monits page with the most important parameters for monitoring an IIS Server in production.  For example, to configure thresholds for notifications when your server experiences performance problems (you want to know, yes?).

Get the full story and much more advice by reading the whole post!
Easily Monitor Windows Performance Counters with VBScript on Monitis. In this post, we luable scripts that you can use to collect metrics from Windows Performance Counters using visual basic. Here’s what we mean — taken directly from the post:

“Using a simple Visual Basic Script (VBS), you will be able to read the value of any Performance Counter on your Windows Server and send it to a Custom Monitor.”  For example, in creating a custom monitor,  you need to display the values you get from external sources.
In order to create it you need go through the following steps:

Monitor MS SQL Server Data with VBScript on Monitis. This post talks about how, with Monitis, you can not only monitor your network infrastructure but you can also monitor data from your business processes, such as those inside an Microsoft SQL Server database. Using a simple script, you can execute a query and upload the results to a Custom Monitor in your Monitis account.

Automating Data Collection for Your Custom Monitors.
Here, we talked about setting Microsoft Windows Tasks schedulers to submit performance data on regular intervals. For example, you can create scheduled tasks from the command line — instead of using the Graphical user Interface. It’s a less common method, but it may be convenient if you have a set of well established scripts and you need to schedule them on multiple servers. In this scenario you can log in on each server, copy the necessary file, run a command and you are done. Read the whole blog post for code on scheduling tasks via the command line.

How to Monitor Windows Servers with VBScript, WMI and Monitis. In this post, we talk about using  WMI (Windows Management Instrumentation) protocol to monitor almost any metric from local and remote Windows servers. It allows agent-less monitoring of multiple servers in the local networks.

Scripts For Linux Servers Management:

Create Nagios Plugin Monitor on This is a demonstration of a Custom Monitis Monitor that accepts data from a Nagios plugin.  The Load plugin for Nagios monitors three results plus has a state value (They are: OK, WARNING or CRITICAL).  So the Custom Monitor that you can create will monitor these same values, plus use a numeric state value for graphing.  The post continues to show you via scripts how you can run the check_load plugin without the use of Nagios to see its default values and expected parameters. Check it out!

Create Linux User Login Monitor on Monitis In this post, we talk about Monitis’s ability to monitor almost any operation on your server.  You can use simple Linux tools and scripts to monitor each time a user logs into the server and capture various information, including username, host address and login service.  You can use “pam_script” and “bash scripts” to transmit information to a Custom Monitor.

Munin + Monitis = Muminitis? Here we discuss the integration of popular monitoring software Munin with Monitis — back in late June. Munin enables centralized management and better reporting. Munin is an open source monitoring application, and has become very popular with sysadmins around the world.

This is just a quick recap of some of our most recent posts aimed at making life a bit easier for sysadmins. Be on the lookout for more — and on a variety of subjects.