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

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
3976
Files:
FileDescription
check_sites_running.shcheck_sites_running.sh
Network Monitoring Software - Download Nagios XI
Log Management Software - Nagios Log Server - Download
Netflow Analysis Software - Nagios Network Analyzer - Download
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