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
Plugins4417Themes and Skins13Add-ons769Graphics 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 OWL energy monitor to nagios
0.0 (0)
55.5K
RSS Feed
Newest Listings Updated Listings
Top Contributors
John Shorey (5)Chad Columbus (3)Marcin Bednarski (3)Nick Overstreet (3)Tristan Self (2)
See More
Newest Contributors
hsh-tro (1)Seiichi YAMAMOTO (1)codemasterydevelopers (1)sunilka (1)davidb (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 15 years ago

No Favorites Found

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

Privacy PolicyTerms of UseTrademarks
Home Browse Submit Profile