exim statistics

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

iYRe
Posts: 40
Joined: Mon May 07, 2007 4:49 pm
Location: Auckland NZ
Contact:

Post by iYRe »

try upgrading to a newer version of cacti.. thats solved it for me in the past.
If a man is in a forest, and he speaks to a tree and no woman can hear....

[i]is he still wrong?[/i]
sjs
Posts: 22
Joined: Wed Oct 24, 2007 1:22 pm

Post by sjs »

Update: I've search-and-replaced the "hash tags" in the xml files to (more or less ;)) sensible names. Now I don't get any error messages but there won't show up any new items in the graph menu or the like either :(

@iYRe: I'm not particulary fond of "deceiving" my distro's package management system, but will keep the option of updating in mind as some kind of last resort.


Regards,

Sebastian
iYRe
Posts: 40
Joined: Mon May 07, 2007 4:49 pm
Location: Auckland NZ
Contact:

Post by iYRe »

sjs,

I too use debian (and ubuntu) for our production servers. There are just some softwares that its best to be using a non-packaged version for, in order that you get the latest updates. For example, cacti is 0.87 now, which makes 0.86i at least 2 versions (and a lot of bug fixes, security updates, and feature enhancements) old now.

I try and keep as many packages as possible, but this is one I prefer to have manual control of. I certainly dont want some package updating and breaking my install as I rely on cacti, and it has happened before.

Just something to think about anyway, its up to you how you prefer to do it.
If a man is in a forest, and he speaks to a tree and no woman can hear....

[i]is he still wrong?[/i]
knoll
Posts: 2
Joined: Tue Apr 29, 2008 7:09 am
Location: Belgium

Post by knoll »

any solution to use on the server itself without snmpd?
groenleer
Posts: 5
Joined: Thu May 07, 2009 1:36 am

Post by groenleer »

I just installed this Addon also and i am getting the following errors:

Poller[0] Host[5] DS[23] WARNING: Result from SNMP not valid. Partial Result: No Such Object avail

And i have no clue at all!

Code: Select all

server1:/etc/snmp# snmpwalk -v1 -c public 127.0.0.1 .1.3.6.1.4.1.14464.25.101.2
End of MIB
server1:/etc/snmp# snmpwalk -v1 -c public 127.0.0.1 .1.3.6.1.4.1.14464.25      
End of MIB
server1:/etc/snmp# snmpwalk -v1 -c public 127.0.0.1 .1.3.6.1.4.1.14464   
End of MIB
server1:/etc/snmp# snmpwalk -v1 -c public 127.0.0.1 .1.3.6.1.4.1      
End of MIB
server1:/etc/snmp# snmpwalk -v1 -c public 127.0.0.1 .1.3.6.1.4  
End of MIB
server1:/etc/snmp# snmpwalk -v1 -c public 127.0.0.1 .1.3.6.1  
SNMPv2-MIB::sysDescr.0 = STRING: Linux server1 2.6.18.xs4.1.0.1168.6013 #2 SMP Fri Mar 21 19:28:22 UTC 2008 i686
SNMPv2-MIB::sysObjectID.0 = OID: NET-SNMP-MIB::netSnmpAgentOIDs.10
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (1962074954) 227 days, 2:12:29.54
SNMPv2-MIB::sysContact.0 = STRING: <info@>
SNMPv2-MIB::sysName.0 = STRING: server1
SNMPv2-MIB::sysLocation.0 = STRING: Amsterdam
SNMPv2-MIB::sysORLastChange.0 = Timeticks: (7) 0:00:00.07
SNMPv2-MIB::sysORID.1 = OID: IF-MIB::ifMIB
SNMPv2-MIB::sysORID.2 = OID: SNMPv2-MIB::snmpMIB
SNMPv2-MIB::sysORID.3 = OID: TCP-MIB::tcpMIB
SNMPv2-MIB::sysORID.4 = OID: IP-MIB::ip
SNMPv2-MIB::sysORID.5 = OID: UDP-MIB::udpMIB
SNMPv2-MIB::sysORID.6 = OID: SNMP-VIEW-BASED-ACM-MIB::vacmBasicGroup
SNMPv2-MIB::sysORID.7 = OID: SNMP-FRAMEWORK-MIB::snmpFrameworkMIBCompliance
SNMPv2-MIB::sysORID.8 = OID: SNMP-MPD-MIB::snmpMPDCompliance
SNMPv2-MIB::sysORID.9 = OID: SNMP-USER-BASED-SM-MIB::usmMIBCompliance
SNMPv2-MIB::sysORDescr.1 = STRING: The MIB module to describe generic objects for network interface sub-layers
SNMPv2-MIB::sysORDescr.2 = STRING: The MIB module for SNMPv2 entities
SNMPv2-MIB::sysORDescr.3 = STRING: The MIB module for managing TCP implementations
SNMPv2-MIB::sysORDescr.4 = STRING: The MIB module for managing IP and ICMP implementations
SNMPv2-MIB::sysORDescr.5 = STRING: The MIB module for managing UDP implementations
SNMPv2-MIB::sysORDescr.6 = STRING: View-based Access Control Model for SNMP.
SNMPv2-MIB::sysORDescr.7 = STRING: The SNMP Management Architecture MIB.
SNMPv2-MIB::sysORDescr.8 = STRING: The MIB for Message Processing and Dispatching.
SNMPv2-MIB::sysORDescr.9 = STRING: The management information definitions for the SNMP User-based Security Model.
SNMPv2-MIB::sysORUpTime.1 = Timeticks: (6) 0:00:00.06
SNMPv2-MIB::sysORUpTime.2 = Timeticks: (6) 0:00:00.06
SNMPv2-MIB::sysORUpTime.3 = Timeticks: (6) 0:00:00.06
SNMPv2-MIB::sysORUpTime.4 = Timeticks: (6) 0:00:00.06
SNMPv2-MIB::sysORUpTime.5 = Timeticks: (6) 0:00:00.06
SNMPv2-MIB::sysORUpTime.6 = Timeticks: (6) 0:00:00.06
SNMPv2-MIB::sysORUpTime.7 = Timeticks: (7) 0:00:00.07
SNMPv2-MIB::sysORUpTime.8 = Timeticks: (7) 0:00:00.07
SNMPv2-MIB::sysORUpTime.9 = Timeticks: (7) 0:00:00.07
End of MIB
Markoetie
Posts: 11
Joined: Wed Nov 05, 2008 8:35 am

Post by Markoetie »

I have the exact same error
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Both of you: did you install the "exec" command line into the exim server's snmpd.conf and restart that snmpd?
Reinhard
groenleer
Posts: 5
Joined: Thu May 07, 2009 1:36 am

Post by groenleer »

My config can be found at:
http://pastebin.com/m296bd8f3

Note that lines 138 and 139 are commented out!
Instead of exec i have used extend (see line 141)

Neither of them work.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

EXEC works for net-snmp pre-5.4 only aned extend for 5.4 and later. I don't know the syntax of extend by heart
Reinhard
groenleer
Posts: 5
Joined: Thu May 07, 2009 1:36 am

Post by groenleer »

It seems i am runnint net-snmp 5.2.3
It is installed from Debian APT-sources.

So i have to switch back to exec, or i have to upgrade my snmpd.
For the moment i think i switch back to exec. And first get the script working before i start upgrading.

The current config can be found (up to a month from post date) at http://pastebin.com/m32e789b1

Code: Select all

server1:/etc/snmp# snmpwalk -v2c -c *** 127.0.0.1 .1.3.6.1.4
SNMPv2-SMI::private = No more variables left in this MIB View (It is past the end of the MIB tree)
Markoetie
Posts: 11
Joined: Wed Nov 05, 2008 8:35 am

Post by Markoetie »

I'm running version 5.4.1 from the debian repo
xelak
Posts: 1
Joined: Sat Sep 12, 2009 7:39 am

Post by xelak »

Hi all!
I`m using FreeBSD 7.2 + exim4!
I have tried both of scripts and templates, but my graphs are null or nan!

Code: Select all

cat /etc/snmp/exim_perf.stats
remote_smtp
832
local_delivery
26
virtual_delivery
0
virtual_vacation_delivery
0
ditch_spam_transport
0
mailman_transport
0
blackhole
0
and

Code: Select all

snmpwalk -c  -v 1  .1.3.6.1.4.1.14464.25
SNMPv2-SMI::enterprises.14464.25.1.0 = INTEGER: 1
SNMPv2-SMI::enterprises.14464.25.2.1.2.22.47.101.116.99.47.101.120.105.109.47.101.120.105.109.95.112.101.114.102.46.112.108 = STRING: "/bin/cat"
SNMPv2-SMI::enterprises.14464.25.2.1.3.22.47.101.116.99.47.101.120.105.109.47.101.120.105.109.95.112.101.114.102.46.112.108 = STRING: "/etc/snmp/exim_perf.stats"
SNMPv2-SMI::enterprises.14464.25.2.1.4.22.47.101.116.99.47.101.120.105.109.47.101.120.105.109.95.112.101.114.102.46.112.108 = ""
SNMPv2-SMI::enterprises.14464.25.2.1.5.22.47.101.116.99.47.101.120.105.109.47.101.120.105.109.95.112.101.114.102.46.112.108 = INTEGER: 5
SNMPv2-SMI::enterprises.14464.25.2.1.6.22.47.101.116.99.47.101.120.105.109.47.101.120.105.109.95.112.101.114.102.46.112.108 = INTEGER: 1
SNMPv2-SMI::enterprises.14464.25.2.1.7.22.47.101.116.99.47.101.120.105.109.47.101.120.105.109.95.112.101.114.102.46.112.108 = INTEGER: 1
SNMPv2-SMI::enterprises.14464.25.2.1.20.22.47.101.116.99.47.101.120.105.109.47.101.120.105.109.95.112.101.114.102.46.112.108 = INTEGER: 4
SNMPv2-SMI::enterprises.14464.25.2.1.21.22.47.101.116.99.47.101.120.105.109.47.101.120.105.109.95.112.101.114.102.46.112.108 = INTEGER: 1
SNMPv2-SMI::enterprises.14464.25.3.1.1.22.47.101.116.99.47.101.120.105.109.47.101.120.105.109.95.112.101.114.102.46.112.108 = STRING: "remote_smtp"
SNMPv2-SMI::enterprises.14464.25.3.1.2.22.47.101.116.99.47.101.120.105.109.47.101.120.105.109.95.112.101.114.102.46.112.108 = STRING: "remote_smtp
832
local_delivery
26
virtual_delivery
0
virtual_vacation_delivery
0
ditch_spam_transport
0
mailman_transport
0
blackhole
0"
SNMPv2-SMI::enterprises.14464.25.3.1.3.22.47.101.116.99.47.101.120.105.109.47.101.120.105.109.95.112.101.114.102.46.112.108 = INTEGER: 14
SNMPv2-SMI::enterprises.14464.25.3.1.4.22.47.101.116.99.47.101.120.105.109.47.101.120.105.109.95.112.101.114.102.46.112.108 = INTEGER: 0
SNMPv2-SMI::enterprises.14464.25.4.1.2.22.47.101.116.99.47.101.120.105.109.47.101.120.105.109.95.112.101.114.102.46.112.108.1 = STRING: "remote_smtp"
SNMPv2-SMI::enterprises.14464.25.4.1.2.22.47.101.116.99.47.101.120.105.109.47.101.120.105.109.95.112.101.114.102.46.112.108.2 = STRING: "832"
SNMPv2-SMI::enterprises.14464.25.4.1.2.22.47.101.116.99.47.101.120.105.109.47.101.120.105.109.95.112.101.114.102.46.112.108.3 = STRING: "local_delivery"
SNMPv2-SMI::enterprises.14464.25.4.1.2.22.47.101.116.99.47.101.120.105.109.47.101.120.105.109.95.112.101.114.102.46.112.108.4 = STRING: "26"
SNMPv2-SMI::enterprises.14464.25.4.1.2.22.47.101.116.99.47.101.120.105.109.47.101.120.105.109.95.112.101.114.102.46.112.108.5 = STRING: "virtual_delivery"
SNMPv2-SMI::enterprises.14464.25.4.1.2.22.47.101.116.99.47.101.120.105.109.47.101.120.105.109.95.112.101.114.102.46.112.108.6 = STRING: "0"
SNMPv2-SMI::enterprises.14464.25.4.1.2.22.47.101.116.99.47.101.120.105.109.47.101.120.105.109.95.112.101.114.102.46.112.108.7 = STRING: "virtual_vacation_delivery"
SNMPv2-SMI::enterprises.14464.25.4.1.2.22.47.101.116.99.47.101.120.105.109.47.101.120.105.109.95.112.101.114.102.46.112.108.8 = STRING: "0"
SNMPv2-SMI::enterprises.14464.25.4.1.2.22.47.101.116.99.47.101.120.105.109.47.101.120.105.109.95.112.101.114.102.46.112.108.9 = STRING: "ditch_spam_transport"
SNMPv2-SMI::enterprises.14464.25.4.1.2.22.47.101.116.99.47.101.120.105.109.47.101.120.105.109.95.112.101.114.102.46.112.108.10 = STRING: "0"
SNMPv2-SMI::enterprises.14464.25.4.1.2.22.47.101.116.99.47.101.120.105.109.47.101.120.105.109.95.112.101.114.102.46.112.108.11 = STRING: "mailman_transport"
SNMPv2-SMI::enterprises.14464.25.4.1.2.22.47.101.116.99.47.101.120.105.109.47.101.120.105.109.95.112.101.114.102.46.112.108.12 = STRING: "0"
SNMPv2-SMI::enterprises.14464.25.4.1.2.22.47.101.116.99.47.101.120.105.109.47.101.120.105.109.95.112.101.114.102.46.112.108.13 = STRING: "blackhole"
SNMPv2-SMI::enterprises.14464.25.4.1.2.22.47.101.116.99.47.101.120.105.109.47.101.120.105.109.95.112.101.114.102.46.112.108.14 = STRING: "0"
Help please! :roll:
tcrass
Posts: 3
Joined: Sun Nov 22, 2009 11:37 pm

Post by tcrass »

Does anyone have an updated version of this script? I can't seem to get this one working and I attempted the one written earlier this year located here:

http://pookey.co.uk/blog/archives/69-Ca ... art-1.html

But ended up with an error no matter what I do or how I set it up that I can't seem to get around:

Code: Select all

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="Localhost - Mail" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
LINE1:#FF0000FF:"Rejects"  \
GPRINT::LAST:"Current\:%8.2lf %s"  \
GPRINT::AVERAGE:"Average\:%8.2lf %s"  \
GPRINT::MAX:"Maximum\:%8.2lf %s\n" 

RRDTool Says:

ERROR: parameter '#FF0000FF' does not represent a number in line LINE1:#FF0000FF:Rejects
Either way any assistance with getting this script (or one that does the equivalent) up and running would be greatly appreciated.[/code]
tcrass
Posts: 3
Joined: Sun Nov 22, 2009 11:37 pm

Post by tcrass »

Sorry to bump but it's been a while and was kinda hoping someone might be able to lend assistance to this. I still have not been able to resolve the problem.
Uitty
Posts: 4
Joined: Tue Jan 26, 2010 5:34 am

Post by Uitty »

Has anyone been able to get this running?
I've been having issues getting even the snmpd part working.

Atm the moment I got it like this:
snmpd.conf
exec exim4 /etc/snmp/exim_perf.pl

When I try it out:
snmpwalk -v 1 -c mycommunity localhost .1.3.6.1.4.1.2021.8
UCD-SNMP-MIB::extIndex.1 = INTEGER: 1
UCD-SNMP-MIB::extNames.1 = STRING: exim4
UCD-SNMP-MIB::extCommand.1 = STRING: /etc/snmp/exim_perf.pl
UCD-SNMP-MIB::extResult.1 = INTEGER: 13
UCD-SNMP-MIB::extOutput.1 = STRING: Died at /etc/snmp/exim_perf.pl line 91.
UCD-SNMP-MIB::extErrFix.1 = INTEGER: noError(0)
UCD-SNMP-MIB::extErrFixCmd.1 = STRING:

Seems like it's unable to open the log file (which is what line 91 does).
But I'm unsure, changing permission doesn't affect this.
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests