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    


Qmail+SNMP+Cacti issue

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific
Author Message
harman



Joined: 31 Jan 2007
Posts: 4

PostPosted: Wed Jan 31, 2007 8:00 pm    Post subject: Qmail+SNMP+Cacti issue Reply with quote

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



cacti_host_template_mail_server_qmail_snmp.xml
 Description:

Download
 Filename:  cacti_host_template_mail_server_qmail_snmp.xml
 Filesize:  125.9 KB
 Downloaded:  658 Time(s)

Back to top
harman



Joined: 31 Jan 2007
Posts: 4

PostPosted: Thu Feb 01, 2007 12:37 am    Post subject: Reply with quote

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
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 13135
Location: MI, USA

PostPosted: Thu Feb 01, 2007 6:56 am    Post subject: Reply with quote

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
Back to top
harman



Joined: 31 Jan 2007
Posts: 4

PostPosted: Thu Feb 01, 2007 7:08 pm    Post subject: Reply with quote

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]
Back to top
gandalf
Developer


Joined: 02 Dec 2004
Posts: 17009
Location: Muenster, Germany

PostPosted: Fri Feb 02, 2007 4:48 am    Post subject: Reply with quote

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 )
Reinhard
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 13135
Location: MI, USA

PostPosted: Fri Feb 02, 2007 7:46 am    Post subject: Reply with quote

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.cgi/branches/BRANCH_0_8_6/cacti/lib/rrd.php?rev=3872&view=log

TheWitness
Back to top
harman



Joined: 31 Jan 2007
Posts: 4

PostPosted: Mon Feb 05, 2007 1:25 am    Post subject: Reply with quote

Hi,

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

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

Thanks
Harman
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 13135
Location: MI, USA

PostPosted: Tue Feb 06, 2007 6:12 am    Post subject: Reply with quote

I'm glad it's working. I will let Tobi know.

Larry
Back to top
eaglecz



Joined: 19 Oct 2007
Posts: 6

PostPosted: Sat Oct 20, 2007 11:47 am    Post subject: Re: Qmail+SNMP+Cacti issue Reply with quote

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 ?
Back to top
eaglecz



Joined: 19 Oct 2007
Posts: 6

PostPosted: Sat Oct 20, 2007 12:31 pm    Post subject: Reply with quote

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 ?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group