Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


QueueStats -- Graph Qmail Local and Remote queue sizes

 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
andrew2
Cacti User


Joined: 26 Jul 2004
Posts: 64
Location: Cincinnati, OH

PostPosted: Wed Jul 28, 2004 5:31 pm    Post subject: QueueStats -- Graph Qmail Local and Remote queue sizes Reply with quote

An important part of maintaining the health of a Qmail server is to keep an eye on the size of the local and remote queues.
Messages piling up in the queues are a sure sign that something is wrong. Having historical graphs of queue size can help
for capacity planning as well. With that in mind, I set out to create a way to graph the queue size in Qmail using Cacti.

This is the very first version of this so bug reports/fixes and feature requests are more than welcome.

Andrew



queuestats-0.1.tar.gz
 Description:

Download
 Filename:  queuestats-0.1.tar.gz
 Filesize:  4.08 KB
 Downloaded:  986 Time(s)

Back to top
stoopinc



Joined: 14 Apr 2004
Posts: 11
Location: Boulder, CO

PostPosted: Fri Sep 10, 2004 5:49 pm    Post subject: Reply with quote

I am having trouble getting the exec line in the Qmail server's Snmpd.conf to work. I am running ucd-snmpd on a Red Hat 7.3 system. Any suggestions? SNMP seems to be working correctly for everything else.
Back to top
andrew2
Cacti User


Joined: 26 Jul 2004
Posts: 64
Location: Cincinnati, OH

PostPosted: Mon Sep 13, 2004 12:35 pm    Post subject: Reply with quote

Just in case, did you make sure to restart snmpd after making changes to the config file?

If so, what happens if you use snmpwalk to poll that data?

snmpwalk -Oav -v2c -c communityname serverip .1.3.6.1.4.1.2021.51.101.1

(Obviously replacing communityname and serverip with your SNMP community name and the IP of your qmail server.)

Also be sure that whatever user snmpd runs as has execute permission on queuesize.pl.

Andrew
Back to top
stoopinc



Joined: 14 Apr 2004
Posts: 11
Location: Boulder, CO

PostPosted: Sun Sep 19, 2004 12:55 pm    Post subject: Reply with quote

andrew2 wrote:

snmpwalk -Oav -v2c -c communityname serverip .1.3.6.1.4.1.2021.51.101.1
Andrew


Looks like I just messed up the snmpwalk command. I was using:
snmpwalk -Oav -v2c -c [yoursnmpcommunityname] [mailserverip] .1.3.6.4.1.2021.51

from the readme in the tarball. When I executed :
snmpwalk -Oav -v2c -c communityname serverip .1.3.6.1.4.1.2021.51.101.1

I received:
STRING: "Remote:152 Local:0"
Back to top
SCaRaBaeuS



Joined: 30 Mar 2004
Posts: 22

PostPosted: Wed Oct 20, 2004 6:17 am    Post subject: Reply with quote

i am getting the following error:

Quote:

[root@www snmp]# snmpwalk -Oav -v2c -c public localhost .1.3.6.4.1.2021.51
Timeout: No Response from localhost
[root@www snmp]# snmpwalk -Oav -v2c -c public localhost .1.3.6.4.1.2021.1
Timeout: No Response from localhost
[root@www snmp]# snmpwalk -Oav -v2c -c public 82.192.84.1 .1.3.6.4.1.2021.1
Timeout: No Response from 82.192.84.1
[root@www snmp]#


maybe my firewall? but dont think so..
Back to top
andrew2
Cacti User


Joined: 26 Jul 2004
Posts: 64
Location: Cincinnati, OH

PostPosted: Fri Oct 22, 2004 9:56 am    Post subject: Reply with quote

Try:

snmpwalk -Oav -v2c -c communityname serverip .1.3.6.1.4.1.2021.51.101.1

(Provided that's what you've entered into your snmp configuration on the target server.)

Andrew
Back to top
andrew2
Cacti User


Joined: 26 Jul 2004
Posts: 64
Location: Cincinnati, OH

PostPosted: Fri Oct 22, 2004 4:42 pm    Post subject: Reply with quote

Looks like I had a typo in the README file...here is the updated package with the correct README.

Andrew



queuestats.tar.gz
 Description:

Download
 Filename:  queuestats.tar.gz
 Filesize:  4.08 KB
 Downloaded:  996 Time(s)

Back to top
Onkel_Tom



Joined: 23 Apr 2005
Posts: 10

PostPosted: Sat Oct 21, 2006 1:05 pm    Post subject: Reply with quote

thanks for this script!
works fine for me.

Just a hint:
the snmp community name is harcoded in the file queuecheck.pl and also not standard "public"
after changing this the script works fine for server localhost.
Back to top
mike776



Joined: 29 May 2004
Posts: 8

PostPosted: Mon Mar 26, 2007 3:24 pm    Post subject: Reply with quote

Hello guys,
I am getting some weird error when I run this:
snmpwalk -Oav -v2c -c commstring serverIP .1.3.6.1.4.1.2021.51.101.1
this is the error:
No more variables left in this MIB View (It is past the end of the MIB tree)

Please help
Mike
Back to top
gavinlew



Joined: 12 Jun 2008
Posts: 1

PostPosted: Thu Jun 12, 2008 4:00 pm    Post subject: Reply with quote

Hi All,

This script seems perfect for what I need, I have had to make a few modifications to queuesize.pl to get the correct output from the queue.

When I run it from the command line I get ;

$ /usr/bin/perl /usr/local/bin/queuesize.pl
Remote:25 Local:0

However, when I snmpwalk , I get the following ;

$ snmpwalk -Oav -v2c -c XXXX XXX.XX.XXX.XXX .1.3.6.1.4.1.2021.51
INTEGER: 1
STRING: "/usr/bin/perl"
STRING: "/usr/local/bin/queuesize.pl"
INTEGER: 0
STRING: "Remote:0 Local:0"
INTEGER: 0
""

As you can see the values are different?

Is this script still being worked on, or is there an alternative I should be using?

Thanks, Gavin
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group