Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

check_sites_running.sh

Rating
0 votes
Favoured:
0
Current Version
1.0
Compatible With
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI
License
GPL
Hits
7000
Files:
FileDescription
check_sites_running.shcheck_sites_running.sh
Nagios CSP

Meet The New Nagios Core Services Platform

Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.

Monitoring Made Magically Better

  • Nagios Core on Overdrive
  • Powerful Monitoring Dashboards
  • Time-Saving Configuration Wizards
  • Open Source Powered Monitoring On Steroids
  • And So Much More!
Check_Sites_Running.sh (sites running under TOMCAT)

This is my first Bash script, let alone first Nagios Script, so please excuse any errors, and I welcome advice.

I wrote this script as I didn't have access to the management console for Tomcat without using multiple usernames and passwords, this runs locally or via NRPE, and will count the amount of Tomcat Sessions running on the local server.

Designed to check if too many TOMCAT sites have been created on a particular server.

Local Command line is

check_sites_running.sh -w X -c X

NRPE command
command[check_sites_running]=/usr/lib64/nagios/plugins/check_sites_running.sh -w X -c X