File: munin-cron.PL

package info (click to toggle)
munin 2.999.14-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 10,036 kB
  • sloc: perl: 31,052; sh: 12,473; java: 1,924; python: 852; makefile: 336; ruby: 232; awk: 169; xml: 45; sql: 11
file content (26 lines) | stat: -rwxr-xr-x 699 bytes parent folder | download
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
#!/usr/bin/perl

use strict;
use warnings;

use Module::Build;
my $build        = Module::Build->current;
my $MUNIN_BINDIR = $build->install_path('MUNIN_BINDIR');

my $output_file = shift;
open my $fh, ">", $output_file or die "Can't open $output_file: $!";

print $fh <<"EOF";
#!/bin/sh

# This used to test if the executables were installed.  But that is
# perfectly redundant and suppresses errors that the admin should see.

$MUNIN_BINDIR/munin-update \$\@ || exit 1

# Check limits defined for each service, and notify contacts.
# This also writes state read by munin-httpd.

# "munin-limits" is not yet working in 2.999.10 (to be done for the 3.0 release)
#$MUNIN_BINDIR/munin-limits \$\@
EOF