| Probe-MachineInfo documentation | Contained in the Probe-MachineInfo distribution. |
Probe::MachineInfo::Uptime - Host ID
blah
blah
/usr/bin/uptime
Sagar R. Shah
| Probe-MachineInfo documentation | Contained in the Probe-MachineInfo distribution. |
package Probe::MachineInfo::Uptime; # pragmata use base qw(Probe::MachineInfo::SimpleMetric); use strict; use warnings; # Standard Perl Library and CPAN modules use English; # # CLASS ATTRIBUTES # # # CONSTRUCTOR #
sub command { my($self) = @_; return '/usr/bin/uptime'; }
sub regex { my($self) = @_; return qr/ up \s+ (.*?) , \s+ \d+ \s+ user /x; } 1;