Probe::MachineInfo::Uptime - Host ID


Probe-MachineInfo documentation Contained in the Probe-MachineInfo distribution.

Index


Code Index:

NAME

Top

Probe::MachineInfo::Uptime - Host ID

SYNOPSIS

Top

blah

DESCRIPTION

Top

blah

PUBLIC INTERFACE

Top

command

/usr/bin/uptime

regex

AUTHOR

Top

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;