Qmail+SNMP+Cacti issue

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Moderators, Developers

Post Reply
Author
Message
harman
Posts: 4
Joined: Wed Jan 31, 2007 7:55 pm

Qmail+SNMP+Cacti issue

#1 Post by harman » Wed Jan 31, 2007 8:00 pm

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

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

#2 Post by harman » Thu Feb 01, 2007 12:37 am

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

User avatar
TheWitness
Developer
Posts: 14834
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

#3 Post by TheWitness » Thu Feb 01, 2007 6:56 am

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
GitHub Repository with Supported Plugins
Central Plugin Repository
Central Templates Repository


I'm still out there people. Getting excited for Cacti 1.2. I think it will be a great release.

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

#4 Post by harman » Thu Feb 01, 2007 7:08 pm

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]

User avatar
gandalf
Developer
Posts: 22375
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

#5 Post by gandalf » Fri Feb 02, 2007 4:48 am

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

User avatar
TheWitness
Developer
Posts: 14834
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

#6 Post by TheWitness » Fri Feb 02, 2007 7:46 am

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
GitHub Repository with Supported Plugins
Central Plugin Repository
Central Templates Repository


I'm still out there people. Getting excited for Cacti 1.2. I think it will be a great release.

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

#7 Post by harman » Mon Feb 05, 2007 1:25 am

Hi,

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

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

Thanks
Harman

User avatar
TheWitness
Developer
Posts: 14834
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

#8 Post by TheWitness » Tue Feb 06, 2007 6:12 am

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
GitHub Repository with Supported Plugins
Central Plugin Repository
Central Templates Repository


I'm still out there people. Getting excited for Cacti 1.2. I think it will be a great release.

eaglecz
Posts: 6
Joined: Fri Oct 19, 2007 9:21 pm

Re: Qmail+SNMP+Cacti issue

#9 Post by eaglecz » Sat Oct 20, 2007 11:47 am

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 ?

eaglecz
Posts: 6
Joined: Fri Oct 19, 2007 9:21 pm

#10 Post by eaglecz » Sat Oct 20, 2007 12:31 pm

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 ?

Post Reply