#!/usr/bin/env perl # -*- perl -*- # Plugin to monitor the system uptime # #%# family=auto #%# capabilities=autoconf use strict; use warnings; my %IN; my $sysctl = defined($ENV{sysctl}) ? $ENV{sysctl} : '/sbin/sysctl'; my $ostype = `uname -s`; chomp ($ostype); 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 <