Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

mrtg, ping

Empfohlene Antworten

Hi,

Vor einigen Wochen habe ich hier das MRTG eingerichtet, läuft auch super. jetzt sind wir auf sie Idee gekommen unsere ganzen Router an zu pingen. So weit läuft das auch schon ganz gut, nur das er so ca. alle 5min (läuft in der crontab)diese Meldung bringt:

> WARNING: Problem with External get

> '/usr/local/etc/mrtg/scripte/ping2.pl':

> Expected a Number for 'in' but got ''

>

> WARNING: Problem with Externale get

> '/usr/local/etc/mrtg/scripte/ping2.pl':

> Expected a Number for 'out' but got ''

>

> ERROR: Target[ping2][_IN_] ' $$target[3]{$mode} ' did not

> eval into defined data

> ERROR: Target[ping2][_OUT_] ' $$target[3]{$mode} ' did not

> eval into defined data

> WARNING: Skipping Update of ping2, inlast is not defined

> WARNING: Skipping Update of ping2, outlast is not defined

Nehme an,das das irgendwas damit zu tun hat, das er dann keinn wert zurück gibt. mein problem ist jetzt das ich absolut keine idee habe wie ich ihm sage, das wenn leer ist er was anderes rein schreiben(habs scho mit ner if-schleife versucht) soll.

das script sieht so aus:

#!/usr/bin/perl

$target = `ping -c1 -n ip-adresse`;

$target1 = `ping -c1 -n andere ip adresse`;

@target = split(/\//,$target);

@target1 = split(/\//,$target1);

$ping = $target[4] =~ '/[0-9]+' ? 0 : $target[4];

$ping1 = $target1[4] =~ '/[0-9]+' ? 0 : $target1[4];

print "$ping\n";

print "$ping1\n";

Vielen Dank schon mal im Voraus

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.