This file is indexed.

/usr/lib/mysql-mmm/agent/check_ip is in mysql-mmm-agent 2.2.1-1.1.

This file is owned by root:root, with mode 0o755.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
#!/usr/bin/env perl

# Use mandatory external modules
use strict;
use warnings FATAL => 'all';
use MMM::Agent::Helpers::Actions;

# Check arguments
if (scalar(@ARGV) != 3) {
	print "Usage: $0 <config_file> <interface> <ip>\n\n";
	exit(1);
}

# Fetch arguments
my $config_file = shift;
my $if = shift;
my $ip = shift;

# Finally do the work
MMM::Agent::Helpers::Actions::check_ip($if, $ip);

__END__

=head1 NAME

check_ip

=head1 DESCRIPTION

check_ip is a helper binary for B<mmm_agentd>. It checks if the given ip is configured.

=head1 USAGE

check_ip <interface> <ip>

=head1 EXAMPLE

check_ip eth0 192.168.0.200