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
Plugins4404Themes and Skins13Add-ons757Graphics 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
Tape Drives and Libraries Monitor Quantum Scalar i3 Tape Libraries via SNMPv3
0.0 (0)
3.6K
RSS Feed
Newest Listings Updated Listings
Top Contributors
Yoann LAMY (7)deskwork_itunes142 (4)Julien DESMAREST (3)Davide Lemma (3)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 > Philipp Posovszky
PP

Philipp Posovszky

@Gidy

User Stats

Member Since: October 12, 2016

Favorites0

Views

Projects0

No Projects Found
check_flexlm

Add Performance Data

I changed the function to generates also performance data. Also i changed the lmstat perameter -A to -a sub owc_stat { my $lmstat_output = shift; my $output; # Split the lines of $lmstat_output at the newlines. my @lmstat_lines = split / /, $lmstat_output; my $red_flag = 0; my $yellow_flag = 0; my $yellow_feats = []; my $features = 0; my $performanceData = "|"; for (@lmstat_lines) { if ($features eq 0) { $red_flag ++ if ((/[Cc]annot/)||(/[Uu]nable/)||(/refused/)||(/down/)||(/[Ww]in[sS]ock/)); } else { if (/Users of (.*): .* of ([0-9]+) .* issued; .* of ([0-9]+) .* use/) { my $available_licenses = $2 - $3; if ($available_licenses eq 0) { $yellow_flag ++; push @$yellow_feats, $1; } } } #Create Perfromance Data if (/Users of (.*): .* of ([0-9]+) .* issued; .* of ([0-9]+) .* use/) { my $tempPerfDat={}; $performanceData.="$1=$3;;;0;$2 "; } #if ($curfile =~ /.+_[0-9]{4}.([a-zA-Z]{3,4}).Z$/) $features ++ if (/Feature usage info:/)||(/Users of features served by $vendor:/); } if ($red_flag > 0) { $output = "FLEXlm CRITICAL: License Server Down or Unreachable."; } elsif ($yellow_flag > 0) { $output = "FLEXlm WARNING: Maximum Usage Warning for Features: "; for my $feat (@$yellow_feats) { $output .= $feat . " "; } } else { $output = "FLEXlm OK: Server is up. All Modules/Features Available."; } $output.=$performanceData; $output .= " "; return ($output); }

Reviewed 10 years ago

No Favorites Found

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

Privacy PolicyTerms of UseTrademarks
Home Browse Submit Profile