Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Tue Sep 26, 2017 5:01 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: qmail +net-snmp template - first posting.
PostPosted: Sat Oct 15, 2005 9:54 pm 
Offline

Joined: Sat Oct 15, 2005 9:34 pm
Posts: 22
Hey everyone, been a cacti user for about 5 months now - awsome work guys !!

I searched the net for hours looking for a way to monitor qmail on my servers.. Not too much information to be found other than qmailmrtg. after searching for OIDs or MIBs, I happend to come across exactly what I needed for remote qmail monitoring. I have created templates that can be imported to cacti.

Input is greatly appreciated on this template..


Attachments:
File comment: ucd/net snmp - qmail statistics
cacti_graph_template_ucdnet_qmail_statistics.xml [14.89 KiB]
Downloaded 3642 times
Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 16, 2005 4:48 pm 
Offline
Cacti User

Joined: Tue Jul 13, 2004 2:57 am
Posts: 56
Location: Norway
get rid qmail :) will cause you pain sooner or later.


Top
 Profile  
 
 Post subject: Re: qmail +net-snmp template - first posting.
PostPosted: Sun Oct 16, 2005 5:48 pm 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5130
Location: United Kingdom
Allen K wrote:
I searched the net for hours looking for a way to monitor qmail on my servers.. Not too much information to be found other than qmailmrtg. after searching for OIDs or MIBs, I happend to come across exactly what I needed for remote qmail monitoring. I have created templates that can be imported to cacti.

Input is greatly appreciated on this template..


I did a bit of work with this too, and wrote it up on my site (in the sig). Hrm. I should finish that writeup :) I'll dig out the other OIDs I used soon. It works the same way as it sounds like yours does though (net-snmp & qmailmrtg7), so I doubt that it's news anyway.

_________________
Weathermap 0.98 is out! & QuickTree 0.2. Superlinks is over there now.
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)


Top
 Profile  
 
 Post subject:
PostPosted: Mon Oct 17, 2005 12:13 am 
Offline

Joined: Wed Oct 12, 2005 10:56 am
Posts: 3
How did you configure net-snmp to integrate with qmailmrtg? I haven't had much luck using net-snmp's new extend function.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Oct 27, 2005 11:49 am 
Offline

Joined: Tue Oct 25, 2005 1:09 pm
Posts: 9
Is there anything else that needs to be done other than installing the xml file? I just tried running this via command line and here is what I'm getting:

Code:
# php poller.php
Waiting on 1/1 pollers.
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: .1.3.6.1.4.1.2021.11.51.0

Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: .1.3.6.1.4.1.2021.11.52.0

Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: .1.3.6.1.4.1.2021.11.50.0

Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: .1.3.6.1.4.1.2021.10.1.3.1

Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: .1.3.6.1.4.1.2021.10.1.3.3

Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: .1.3.6.1.4.1.2021.10.1.3.2

Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: .1.3.6.1.4.1.2021.4.14.0

Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: .1.3.6.1.4.1.2021.4.15.0

Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: .1.3.6.1.4.1.2021.4.6.0

Any ideas on how to correct this?

thx,

SW


Top
 Profile  
 
 Post subject:
PostPosted: Sat Nov 05, 2005 9:00 pm 
Offline

Joined: Sat Oct 15, 2005 9:34 pm
Posts: 22
stevewest15,

My appologies, I checked into this further and it seems that one of our sys admins did in fact install the package..

Howie's site:
http://wotsit.thingy.com/haj/cacti/cacti-qmail.html

Follow the directions on this site and it will all work.

:oops:


Top
 Profile  
 
 Post subject:
PostPosted: Sun Nov 06, 2005 5:05 am 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5130
Location: United Kingdom
Allen K wrote:
stevewest15,

My appologies, I checked into this further and it seems that one of our sys admins did in fact install the package..

Howie's site:
http://wotsit.thingy.com/haj/cacti/cacti-qmail.html

Follow the directions on this site and it will all work.

:oops:


I'll try and finish that page this week, and add in the rest of the OIDs and an XML file for our setup.

_________________
Weathermap 0.98 is out! & QuickTree 0.2. Superlinks is over there now.
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)


Top
 Profile  
 
 Post subject:
PostPosted: Tue Nov 15, 2005 8:41 am 
Offline

Joined: Mon Aug 08, 2005 9:40 am
Posts: 20
Trying to import this script gets me a "Hash does not exist" error...


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 20, 2007 11:31 am 
Offline

Joined: Fri Oct 19, 2007 9:21 pm
Posts: 6
Actualy does anyone have working template for qmail ?

i found several templates here, most of them are not working anymore.

Some of them still sugges usa of exec , wihle it has been replaced.
Other templates contain mibs instead of OIDs... didnt exactly got, why do we have templates with mibs, while Cacti use OIDs... has to be some historical thing.


So my question is simple.... does anyone around have WORKING template for monitoring qmail with list of all lines needed for snmpd.conf ?

Or do i have to be an snmp guru to get a clue, where to obtain all those lovely OIDs to get data out of snmp and not just SMTPd concurency ?

thanks for any advice


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 20, 2007 4:40 pm 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5130
Location: United Kingdom
exec might be deprecated, but it still works. I'm still using the qmail templates I posted OK.

_________________
Weathermap 0.98 is out! & QuickTree 0.2. Superlinks is over there now.
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)


Top
 Profile  
 
 Post subject:
PostPosted: Sun Oct 21, 2007 9:09 am 
Offline

Joined: Fri Oct 19, 2007 9:21 pm
Posts: 6
and what version of snmpd are you useing ?


because with net-snmp-5.4 im getting error not warning during startup...

i just finished all OIDs for qmail, im about to put them into your template and post it for testing.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 22, 2008 7:31 pm 
Offline

Joined: Tue Nov 06, 2007 11:41 am
Posts: 19
What if I didn't install Qmail using the lifewithqmail install instructions? Can I simply change the paths within my snmpd.conf and import the template? I'll give it a shot. Any tips or suggestions would be appreciated.

Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 22, 2008 7:52 pm 
Offline
Cacti Guru User
User avatar

Joined: Thu Sep 16, 2004 5:53 am
Posts: 5130
Location: United Kingdom
Yes. I still use the 'extend'-based templates I made a few years ago. I have never used LWQ for an install, so I know it works otherwise. You just need to point the scripts at your log files as appropriate.

_________________
Weathermap 0.98 is out! & QuickTree 0.2. Superlinks is over there now.
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)


Top
 Profile  
 
 Post subject:
PostPosted: Sat Feb 23, 2008 8:04 pm 
Offline
Cacti User
User avatar

Joined: Mon Nov 04, 2002 9:15 am
Posts: 110
Location: ACEH
Howie wrote:
exec might be deprecated, but it still works. I'm still using the qmail templates I posted OK.


Howie, where I can get your qmail template? Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 26, 2008 1:03 pm 
Offline

Joined: Tue Nov 06, 2007 11:41 am
Posts: 19
I've followed Howie's instructions - I'm getting Cacti graphs, but with no data!

What can I do next to troubleshoot?

My questions are:

1) I've installed qmailmrtg7 by doing a make and then a make install, no errors. Am I supposed to setup a cron job after?

2) I've made sure the paths are correct in my snmpd.conf, but I'm not sure what else I need to do?

3) The directories didn't exist for dnscache-stats, so I just created them, created the shell script, is there anything further I need to do here?

Here's my snmpd.conf - I put the following lines under Access Control in my snmpd.conf:



Code:
extend qmail-message-status /usr/local/bin/qmailmrtg7 s /var/log/send
extend qmail-bytes-transfer /usr/local/bin/qmailmrtg7 b /var/log/send
extend qmail-smtp-concurrency /usr/local/bin/qmailmrtg7 t /var/log/smtpd
extend qmail-smtp-sessions /usr/local/bin/qmailmrtg7 a /var/log/smtpd
extend qmail-pop3-concurrency /usr/local/bin/qmailmrtg7 t /var/log/pop3d
extend qmail-pop3-sessions /usr/local/bin/qmailmrtg7 a /var/log/pop3d
extend qmail-queue /usr/local/bin/qmailmrtg7 q /var/qmail/queue
extend qmail-messages /usr/local/bin/qmailmrtg7 m /var/log/send
extend qmail-concurrency /usr/local/bin/qmailmrtg7 c /var/log/send

extend qmail-virus /usr/local/bin/qmailmrtg7 C /var/log/clamd
extend qmail-spam /usr/local/bin/qmailmrtg7 S /var/log/spamd

extend dnscache /usr/local/bin/dnscache-stats


HELP![/code]


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 19 posts ]  Go to page 1, 2  Next

All times are UTC - 5 hours


Who is online

Users browsing this forum: Yahoo [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group