summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2017-06-25 12:21:10 +0200
committerDaniel Friesel <derf@finalrewind.org>2017-06-25 12:21:10 +0200
commit4dddc80313cf0be3267b508f9b703010f58707ac (patch)
tree261aa515cfa2689ddc87f0fdee6327af1589ea38
parentf63b2ad9cd0fb10e901076e7c3853d7b8d293e39 (diff)
Add ip / ip_raw monitoring support to backend
-rw-r--r--index.pl4
1 files changed, 4 insertions, 0 deletions
diff --git a/index.pl b/index.pl
index f72c38c..9489f35 100644
--- a/index.pl
+++ b/index.pl
@@ -22,6 +22,7 @@ my @text_fields = (
qw(
debian_version
df_raw
+ ip_raw
kernel_version
os
)
@@ -165,6 +166,9 @@ post '/update' => sub {
if ( exists $param->{df} ) {
$data{df_raw} = $param->{df};
}
+ if ( exists $param->{ip} ) {
+ $data{ip_raw} = $param->{ip};
+ }
if ( exists $param->{meminfo} ) {
my %meminfo
= ( $param->{meminfo} =~ m{ ^ (\S+) : \s+ (\d+) \s kB $ }gmx );