From: Anton Gorlov <stalker@altlinux.ru>
To: ALT Linux sysadmin discuss <sysadmins@lists.altlinux.org>
Subject: Re: [Sysadmins] snmpd
Date: Fri, 24 Aug 2007 12:14:38 +0400
Message-ID: <46CE936E.6020906@altlinux.ru> (raw)
In-Reply-To: <46CE8BA8.3050605@altlinux.ru>
Anton Gorlov пишет:
>>> Ммм..а по каким OID можно мониторить использование памяти в snmpd?
>> Попробуй сделать snmpwalk на .1.3.6.1.4.1.2021.4
> В общем цакти рисует все графики.. кроме Memory Usage
> добавлял через New Graphs ->Graph Templates ->Create: Linux - Memory Usage
> Я конечно понимаю что можно руками создать график вбив нужный oid... но
> хотелсоь бы красоты. В чём может быть загвоздка?
Посмотрел Data Input Methods ->Linux - Get Memory Usage
там оказывается вызывается перловый скрипт -
Input String perl <path_cacti>/scripts/linux_memory.pl <grepstr>
смотрю скрипт - а там...всего-то
#!/usr/bin/perl
open(PROCESS, "cat /proc/meminfo | grep -w $ARGV[0] |");
foreach (<PROCESS>) {
if ($_ =~ /($ARGV[0].*\s)(.*[0-9])( kB)/) {
print $2;
}
}
close(PROCESS);
Правильно ли я понимаю что оно отработает только на той же машинке где
и .. стоит cacti с данным скриптиком? или ошибаюсь?
next prev parent reply other threads:[~2007-08-24 8:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-08-22 9:59 Anton Gorlov
2007-08-22 10:08 ` Dmitry Lebkov
2007-08-24 7:41 ` Anton Gorlov
2007-08-24 8:14 ` Anton Gorlov [this message]
2007-08-25 1:00 ` Dmitry Lebkov
2007-08-25 19:30 ` Anton Gorlov
2007-08-22 12:42 ` Dmitry Lebkov
2007-08-22 13:37 ` Pavlov Konstantin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46CE936E.6020906@altlinux.ru \
--to=stalker@altlinux.ru \
--cc=sysadmins@lists.altlinux.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
ALT Linux sysadmins discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
public-inbox-index sysadmins
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sysadmins
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git