diff --git a/plugins/other/uptime_bsd b/plugins/other/uptime_bsd new file mode 100755 index 00000000..c0f8f20c --- /dev/null +++ b/plugins/other/uptime_bsd @@ -0,0 +1,58 @@ +#!/usr/local/bin/perl -w +# -*- perl -*- +# Plugin to monitor number of irqs +# +#%# family=auto +#%# capabilities=autoconf + +use strict; + +my %IN; + +my $sysctl = defined($ENV{sysctl}) ? $ENV{sysctl} : '/sbin/sysctl'; + +if (defined($ARGV[0]) and ($ARGV[0] eq 'autoconf')) { + if ( -x $sysctl ) { + print "yes\n"; + }else{ + print "no (sysctl binary not found)\n"; + }; + exit; +}; + +if (defined($ARGV[0]) and ($ARGV[0] eq 'config')) { +print <