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

cperf

Rating
0 votes
Favoured:
0
Current Version
1.0
Last Release Date
2019-11-23
Compatible With
  • Nagios 1.x
  • Nagios 2.x
  • Nagios 3.x
  • Nagios 4.x
  • Nagios XI
Owner
License
GPL
Hits
352
Files:
FileDescription
cperf.shcperf.sh

Help Support Ethan Galstad's New Project:

Help Support Ethan

A Message From The Founder...

As the founder of Nagios, I'm asking for your help in a cause that's dear to my heart.

I'm launching a new project to help better the world by providing the information, ideas, and inspiration that I believe can improve the lives of people everywhere.

I know you're busy managing networks, but I would appreciate it if you would consider liking my Facebook page and showing your support for the content and messages I produce by sharing them with your friends and family.

You can learn more about my project by visiting ethangalstad.me/nagios. Thank you for your time. I wish you all the best in your endeavors, whatever they may be.

- Ethan

This is a plugin that monitors CPU, memory and swap utilization related.
It can monitor cpu and memory for more complex output with swap analysis and blocked processes, alarming as critical only in cases where paging and locked processes exist.
This script is able to get status of CPU, memory and swap
It can monitor cpu and memory for more complex output with swap analysis and blocked processes, alarming as critical only in cases where paging and locked processes exist.
To use the script you need to specify whether to monitor cpu or memory using the cpu or mem flag, and including the thresholds for warning and critical next.
Example:
server: / #./cperf.sh
Invalid parameter.
Use: # cperf.sh mem V1 V2 or
# cperf.sh cpu V1 V2
V1 = warning percentage value
V2 = critical percentage value

server: / #./cperf.sh mem 85 95
OK - MEMORY usage at 62 % - SWAP usage at 22 %

server: / #./cperf.sh cpu 85 95
OK - CPU usage at 1 % - 3 processes running - 0 processes blocked

The idea is to generate fewer alerts and generate critical alerts only when there is really CPU contention or low memory, thus eliminating peak usage alerts.