|
|
| Author |
Message |
harman
Joined: 31 Jan 2007 Posts: 4
|
Posted: Wed Jan 31, 2007 8:00 pm Post subject: Qmail+SNMP+Cacti issue |
|
|
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
| 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
|
Posted: Thu Feb 01, 2007 12:37 am Post subject: |
|
|
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
|
Posted: Thu Feb 01, 2007 6:56 am Post subject: |
|
|
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
|
Posted: Thu Feb 01, 2007 7:08 pm Post subject: |
|
|
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
|
Posted: Fri Feb 02, 2007 4:48 am Post subject: |
|
|
| 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
|
|
| Back to top |
|
 |
harman
Joined: 31 Jan 2007 Posts: 4
|
Posted: Mon Feb 05, 2007 1:25 am Post subject: |
|
|
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
|
Posted: Tue Feb 06, 2007 6:12 am Post subject: |
|
|
I'm glad it's working. I will let Tobi know.
Larry
|
|
| Back to top |
|
 |
eaglecz
Joined: 19 Oct 2007 Posts: 6
|
Posted: Sat Oct 20, 2007 11:47 am Post subject: Re: Qmail+SNMP+Cacti issue |
|
|
| 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
|
Posted: Sat Oct 20, 2007 12:31 pm Post subject: |
|
|
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 |
|
 |
|