aplikacja do monitorowania systemu

Tylko tematy nie mieszczące się powyżej.
bastek1604
Piegowaty Guziec
Piegowaty Guziec
Posty: 20
Rejestracja: 23 cze 2006, 18:06
Płeć: Mężczyzna
Wersja Ubuntu: 9.04
Środowisko graficzne: GNOME

aplikacja do monitorowania systemu

Post autor: bastek1604 »

Tak jak w temacie. Chodzi mi głównie o to, że mam wirtualne maszyny postawione na serwerze i chcę zbadać przede wszystkim obciążenie sieci, dysków, pamięci i procesora. Program musi posiadać zapisywanie wyników do pliku, muszę mieć dane do opracowania.
Co polecacie? Będę wdzięczny za pomoc.
Awatar użytkownika
karmelek
Przyjaciel
Przyjaciel
Posty: 883
Rejestracja: 10 lut 2007, 17:45
Płeć: Mężczyzna
Wersja Ubuntu: 11.04
Środowisko graficzne: GNOME
Architektura: x86
Kontakt:

Odp: aplikacja do monitorowania systemu

Post autor: karmelek »

Kiedyś używałem czegoś takiego jak munin - nie wiem jakie to ma możliwości, ale zobaczyć możesz, pamiętam że opracowywał nawet wykresy, a co do plików - zobaczysz.
Wszystkich moderatorów Bóg po śmierci zabiera do nieba, żeby ci dwadzieścia cztery godziny na dobę moderowali modlitwy do niego.
http://karmelek.wordpress.com
inny OS=debian lenny
[r4]
Przebojowy Jelonek
Przebojowy Jelonek
Posty: 1048
Rejestracja: 08 maja 2007, 07:40
Wersja Ubuntu: 12.10
Środowisko graficzne: Xfce
Architektura: x86

Odp: aplikacja do monitorowania systemu

Post autor: [r4] »

nmon, oczywiście :)
I believe not drinking is actually the best way to not get a hangover in the first place.
Coincidentally, it's also the best way to not enjoy your life.
bastek1604
Piegowaty Guziec
Piegowaty Guziec
Posty: 20
Rejestracja: 23 cze 2006, 18:06
Płeć: Mężczyzna
Wersja Ubuntu: 9.04
Środowisko graficzne: GNOME

Odp: aplikacja do monitorowania systemu

Post autor: bastek1604 »

dzieki! sprawdzilem narazie nmon i jak tam zapisywac wszystkie dane do pliku?
[r4]
Przebojowy Jelonek
Przebojowy Jelonek
Posty: 1048
Rejestracja: 08 maja 2007, 07:40
Wersja Ubuntu: 12.10
Środowisko graficzne: Xfce
Architektura: x86

Odp: aplikacja do monitorowania systemu

Post autor: [r4] »

Prosto z wiki:
Using nmon for Linux in data capture mode
Start by capturing a small sample file. Type:

Kod: Zaznacz cały

nmon -f -s2 -c 30 
:arrow: The -f means you want the data saved to a file and not displayed on the screen.
:arrow: The -s2 means you want to capture data every 2 seconds
:arrow: The -c 30 means you want thirty data points or snap shots
:arrow: This means that after a few seconds collecting the configuration nmon for Linux will run for 2 x 30 = 60 seconds and stop. At the end some further configuration data is collected.
At nmon for Linux start up briefly check you system and options and then disconnect from you terminal sessions.
It then runs like a daemon process in the background. The point is that if you log out or get disconnected nmon will complete the data file capture - this is a good thing.
If you want to be sure nmon is still running you can't use a simple "ps" because it is not associated with your log on session. Use

Kod: Zaznacz cały

ps -ef | grep nmon
instead.
It is a common mistake to try to start using nmon for Linux output file before nmon has finished - this results in a either incomplete data which messes up a later tool or if you asked to a longer time between snap shots then there may be no data actually in the file which confuses all tools trying to analyse the file.
Once nmon for Linux has finished and to build confidence try:
Use:

Kod: Zaznacz cały

grep ZZZZ yourfile.nmon 
This should output the one line for each snapshot and date and time it happened.
Edit the nmon file with vi. You will notice it is a simple text file The start of each line defines the content of the line and then the values are separated with commas. This means the file can be imported in to a spread sheet. If you do this by have make sure you sort the file first (with the um er "sort" command). This sort means all the lines of a particular type are together. A sort is not required by most of the nmon for Linux analysing tools as they perform the function themselves.
Przypomniało mi się, że nmon jest dostępny w repozytorium, nie musisz go więc kompilować. Starsza wersja nie posiada poprawek dla jakichś dużych serwerowych systemów i wygląda troszkę gorzej, ale nie powinno to mieć dla Ciebie znaczenia, jak sądzę.
I believe not drinking is actually the best way to not get a hangover in the first place.
Coincidentally, it's also the best way to not enjoy your life.
bastek1604
Piegowaty Guziec
Piegowaty Guziec
Posty: 20
Rejestracja: 23 cze 2006, 18:06
Płeć: Mężczyzna
Wersja Ubuntu: 9.04
Środowisko graficzne: GNOME

Odp: aplikacja do monitorowania systemu

Post autor: bastek1604 »

dzięki wielkie!
Przyda się bardzo. Chociaż muszę jeszcze wypróbować munina bo z tego co widzę też jest świetny plus te wykresy :)
ODPOWIEDZ

Wróć do „Inne”

Kto jest online

Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 8 gości