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

Advanced Search

Build precise queries to find exactly what you need

Search Logic

Select compatible versions

Press ESC to close

Sign In Sign Up

Nagios World Conference 2026: Sept. 14-17 in St. Paul, MN | Learn More

  • Home
  • Directory
  • Library
  • Support
  • About
Plugins4401Themes and Skins13Add-ons756Graphics 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
Others check_passenger_memory_stats_apache_processes_apache2_count.sh
0.0 (0)
95.5K
RSS Feed
Newest Listings Updated Listings
Top Contributors
Yoann LAMY (7)Julien DESMAREST (6)Davide Lemma (4)deskwork_itunes142 (4)Chad Columbus (3)
See More
Newest Contributors
signalgrid (1)Sanna Glue (2)fisherrs (1)smolinux (1)juanfertor (1)
See More

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

Privacy PolicyTerms of UseTrademarks
Home > Máté Molnár
MM

Máté Molnár

@molnarmate

User Stats

Member Since: March 29, 2012

Favorites0

Views

Projects0

No Projects Found
SNMP Printer Check

new printer counter

I wrote a little change in check_page_count function: function check_page_count(){ local PAGE_EXIT_CODE=0 PAGE_COUNT=$(snmpget -v1 -Ovq -c $COMMUNITY $HOST_NAME 1.3.6.1.2.1.43.10.2.1.4.1.1 2>/dev/null) if [ "$PAGE_COUNT" -lt "$WARNING" ]; then EXIT_STRING="Pagecount is $PAGE_COUNT - OK!$SEPARATOR" else if [ "$PAGE_COUNT" -ge "$WARNING" ] && [ "$PAGE_COUNT" -lt "$CRITICAL" ]; then EXIT_STRING="Pagecount is $PAGE_COUNT - WARNING!$SEPARATOR" PAGE_EXIT_CODE=1 else if [ "$PAGE_COUNT" -ge "$CRITICAL" ]; then EXIT_STRING="Pagecount is $PAGE_COUNT - CRITICAL!$SEPARATOR" PAGE_EXIT_CODE=2 fi fi fi PERFDAT="Pages;Warning;Critical=$PAGE_COUNT;$WARNING;$CRITICAL;" return $PAGE_EXIT_CODE }

Reviewed 14 years ago

No Favorites Found

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

Privacy PolicyTerms of UseTrademarks
Home Browse Submit Profile