Nagios Exchange Nagios Exchange
  • Home
  • Directory
  • Library
  • Support
  • About
  • Submit Feedback

Advanced Search

Build precise queries to find exactly what you need

Search Logic

Select compatible versions

Press ESC to close

Sign In Sign Up
  • Home
  • Directory
  • Library
  • Support
  • About
  • Submit Feedback
Plugins4416Themes and Skins13Add-ons768Graphics and Logos36View All Categories
LinuxSecuritySNMPFile SystemCloud
New Listings Recently Updated Listings Most Favored Listings Most Popular Listings Most Rated Listings Most Reviewed Listings
Random Project
Other Tutorials And HOWTOs Setting Up An Analog Modem For Nagios Alerts, Part 1
0.0 (0)
65.4K
RSS Feed
Newest Listings Updated Listings
Top Contributors
John Shorey (4)deskwork_itunes142 (4)Chad Columbus (3)Marcin Bednarski (3)Nick Overstreet (3)
See More
Newest Contributors
Seiichi YAMAMOTO (1)codemasterydevelopers (1)sunilka (1)davidb (1)faddom (1)
See More

Copyright © 2009-2026 Nagios Enterprises, LLC. All rights reserved.

Privacy PolicyTerms of UseTrademarks
Home > macko003
m

macko003

@macko003

User Stats

Member Since: November 3, 2021

Favorites0

Views

Projects0

No Projects Found
check_proc_mem.sh: check process memory usage

good script

First of all, thanks your work! As I see if you use --cmdpattern, the script counts only the first process' mem usage. So if you run httpd or other services with fork/child calculate with it. I prefer to send back the warning and critical in perform data. So I modified the script a bit. if [ "$memVmRSS" -ge "$4" ]; then echo "Memory: CRITICAL VIRT: $memVmSize MB - RES: $memVmRSS MB used!|RES=$(($memVmRSS*1024*1024));$(($2*1024*1024));$(($4*1024*1024));;" $(exit 2) elif [ "$memVmRSS" -ge "$2" ]; then echo "Memory: WARNING VIRT: $memVmSize MB - RES: $memVmRSS MB used!|RES=$(($memVmRSS*1024*1024));$(($2*1024*1024));$(($4*1024*1024));;" $(exit 1) else echo "Memory: OK VIRT: $memVmSize MB - RES: $memVmRSS MB used!|RES=$(($memVmRSS*1024*1024));$(($2*1024*1024));$(($4*1024*1024));;" $(exit 0) fi

Reviewed 5 years ago

No Favorites Found

Copyright © 2009-2026 Nagios Enterprises, LLC. All rights reserved.

Privacy PolicyTerms of UseTrademarks
Home Browse Submit Profile