- Nagios Network Monitoring
- General Information and TidBits
- Installation Tips & Tricks
- Addons, Plugins, Tweaks & Customizations
- Checking Drupal Status with Nagios and WebInject
- AddOn - NRPE / NSClient
- AddOn - Nagios Event Log aka NagEventLog
- Addon - Nagios Passive Checks with NSCA
- Nagios Custom Object Variables
- Nagios Event Handler - Restart Remote Service
- Nagios Event Handler - Restarting a Local Service
- Plugin: check_dns_secondary - Checking NS Servers
- Plugin: check_http_requisites - Page Size, Files, and Loadtime
- Plugin: check_mem - Linux Memory Usage
- Plugin: check_sql - Check MSSQL and MYSQL servers
- Plugin: check_svn - Check Subversion
- Tweak - Nagios Jabber / XMPP Notifications
- Tweak - Nagios SMS Messaging
- Tweak - check_file_age to check_file_modified
- Tweak: Using NagiosGraph's SHOW.CGI
- Tweak: check_sql - Allow decimal values
- Common Errors & Fixes
Tweak: Using NagiosGraph's SHOW.CGI
Using NagiosGraph with Nagios can provide valueable information about your environment. At times, you may want to show something on a different scale or limit the data seen within the graph. Below are a few basics for manipulating NagiosGraph's show.cgi to customize the graph you are viewing.
Example
We use the "check_mssql_monitor 0.9.0" with our Microsoft SQL Clusters and graph the results. My NagiosGraph "map" file graphs the CPU, IO, IDLE, and response time of checks and Nagios notes_url for the check links to the default graph. However the scale of values typically render the IO nearly flat, yet a small change in IO can be significant. Now we want to just generate IO graphs of each of our clusters to compare them to each other.
Here's the default URL of the graph we are working with:
http://nagios.domain.com/nagiosgraph/show.cgi?host=servername&service=MSSQLinfo

By manipulating the URL, we can do some handy tweaks. Let's start with only graphing the IO. To do that, we need to add the appropriate options to the URL. Adding the datasource name and valuename to the URL like this:
http://nagios.domain.com/nagiosgraph/show.cgi?host=servername&service=MSSQLinfo&db=mssql_monitor,io
My favorite option is make the graph bigger! After all, bigger is better right? Just add the geometry option to the URL likse so:
http://nagios.domain.com/nagiosgraph/show.cgi?host=servername&service=MSSQLinfo&db=mssql_monitor,io&geom=700x200

Now we have a much larger graph and are able to see the IO response increasing during the given time period. Next step is to figure out why!
HINT: for the db source name, check out the default graph and look for the name immediately under the graph. Then add the value as it appears in the legend.
- MWalker's blog
- Printer-friendly version
- Login or register to post comments
-

Recent comments
7 weeks 2 days ago
24 weeks 5 days ago
27 weeks 6 days ago
37 weeks 5 days ago
45 weeks 1 day ago
45 weeks 3 days ago
50 weeks 4 hours ago
1 year 1 week ago