Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Tue Jul 17, 2018 6:46 am

All times are UTC - 5 hours




Post new topic Reply to topic  [ 10 posts ] 
Author Message
 Post subject: Qmail+SNMP+Cacti issue
PostPosted: Wed Jan 31, 2007 8:00 pm 
Offline

Joined: Wed Jan 31, 2007 7:55 pm
Posts: 4
Hi Guys,

Following are the versions installed:

Cacti - cacti-0.8.6i (also the same issue on cacti-0.8.6j)
Rrdtool - 1.2.18
OS: Centos 4.4

Qmail SNMP OID's:

exec .1.3.6.1.4.1.2021.50.1.101 qmail-messages /usr/local/bin/qmailmrtg7 m /var/log/qmail
exec .1.3.6.1.4.1.2021.50.2.101 qmail-queue /usr/local/bin/qmailmrtg7 q /var/qmail/queue
exec .1.3.6.1.4.1.2021.50.3.101 qmail-virus /usr/local/bin/qmailmrtg7 C /var/log/clamd
exec .1.3.6.1.4.1.2021.50.4.101 qmail-spam /usr/local/bin/qmailmrtg7 S /var/log/spamd
exec .1.3.6.1.4.1.2021.50.5.101 qmail-concurrency /usr/local/bin/qmailmrtg7 c /var/log/qmail
exec .1.3.6.1.4.1.2021.50.6.101 qmail-message-status /usr/local/bin/qmailmrtg7 s /var/log/qmail
exec .1.3.6.1.4.1.2021.50.7.101 qmail-bytes-transfer /usr/local/bin/qmailmrtg7 b /var/log/qmail
exec .1.3.6.1.4.1.2021.50.8.101 qmail-smtp-concurrency /usr/local/bin/qmailmrtg7 t /var/log/qmail/smtpd
exec .1.3.6.1.4.1.2021.50.9.101 qmail-smtp-sessions /usr/local/bin/qmailmrtg7 a /var/log/qmail/smtpd
exec .1.3.6.1.4.1.2021.50.10.101 qmail-pop3-concurrency /usr/local/bin/qmailmrtg7 t /var/log/qmail/pop3d
exec .1.3.6.1.4.1.2021.50.11.101 qmail-pop3-sessions /usr/local/bin/qmailmrtg7 a /var/log/qmail/pop3d

Attached is the Qmail-Snmp Host template.

Now all was working OK until I upgraded rrdtool to 1.2.18.

After the upgrade, graphing still works, however in preview mode, no preview's are shown for the Qmail graphs.

All other graphs are OK, for eg. UCD-Net snmp host template graphs, etc.

Any help would be greatly appreciated.

Regards
Harman


Attachments:
cacti_host_template_mail_server_qmail_snmp.xml [125.9 KiB]
Downloaded 838 times
Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 01, 2007 12:37 am 
Offline

Joined: Wed Jan 31, 2007 7:55 pm
Posts: 4
Downgraded rrdtool back to 1.2.15 and all is ok.

Can someone please look at the template and see why it will not work with the rrdtool ver 1.2.18.

Many Thanks
Harman


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 01, 2007 6:56 am 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14867
Location: MI, USA
I have a better idea. Why don't you do the following:

1) Edit the Graph under Graph Management
2) Bring up graph debug
3) Remove all Gprints from the graph syntax
4) Add a filename where the filename belongs. Just a temp file would be ok.
5) Copy and paste the resultant syntas to a shell
6) Run the command against 1.2.18

Post your results here first. Then we'll see if Tobi needs to version his code again :(

TheWitness

_________________
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
Gandalfs Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 01, 2007 7:08 pm 
Offline

Joined: Wed Jan 31, 2007 7:55 pm
Posts: 4
1) Edit the Graph under Graph Management

No Problems, did that

2) Bring up graph debug

Again no issues.

3) Remove all Gprints from the graph syntax

I copied the whole command shown by DEBUG mode except the GPRINTS

4) Add a filename where the filename belongs. Just a temp file would be ok.

tried /tmp/tmp.rrd but was told file does not exsist. So i just used the rrd file /var/www/html/cacti/rra/....

5) Copy and paste the resultant syntas to a shell
6) Run the command against 1.2.18

All i got was garbled output.

My apologies if i have missed something obvious here.

Thanks for your help

Harman[/quote]


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 02, 2007 4:48 am 
Offline
Developer
User avatar

Joined: Thu Dec 02, 2004 2:46 am
Posts: 22461
Location: Muenster, Germany
harman wrote:
4) Add a filename where the filename belongs. Just a temp file would be ok.
...
All i got was garbled output.
You should leave the rrd files as is. But instead of rrdtool graph - ... you should do rrdtool graph /tmp/garbage.png ... to avoid those funny characters (which, indeed, are the png file :wink: )
Reinhard

_________________
Official Cacti Documentation
Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 02, 2007 7:46 am 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14867
Location: MI, USA
I have also submitted a new lib/rrd.php file to SVN BRANCH_0_8_6. Please use that version of lib/rrd.php and see if the problem goes away.

Here is the link to the file.

http://svn.cacti.net/cgi-bin/viewcvs.cg ... 2&view=log

TheWitness

_________________
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
Gandalfs Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject:
PostPosted: Mon Feb 05, 2007 1:25 am 
Offline

Joined: Wed Jan 31, 2007 7:55 pm
Posts: 4
Hi,

The new version of rrd.php does fix the issue.

Thanks, let me know if you still need any output.

Thanks
Harman


Top
 Profile  
 
 Post subject:
PostPosted: Tue Feb 06, 2007 6:12 am 
Offline
Developer
User avatar

Joined: Tue May 14, 2002 5:08 pm
Posts: 14867
Location: MI, USA
I'm glad it's working. I will let Tobi know.

Larry

_________________
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of MacTrack, Boost, CLog, SpikeKill, Platform RTM, DSStats, maintainer of Spine, lot's of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
Gandalfs Official Debugging Help
Central Plugin Repository
Central Templates Repository


Top
 Profile  
 
 Post subject: Re: Qmail+SNMP+Cacti issue
PostPosted: Sat Oct 20, 2007 11:47 am 
Offline

Joined: Fri Oct 19, 2007 9:21 pm
Posts: 6
harman wrote:
Qmail SNMP OID's:

exec .1.3.6.1.4.1.2021.50.1.101 qmail-messages /usr/local/bin/qmailmrtg7 m /var/log/qmail
exec .1.3.6.1.4.1.2021.50.2.101 qmail-queue /usr/local/bin/qmailmrtg7 q /var/qmail/queue
exec .1.3.6.1.4.1.2021.50.3.101 qmail-virus /usr/local/bin/qmailmrtg7 C /var/log/clamd
exec .1.3.6.1.4.1.2021.50.4.101 qmail-spam /usr/local/bin/qmailmrtg7 S /var/log/spamd
exec .1.3.6.1.4.1.2021.50.5.101 qmail-concurrency /usr/local/bin/qmailmrtg7 c /var/log/qmail
exec .1.3.6.1.4.1.2021.50.6.101 qmail-message-status /usr/local/bin/qmailmrtg7 s /var/log/qmail
exec .1.3.6.1.4.1.2021.50.7.101 qmail-bytes-transfer /usr/local/bin/qmailmrtg7 b /var/log/qmail
exec .1.3.6.1.4.1.2021.50.8.101 qmail-smtp-concurrency /usr/local/bin/qmailmrtg7 t /var/log/qmail/smtpd
exec .1.3.6.1.4.1.2021.50.9.101 qmail-smtp-sessions /usr/local/bin/qmailmrtg7 a /var/log/qmail/smtpd
exec .1.3.6.1.4.1.2021.50.10.101 qmail-pop3-concurrency /usr/local/bin/qmailmrtg7 t /var/log/qmail/pop3d
exec .1.3.6.1.4.1.2021.50.11.101 qmail-pop3-sessions /usr/local/bin/qmailmrtg7 a /var/log/qmail/pop3d

Harman


If i put your lines into the snmp.conf and run snmp -f -Lo im getting

/etc/snmp/snmpd.conf: line 410: Error: ERROR: This output format has been deprecated - Please use the 'extend' directive instead
/etc/snmp/snmpd.conf: line 411: Error: ERROR: This output format has been deprecated - Please use the 'extend' directive instead
/etc/snmp/snmpd.conf: line 412: Error: ERROR: This output format has been deprecated - Please use the 'extend' directive instead
/etc/snmp/snmpd.conf: line 413: Error: ERROR: This output format has been deprecated - Please use the 'extend' directive instead
/etc/snmp/snmpd.conf: line 414: Error: ERROR: This output format has been deprecated - Please use the 'extend' directive instead
/etc/snmp/snmpd.conf: line 415: Error: ERROR: This output format has been deprecated - Please use the 'extend' directive instead
/etc/snmp/snmpd.conf: line 416: Error: ERROR: This output format has been deprecated - Please use the 'extend' directive instead
/etc/snmp/snmpd.conf: line 417: Error: ERROR: This output format has been deprecated - Please use the 'extend' directive instead
/etc/snmp/snmpd.conf: line 418: Error: ERROR: This output format has been deprecated - Please use the 'extend' directive instead
/etc/snmp/snmpd.conf: line 419: Error: ERROR: This output format has been deprecated - Please use the 'extend' directive instead
/etc/snmp/snmpd.conf: line 420: Error: ERROR: This output format has been deprecated - Please use the 'extend' directive instead
net-snmp: 11 error(s) in config file(s)

it point to your lines.

What version of snmp are you using ?
Is it supposed to work if i simply replace exec with extend ?


Top
 Profile  
 
 Post subject:
PostPosted: Sat Oct 20, 2007 12:31 pm 
Offline

Joined: Fri Oct 19, 2007 9:21 pm
Posts: 6
one more question why do you have .1.3.6.1.4.1.2021.50.2.101.101.1 , while in snmp file you have .1.3.6.1.4.1.2021.50.2.101.1


if this is stupid question, hem im sorry , but im new to snmp :)

anyway... i changed exec to extend and it does not work with the template...

any tips ?


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 10 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users 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