SNMP cyrus monitoring.
Scott Adkins
adkinss at ohio.edu
Thu Jan 23 12:55:32 EST 2003
Taking a stab in the dark, do you have an SNMP server running on the
machine? If you have the snmp tools installed, then check chkconfig
with the following command to see if you got the service configured
to start at boot time. Before you turn on the snmp service via the
/etc/init.d scripts, make sure that you have it configured properly
(I am thinking in terms of access control). Anyways, that is my
stab in the dark guess ;)
Oh, you will have to restart your cyrus server after you start the
snmp server, that way, cyrus will initialize properly with the snmp
server and start sending it stats.
Scott
--On Thursday, January 23, 2003 12:36 PM -0500 Jared Watkins
<jwatkins at snowcrash.homeip.net> wrote:
> I don't know a lot about the innards of snmp... but here is my problem. I
> configured cyrus with the --with-ucdsnmp flag.. but when I query with
> snmpwalk it gives no result.. as if that part of the tree is not known to
> snmp. I ran the query using the base OID from your scripts. I'm doing
> this on my test RH 7.3 box with the rpm packages of snmp. What else has
> to be done to get this working for cyrus?
>
> Jared
>
>
> Scott Adkins wrote:
>
>> --On Thursday, January 23, 2003 5:58 PM +0600 Dmitry Novosjolov
>> <novodim at xiag.ch> wrote:
>>
>>> Hi All,
>>>
>>> has anybody succeded in using SNMP statistics of cyrus IMAP server ?
>>> If so, can you please point me in right direction of how to monitor the
>>> activity of Cyrus-imapd-2.1.11 server?
>>> I've heard about togowar, but cyrus documents are empty in this chapter
>>> ...
>>>
>>> --------------------------------------
>>> Best regards,
>>> Novosjolov Dmitry
>>>
>>
>> I actually wrote a couple scripts that monitor the server. One script is
>> just meant to be called from the command line (snmp_query) and displays
>> the results in a clean easy to understand format. The sample output
>> is as
>> follows:
>>
>> Cyrus IMAP Server v2.0.16
>> Thu Jan 23 09:10:55 EST 2003
>> Up 5 days, 0:36:29
>>
>> Services Forks Running Maximum
>> ----------- ---------- ---------- ----------
>> imap 2046 31 48
>> pop3 1158 2 11
>> imaps 14181 1672 2127
>> pop3s 3922 23 72
>> imaps_silky 3552 22 62
>> lmtp 1350 32 113
>> lmtpunix 150 0 1
>> =========== ========== ========== ==========
>> Total 26359 1782 2434
>>
>> NOTES
>> -----------------------------------------------------------
>> Forks = Total number of forks since server was started.
>> Running = Total number of processes currently running.
>> Maximum = Maximum number of processes running concurrently.
>>
>> The other script (check_cyrus) is for logging and I use a cron job that
>> runs it periodically and appends the output to a log file. The output
>> of that script looks like the following (all on one line, though):
>>
>> 01/23 09:11 5 days, 0:37:08 imap=31/48 pop3=2/11 imaps=1672/2127
>> pop3s=23/72 imaps_silky=22/62 lmtp=32/113 lmtpunix=0/1
>>
>> The above data should be easy enough to parse so that you can push it
>> through a grapher, such as gnuplot or maybe even excel.
>>
>> I will attach both scripts. Maybe if the CMU folks like it, they can
>> put it in the contrib directory?
>>
>> Oh, I actually just called the snmpwalk program directly and didn't
>> use the SNMP perl module. Maybe somebody else can retrofit the script
>> to do that. Anyawys, it should require just minor tweaking to get it
>> to work on your system.
>>
>> Scott
>
>
> --
> -----BEGIN GEEK CODE BLOCK-----
> Version: 3.12
> GIT/S/B d- s-:+ a- C++++$ UL++++$ P--- L+++$ E---
> W+++ N++ o+ K- w O- M-- !V PS+ PE Y++ PGP++ t+
> 5- X+ R* tv+ b++ DI+ D G e++>+++ h+ r>+++ z* ------END GEEK CODE
> BLOCK------
>
--
+-----------------------------------------------------------------------+
Scott W. Adkins http://www.cns.ohiou.edu/~sadkins/
UNIX Systems Engineer mailto:adkinss at ohio.edu
ICQ 7626282 Work (740)593-9478 Fax (740)593-1944
+-----------------------------------------------------------------------+
PGP Public Key available at http://www.cns.ohiou.edu/~sadkins/pgp/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 231 bytes
Desc: not available
Url : https://lists.andrew.cmu.edu/mailman/private/info-cyrus/attachments/20030123/09b0f56a/attachment.bin
More information about the Info-cyrus
mailing list