Build precise queries to find exactly what you need
Press ESC to close
@ruddockr
Favorites0
Views
Projects0
the syntax of the line: $users =`$lmpath lmstat -c $licsrv -a | grep -i $serv | wc -l`; does NOT yield number of licenses served but just a line list containing $serv (which is just the server name) needs updated for newer lmgrd tools. maybe worked on an old lmutil version but not current ones (v9 or greater)
Reviewed 12 years ago
Great plugin - and yielding great info for nagiosgraph too! Just one tweak that makes the graph more sensible to read. default output is %idle which can be 100% all the time if a quiet server. I changed this to return to CPU busy time (based on cpu_used variable) code change snippett at line 120-126 (under check_cpu sub): 120 my $perfdata .= "|" 121 ."user=$cpu->{user}% " 122 ."system=$cpu->{system}% " 123 ."iowait=$cpu->{iowait}% " 124 ."InUse=$cpu_used%;$o_warning;$o_critical"; 125 126 print "CPU $status : InUse $cpu_used% $perfdata"; Richard
Reviewed 13 years ago