SNMP cyrus monitoring.

Jared Watkins jwatkins at snowcrash.homeip.net
Thu Jan 23 13:57:38 EST 2003


Hmmm...  Well I ran the snmpconf perl script and allowed public read 
access in snmpd.conf.. but when I try to walk the enterprises tree I 
don't see any cyrus stuff there... in fact.. I don't get any results if 
I use enterprises.anything.  Do I need to give the cyrus user permission 
to write to snmp somehow?   Is there a config option in cyrus.conf  that 
is not there by default?

Cyrus is not logging anything about attempting to connect to snmp and 
snmpd is not logging any errors...  I don't know what to look for 
here...  can anyone shed some light?  How do the cyrus stats become 
known to snmpd?

I'm almost snmp clueless...
Jared


Scott Adkins wrote:

> 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------
>>
>
>

-- 
-----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------





More information about the Info-cyrus mailing list