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.

utilization u. swapactivity

Empfohlene Antworten

Veröffentlicht

Hallo Ihr..

ich hab ein kleines problem... also für mich ist es ein problem.. für euch vielleicht nicht.. mal sehen also:

ich soll ein programm mit unix-shell script basteln, das die cpu u. disk utilization u. die swap aktivität überwacht.

und zwar bei jeden beliebigen rechner u. filesystem.

in einer externen konfigurationsdatei soll man einstellen können, bei welchem schwellwert (für jeden rechner u. filesystem einstellbar) sich das programm mit einer mitteilung an das system wendet.

klingt kompliziert find ich..

u. .ich hab bloß die 1. aprilwoche dazu...

schöne scheisse, hm?

wer kann mir helfen?

:(

Nicht so schwer.

Auf nahezu jedem Unix gibts die beiden Befehle die du brauchst, "df" und "uptime".

df -k (Verzeichnis) liefert die Auslastung in der 5. Spalte des Outputs, also sollte


df -k /opt | awk '{ print $5 }'

Die sowas wie "22%" ausspucken. Noch % abschneiden dann kannst du damit machen was du willst :)

uptime liefert am ende der ausgabe die "load average". Hol dir die Werte da raus und dann machst du die Abfragen...

Wenn du sonst noch Probleme hast, solltest du Detailfragen stellen... :D

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.