Re: SNMP cyrus monitoring.

2003-01-26 Thread Igor Brezac

On Sun, 26 Jan 2003, Ilya wrote:

> Hi Igor.
> I tried your suggestion and now I dont get errors anymore, but neither -Cc nor
> -Of list anything related to cyrus/imap.
> Ive restarted everything of course after putting files.
> Anything else you can suggest to look at?

What version of net-snmpd do you use?  Have you built and configured
net-snmpd to support agentx?  Double check and make sure cyrus has snmp
support compiled in.
cyrus-imapd-src$ grep HAVE_UCDSNMP config.h
#define HAVE_UCDSNMP 1

You need to start snmpd before you start cyrus.  snmpwalk should produce
something like:

$ snmpwalk -mall   .1.3.6.1.4.1.3.6
enterprises.cmuMIB.cmuCyrus.cyrusMasterMIB.cyrusMasterInfo.cyrusMasterInfoDescr.0 = 
Cyrus IMAP server master process
enterprises.cmuMIB.cmuCyrus.cyrusMasterMIB.cyrusMasterInfo.cyrusMasterInfoVers.0 = 
v2.2.prealpha
enterprises.cmuMIB.cmuCyrus.cyrusMasterMIB.cyrusMasterInfo.cyrusMasterInfoUptime.0 = 
Timeticks: (21977100) 2 days, 13:02:51.00
enterprises.cmuMIB.cmuCyrus.cyrusMasterMIB.serviceTable.serviceEntry.serviceForks.1 = 
Counter32: 11
enterprises.cmuMIB.cmuCyrus.cyrusMasterMIB.serviceTable.serviceEntry.serviceForks.2 = 
Counter32: 12
enterprises.cmuMIB.cmuCyrus.cyrusMasterMIB.serviceTable.serviceEntry.serviceForks.3 = 
Counter32: 0
enterprises.cmuMIB.cmuCyrus.cyrusMasterMIB.serviceTable.serviceEntry.serviceForks.4 = 
Counter32: 11
enterprises.cmuMIB.cmuCyrus.cyrusMasterMIB.serviceTable.serviceEntry.serviceForks.5 = 
Counter32: 0
enterprises.cmuMIB.cmuCyrus.cyrusMasterMIB.serviceTable.serviceEntry.serviceActive.1 = 
Gauge32: 1
enterprises.cmuMIB.cmuCyrus.cyrusMasterMIB.serviceTable.serviceEntry.serviceActive.2 = 
Gauge32: 10
enterprises.cmuMIB.cmuCyrus.cyrusMasterMIB.serviceTable.serviceEntry.serviceActive.3 = 
Gauge32: 0
enterprises.cmuMIB.cmuCyrus.cyrusMasterMIB.serviceTable.serviceEntry.serviceActive.4 = 
Gauge32: 5
enterprises.cmuMIB.cmuCyrus.cyrusMasterMIB.serviceTable.serviceEntry.serviceActive.5 = 
Gauge32: 0
enterprises.cmuMIB.cmuCyrus.cyrusMasterMIB.serviceTable.serviceEntry.serviceName.1 = 
imap
enterprises.cmuMIB.cmuCyrus.cyrusMasterMIB.serviceTable.serviceEntry.serviceName.2 = 
pop3
enterprises.cmuMIB.cmuCyrus.cyrusMasterMIB.serviceTable.serviceEntry.serviceName.3 = 
sieve
enterprises.cmuMIB.cmuCyrus.cyrusMasterMIB.serviceTable.serviceEntry.serviceName.4 = 
lmtp
enterprises.cmuMIB.cmuCyrus.cyrusMasterMIB.serviceTable.serviceEntry.serviceName.5 = 
lmtpunix
enterprises.cmuMIB.cmuCyrus.cyrusMasterMIB.serviceTable.serviceEntry.serviceId.1 = 1
enterprises.cmuMIB.cmuCyrus.cyrusMasterMIB.serviceTable.serviceEntry.serviceId.2 = 2
enterprises.cmuMIB.cmuCyrus.cyrusMasterMIB.serviceTable.serviceEntry.serviceId.3 = 3
enterprises.cmuMIB.cmuCyrus.cyrusMasterMIB.serviceTable.serviceEntry.serviceId.4 = 4
enterprises.cmuMIB.cmuCyrus.cyrusMasterMIB.serviceTable.serviceEntry.serviceId.5 = 5
enterprises.cmuMIB.cmuCyrus.cyrusMasterMIB.serviceTable.serviceEntry.serviceConnections.1
 = Counter32: 15
enterprises.cmuMIB.cmuCyrus.cyrusMasterMIB.serviceTable.serviceEntry.serviceConnections.2
 = Counter32: 2
enterprises.cmuMIB.cmuCyrus.cyrusMasterMIB.serviceTable.serviceEntry.serviceConnections.3
 = Counter32: 0
enterprises.cmuMIB.cmuCyrus.cyrusMasterMIB.serviceTable.serviceEntry.serviceConnections.4
 = Counter32: 6
enterprises.cmuMIB.cmuCyrus.cyrusMasterMIB.serviceTable.serviceEntry.serviceConnections.5
 = Counter32: 0

Hope this helps.

-Igor


> thx in advance.
>
> On Sun, Jan 26, 2003 at 08:21:51PM -0500, Igor Brezac wrote:
> >
> > On Sun, 26 Jan 2003, Ilya wrote:
> >
> > > ive compiled cyrus with snmp using ports in freebsd.
> > > but when I run snmpwalk I get:
> > > /usr/local/bin/snmpwalk -Cc localhost
> > > Unlinked OID in CYRUS-MASTER-MIB: cyrusMasterMIB ::= { cmuCyrus 1 }
> > > Cannot adopt OID in CYRUS-MASTER-MIB: serviceConnections ::= { serviceEntry 5 }
> > > Cannot adopt OID in CYRUS-MASTER-MIB: serviceId ::= { serviceEntry 4 }
> > > Cannot adopt OID in CYRUS-MASTER-MIB: serviceName ::= { serviceEntry 3 }
> > > Cannot adopt OID in CYRUS-MASTER-MIB: serviceActive ::= { serviceEntry 2 }
> > > Cannot adopt OID in CYRUS-MASTER-MIB: serviceForks ::= { serviceEntry 1 }
> > > Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfoUptime ::= {
> > > cyrusMasterInfo 3 }
> > > Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfoVers ::= { cyrusMasterInfo
> > > 2 }
> > > Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfoDescr ::= { cyrusMasterInfo
> > > 1 }
> > > Cannot adopt OID in CYRUS-MASTER-MIB: serviceEntry ::= { serviceTable 1 }
> > > Cannot adopt OID in CYRUS-MASTER-MIB: serviceTable ::= { cyrusMasterMIB 2 }
> > > Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfo ::= { cyrusMasterMIB 1 }
> > > Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterMIB ::= { cmuCyrus 1 }
> > > Cannot adopt OID in CYRUS-MASTER-MIB: serviceForks ::= { serviceEntry 1 }
> > > Cannot adopt OID in CYRUS-MASTER-MIB: serviceActive ::= { serviceEntry 2 }
> > > Cannot adopt OID in CYRUS-MASTER-MIB: serviceName ::= { 

Re: SNMP cyrus monitoring.

2003-01-26 Thread Ilya
Hi Igor.
I tried your suggestion and now I dont get errors anymore, but neither -Cc nor
-Of list anything related to cyrus/imap.
Ive restarted everything of course after putting files.
Anything else you can suggest to look at?

thx in advance.

On Sun, Jan 26, 2003 at 08:21:51PM -0500, Igor Brezac wrote:
> 
> On Sun, 26 Jan 2003, Ilya wrote:
> 
> > ive compiled cyrus with snmp using ports in freebsd.
> > but when I run snmpwalk I get:
> > /usr/local/bin/snmpwalk -Cc localhost
> > Unlinked OID in CYRUS-MASTER-MIB: cyrusMasterMIB ::= { cmuCyrus 1 }
> > Cannot adopt OID in CYRUS-MASTER-MIB: serviceConnections ::= { serviceEntry 5 }
> > Cannot adopt OID in CYRUS-MASTER-MIB: serviceId ::= { serviceEntry 4 }
> > Cannot adopt OID in CYRUS-MASTER-MIB: serviceName ::= { serviceEntry 3 }
> > Cannot adopt OID in CYRUS-MASTER-MIB: serviceActive ::= { serviceEntry 2 }
> > Cannot adopt OID in CYRUS-MASTER-MIB: serviceForks ::= { serviceEntry 1 }
> > Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfoUptime ::= {
> > cyrusMasterInfo 3 }
> > Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfoVers ::= { cyrusMasterInfo
> > 2 }
> > Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfoDescr ::= { cyrusMasterInfo
> > 1 }
> > Cannot adopt OID in CYRUS-MASTER-MIB: serviceEntry ::= { serviceTable 1 }
> > Cannot adopt OID in CYRUS-MASTER-MIB: serviceTable ::= { cyrusMasterMIB 2 }
> > Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfo ::= { cyrusMasterMIB 1 }
> > Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterMIB ::= { cmuCyrus 1 }
> > Cannot adopt OID in CYRUS-MASTER-MIB: serviceForks ::= { serviceEntry 1 }
> > Cannot adopt OID in CYRUS-MASTER-MIB: serviceActive ::= { serviceEntry 2 }
> > Cannot adopt OID in CYRUS-MASTER-MIB: serviceName ::= { serviceEntry 3 }
> > Cannot adopt OID in CYRUS-MASTER-MIB: serviceId ::= { serviceEntry 4 }
> > Cannot adopt OID in CYRUS-MASTER-MIB: serviceConnections ::= { serviceEntry 5 }
> > Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfoDescr ::= { cyrusMasterInfo
> > 1 }
> > Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfoVers ::= { cyrusMasterInfo
> > 2 }
> > Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfoUptime ::= {
> > cyrusMasterInfo 3 }
> > Cannot adopt OID in CYRUS-MASTER-MIB: serviceEntry ::= { serviceTable 1 }
> > Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfo ::= { cyrusMasterMIB 1 }
> > Cannot adopt OID in CYRUS-MASTER-MIB: serviceTable ::= { cyrusMasterMIB 2 }
> > Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterMIB ::= { cmuCyrus 1 }
> > SNMPv2-MIB::sysDescr.0 = STRING: FreeBSD alchemistry.net 4.7-STABLE FreeBSD
> > 4.7-STABLE #5: Fri Dec  i386
> >
> > any suggestions?
> >
> 
> Add ftp://ftp.andrew.cmu.edu/pub/mibs/cmu/cmu.mib to your
> mibs dir or run 'snmpwalk -On ...'
> 
> -- 
> Igor
> 



Re: SNMP cyrus monitoring.

2003-01-26 Thread Igor Brezac

On Sun, 26 Jan 2003, Ilya wrote:

> ive compiled cyrus with snmp using ports in freebsd.
> but when I run snmpwalk I get:
> /usr/local/bin/snmpwalk -Cc localhost
> Unlinked OID in CYRUS-MASTER-MIB: cyrusMasterMIB ::= { cmuCyrus 1 }
> Cannot adopt OID in CYRUS-MASTER-MIB: serviceConnections ::= { serviceEntry 5 }
> Cannot adopt OID in CYRUS-MASTER-MIB: serviceId ::= { serviceEntry 4 }
> Cannot adopt OID in CYRUS-MASTER-MIB: serviceName ::= { serviceEntry 3 }
> Cannot adopt OID in CYRUS-MASTER-MIB: serviceActive ::= { serviceEntry 2 }
> Cannot adopt OID in CYRUS-MASTER-MIB: serviceForks ::= { serviceEntry 1 }
> Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfoUptime ::= {
> cyrusMasterInfo 3 }
> Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfoVers ::= { cyrusMasterInfo
> 2 }
> Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfoDescr ::= { cyrusMasterInfo
> 1 }
> Cannot adopt OID in CYRUS-MASTER-MIB: serviceEntry ::= { serviceTable 1 }
> Cannot adopt OID in CYRUS-MASTER-MIB: serviceTable ::= { cyrusMasterMIB 2 }
> Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfo ::= { cyrusMasterMIB 1 }
> Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterMIB ::= { cmuCyrus 1 }
> Cannot adopt OID in CYRUS-MASTER-MIB: serviceForks ::= { serviceEntry 1 }
> Cannot adopt OID in CYRUS-MASTER-MIB: serviceActive ::= { serviceEntry 2 }
> Cannot adopt OID in CYRUS-MASTER-MIB: serviceName ::= { serviceEntry 3 }
> Cannot adopt OID in CYRUS-MASTER-MIB: serviceId ::= { serviceEntry 4 }
> Cannot adopt OID in CYRUS-MASTER-MIB: serviceConnections ::= { serviceEntry 5 }
> Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfoDescr ::= { cyrusMasterInfo
> 1 }
> Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfoVers ::= { cyrusMasterInfo
> 2 }
> Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfoUptime ::= {
> cyrusMasterInfo 3 }
> Cannot adopt OID in CYRUS-MASTER-MIB: serviceEntry ::= { serviceTable 1 }
> Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfo ::= { cyrusMasterMIB 1 }
> Cannot adopt OID in CYRUS-MASTER-MIB: serviceTable ::= { cyrusMasterMIB 2 }
> Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterMIB ::= { cmuCyrus 1 }
> SNMPv2-MIB::sysDescr.0 = STRING: FreeBSD alchemistry.net 4.7-STABLE FreeBSD
> 4.7-STABLE #5: Fri Dec  i386
>
> any suggestions?
>

Add ftp://ftp.andrew.cmu.edu/pub/mibs/cmu/cmu.mib to your
mibs dir or run 'snmpwalk -On ...'

-- 
Igor




Re: SNMP cyrus monitoring.

2003-01-26 Thread Ilya
ive compiled cyrus with snmp using ports in freebsd.
but when I run snmpwalk I get:
/usr/local/bin/snmpwalk -Cc localhost
Unlinked OID in CYRUS-MASTER-MIB: cyrusMasterMIB ::= { cmuCyrus 1 }
Cannot adopt OID in CYRUS-MASTER-MIB: serviceConnections ::= { serviceEntry 5 }
Cannot adopt OID in CYRUS-MASTER-MIB: serviceId ::= { serviceEntry 4 }
Cannot adopt OID in CYRUS-MASTER-MIB: serviceName ::= { serviceEntry 3 }
Cannot adopt OID in CYRUS-MASTER-MIB: serviceActive ::= { serviceEntry 2 }
Cannot adopt OID in CYRUS-MASTER-MIB: serviceForks ::= { serviceEntry 1 }
Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfoUptime ::= {
cyrusMasterInfo 3 }
Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfoVers ::= { cyrusMasterInfo
2 }
Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfoDescr ::= { cyrusMasterInfo
1 }
Cannot adopt OID in CYRUS-MASTER-MIB: serviceEntry ::= { serviceTable 1 }
Cannot adopt OID in CYRUS-MASTER-MIB: serviceTable ::= { cyrusMasterMIB 2 }
Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfo ::= { cyrusMasterMIB 1 }
Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterMIB ::= { cmuCyrus 1 }
Cannot adopt OID in CYRUS-MASTER-MIB: serviceForks ::= { serviceEntry 1 }
Cannot adopt OID in CYRUS-MASTER-MIB: serviceActive ::= { serviceEntry 2 }
Cannot adopt OID in CYRUS-MASTER-MIB: serviceName ::= { serviceEntry 3 }
Cannot adopt OID in CYRUS-MASTER-MIB: serviceId ::= { serviceEntry 4 }
Cannot adopt OID in CYRUS-MASTER-MIB: serviceConnections ::= { serviceEntry 5 }
Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfoDescr ::= { cyrusMasterInfo
1 }
Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfoVers ::= { cyrusMasterInfo
2 }
Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfoUptime ::= {
cyrusMasterInfo 3 }
Cannot adopt OID in CYRUS-MASTER-MIB: serviceEntry ::= { serviceTable 1 }
Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterInfo ::= { cyrusMasterMIB 1 }
Cannot adopt OID in CYRUS-MASTER-MIB: serviceTable ::= { cyrusMasterMIB 2 }
Cannot adopt OID in CYRUS-MASTER-MIB: cyrusMasterMIB ::= { cmuCyrus 1 }
SNMPv2-MIB::sysDescr.0 = STRING: FreeBSD alchemistry.net 4.7-STABLE FreeBSD
4.7-STABLE #5: Fri Dec  i386

any suggestions?




Re: SNMP cyrus monitoring.

2003-01-25 Thread Jared Watkins
Christian Schulte wrote:


Jared Watkins schrieb:


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


By the way:

Did you copy master/CYRUS-MASTER.mib to /usr/local/share/snmp/mibs ? 


Ahh... no I had missed that file...  but.. in the mean time I also 
discovered that cyrus was not picking up the snmp libs when I compiled 
it... even though they were there and I'd specified it on the configure 
line.  So I updated the snmp libs.. with a src rpm and then cyrus saw 
the libs.. but would not compile.  I had a similar error to that other 
thread... I'm on redhat 7.2 here.  

That's as far as I got with it so far..  I'm loosing interest in snmp... 
=[  If I see some answers in the compile problem thread I'll try 
them... otherwise I'm done with this for now.

jared


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



Re: SNMP cyrus monitoring.

2003-01-25 Thread Christian Schulte
Jared Watkins schrieb:


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

By the way:

Did you copy master/CYRUS-MASTER.mib to /usr/local/share/snmp/mibs ?

--Christian--





Re: SNMP cyrus monitoring.

2003-01-23 Thread Jared Watkins
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 
<[EMAIL PROTECTED]> 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
<[EMAIL PROTECTED]> 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 204631  48
 pop3 11582   11
 imaps14181   16722127
 pop3s392223  72
 imaps_silky  355222  62
 lmtp 135032  113
 lmtpunix 150 0   1
 ===  ==  ==  ==
 Total26359   17822434

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



Re: SNMP cyrus monitoring.

2003-01-23 Thread Scott Adkins
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 
<[EMAIL PROTECTED]> 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
<[EMAIL PROTECTED]> 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 204631  48
 pop3 11582   11
 imaps14181   16722127
 pop3s392223  72
 imaps_silky  355222  62
 lmtp 135032  113
 lmtpunix 150 0   1
 ===  ==  ==  ==
 Total26359   17822434

 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. Adkinshttp://www.cns.ohiou.edu/~sadkins/
  UNIX Systems Engineer  mailto:[EMAIL PROTECTED]
   ICQ 7626282 Work (740)593-9478 Fax (740)593-1944
+---+
PGP Public Key available at http://www.cns.ohiou.edu/~sadkins/pgp/


msg10614/pgp0.pgp
Description: PGP signature


Re: SNMP cyrus monitoring.

2003-01-23 Thread Jared Watkins
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 
<[EMAIL PROTECTED]> 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 204631  48
 pop3 11582   11
 imaps14181   16722127
 pop3s392223  72
 imaps_silky  355222  62
 lmtp 135032  113
 lmtpunix 150 0   1
 ===  ==  ==  ==
 Total26359   17822434

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



Re: SNMP cyrus monitoring.

2003-01-23 Thread Scott Adkins
--On Thursday, January 23, 2003 5:58 PM +0600 Dmitry Novosjolov 
<[EMAIL PROTECTED]> 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 204631  48
 pop3 11582   11
 imaps14181   16722127
 pop3s392223  72
 imaps_silky  355222  62
 lmtp 135032  113
 lmtpunix 150 0   1
 ===  ==  ==  ==
 Total26359   17822434

 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
--
+---+
 Scott W. Adkinshttp://www.cns.ohiou.edu/~sadkins/
  UNIX Systems Engineer  mailto:[EMAIL PROTECTED]
   ICQ 7626282 Work (740)593-9478 Fax (740)593-1944
+---+
PGP Public Key available at http://www.cns.ohiou.edu/~sadkins/pgp/


snmp_query.pl
Description: Binary data


check_cyrus.pl
Description: Binary data


MSL10918.sig
Description: PGP signature


SNMP cyrus monitoring.

2003-01-23 Thread Dmitry Novosjolov
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