Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes Issue #18 #19

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions lib/Zabbix/Sender.pm
Original file line number Diff line number Diff line change
Expand Up @@ -108,41 +108,41 @@ to the zabbix server/proxy at "my.zabbix.server.example" on port "10055".

use Zabbix::Sender;

my $Sender = Zabbix::Sender->new({
my $sender = Zabbix::Sender->new({
'server' => 'my.zabbix.server.example',
'port' => 10055,
});
$Sender->send('my.zabbix.item','OK');
$sender->send('my.zabbix.item','OK');

=head1 SUBROUTINES/METHODS

=head2 hostname

Name of the host for which to submit items to Zabbix. Initialized by _init_hostname. You can set it either using

$Sender->hostname('another.hostname');
$sender->hostname('another.hostname');

or during creation time of Zabbix::Sender

my $Sender = Zabbix::Sender->new({
my $sender = Zabbix::Sender->new({
'server' => 'my.zabbix.server.example',
'hostname' => 'another.hostname',
});

You can also query the current setting using

my $current_hostname = $Sender->hostname();
my $current_hostname = $sender->hostname();

=head2 strict

Use the strict setting to make Zabbix::Sender check the return values from
Zabbix:

$Sender->strict(1);
$sender->strict(1);

You can also query the current setting using

my $is_strict = $Sender->strict();
my $is_strict = $sender->strict();

=cut

Expand Down Expand Up @@ -252,7 +252,7 @@ Returns undef if everything is alright, a message otherwise.
This method is called when the strict setting of Zabbix::Sender
is active:

my $Sender = Zabbix::Sender->new({
my $sender = Zabbix::Sender->new({
'server' => 'my.zabbix.server.example',
'strict' => 1,
});
Expand Down