Setting up custom graph to monitor mail queue on postfix
list Kim Johansen
Hi, I using Xymon to monitor a postfix mail server, and want to monitor the different mail queues on it. I have found this script: https://wiki.xymonton.org/doku.php/monitors:postfix I have the data comming from the mail server to Xymon server: Mails active: 3 amount equal to last measure. Mails bouncing: 0 amount equal to last measure. Mails in deferred State: 63 amount equal to last measure. Corrupt Mails: 0 amount equal to last measure. Incoming Mails: 0 amount equal to last measure. But I have not succeded in getting the graph to work, I have follow the steps on the wiki site above, and I have also gone though the help file, about costum graphs, in Xymon web site. In xymonserver.cfg have I added: - 'postfix=ncv' to the TEST2RRD string - NCV_postfix="*:GAUGE" Also in graph.cfg have I added: [postfix] FNPATTERN postfix,(.*).rrd TITLE Postfix statistics YAXIS Mail(s) DEF:p at RRDIDX@=@RRDFN@:lambda:AVERAGE LINE2:p at RRDIDX@#@COLOR@:@RRDPARAM@ GPRINT:p at RRDIDX@:LAST: \: %8.1lf (cur) GPRINT:p at RRDIDX@:MAX: \: %8.1lf (max) GPRINT:p at RRDIDX@:MIN: \: %8.1lf (min) GPRINT:p at RRDIDX@:AVERAGE: \: %8.1lf (avg)\n But it do not generate the rrd files, I think I have missed something, but I can't figure it out, I hope You can... Regards, Kim
list Bill Arlofski
▸
On 08/11/14 16:03, Kim Johansen wrote:
Hi, I using Xymon to monitor a postfix mail server, and want to monitor the different mail queues on it. I have found this script: https://wiki.xymonton.org/doku.php/monitors:postfix I have the data comming from the mail server to Xymon server: Mails active: 3 amount equal to last measure. Mails bouncing: 0 amount equal to last measure. Mails in deferred State: 63 amount equal to last measure. Corrupt Mails: 0 amount equal to last measure. Incoming Mails: 0 amount equal to last measure. But I have not succeded in getting the graph to work, I have follow the steps on the wiki site above, and I have also gone though the help file, about costum graphs, in Xymon web site. In xymonserver.cfg have I added: - 'postfix=ncv' to the TEST2RRD string - NCV_postfix="*:GAUGE"
Hi Kim I htink you may have forgotten to ad "postfix" to the GRAPHS definition line in the xymonserver.cfg The GRAPHS variable is right after the TEST2RRD variable in a default xymonserver.cfg file. Hope this helps! Bill -- -- Bill Arlofski Reverse Polarity, LLC http://www.revpol.com/ -- Not responsible for anything below this line --
list Ralph Mitchell
I think your use of "lambda" in the DEF line may be wrong. I think that
belongs to SPLIT_NCV, which is a different thing.
Take a look in data/rrd/servername for the postfix red files. You can dump
them out like this:
rrdtool dump filename
The variable names will be in the header.
Ralph Mitchell
▸
On Aug 11, 2014 4:12 PM, "Kim Johansen" <user-e03b25f5b161@xymon.invalid> wrote:
Hi, I using Xymon to monitor a postfix mail server, and want to monitor the different mail queues on it. I have found this script: https://wiki.xymonton.org/doku.php/monitors:postfix I have the data comming from the mail server to Xymon server: Mails active: 3 amount equal to last measure. Mails bouncing: 0 amount equal to last measure. Mails in deferred State: 63 amount equal to last measure. Corrupt Mails: 0 amount equal to last measure. Incoming Mails: 0 amount equal to last measure. But I have not succeded in getting the graph to work, I have follow the steps on the wiki site above, and I have also gone though the help file, about costum graphs, in Xymon web site. In xymonserver.cfg have I added: - 'postfix=ncv' to the TEST2RRD string - NCV_postfix="*:GAUGE" Also in graph.cfg have I added: [postfix] FNPATTERN postfix,(.*).rrd TITLE Postfix statistics YAXIS Mail(s) DEF:p at RRDIDX@=@RRDFN@:lambda:AVERAGE LINE2:p at RRDIDX@#@COLOR@:@RRDPARAM@ GPRINT:p at RRDIDX@:LAST: \: %8.1lf (cur) GPRINT:p at RRDIDX@:MAX: \: %8.1lf (max) GPRINT:p at RRDIDX@:MIN: \: %8.1lf (min) GPRINT:p at RRDIDX@:AVERAGE: \: %8.1lf (avg)\n But it do not generate the rrd files, I think I have missed something, but I can't figure it out, I hope You can... Regards, Kim
list Kim Johansen
▸
On 08/11/2014 10:57 PM, Bill Arlofski wrote:
On 08/11/14 16:03, Kim Johansen wrote:Hi, I using Xymon to monitor a postfix mail server, and want to monitor the different mail queues on it. I have found this script: https://wiki.xymonton.org/doku.php/monitors:postfix I have the data comming from the mail server to Xymon server: Mails active: 3 amount equal to last measure. Mails bouncing: 0 amount equal to last measure. Mails in deferred State: 63 amount equal to last measure. Corrupt Mails: 0 amount equal to last measure. Incoming Mails: 0 amount equal to last measure. But I have not succeded in getting the graph to work, I have follow the steps on the wiki site above, and I have also gone though the help file, about costum graphs, in Xymon web site. In xymonserver.cfg have I added: - 'postfix=ncv' to the TEST2RRD string - NCV_postfix="*:GAUGE"Hi Kim I htink you may have forgotten to ad "postfix" to the GRAPHS definition line in the xymonserver.cfg The GRAPHS variable is right after the TEST2RRD variable in a default xymonserver.cfg file. Hope this helps! Bill
I have added that now, but it did not fix it. I do understand that the GRAPH string is only to controle what is shown in the trend view. Thanks for the reply. Kim
list Kim Johansen
▸
On 08/11/2014 11:32 PM, Ralph Mitchell wrote:
I think your use of "lambda" in the DEF line may be wrong. I think that belongs to SPLIT_NCV, which is a different thing.
Take a look in data/rrd/servername for the postfix red files. You can dump them out like this:
rrdtool dump filename
The variable names will be in the header.
Ralph Mitchell
Thanks Ralph, My problem is that it do not generate the rrd files, but I will keep this in mind when I have the files generated. Kim
list Jeremy Laidman
On 12 August 2014 06:57, Bill Arlofski <user-0b8af203a56e@xymon.invalid> wrote:
In xymonserver.cfg have I added: - 'postfix=ncv' to the TEST2RRD string - NCV_postfix="*:GAUGE"
The instructions for the script say to use SPLITNCV_postfix instead of NCV_postfix. The difference is that you would get one file called postfix.rrd instead of 5 files called postfix,mails_active.rrd, postfix,mails_bouncing.rrd, etc. When not splitting, the text before the colon is used as the DS name, and you have to keep that to under 19 (I think) chars, in which case "mails_in_deferred_state" breeches that constraint, and so the RRD module is probably rejecting all data. When splitting, the text becomes part of the filenames, and instead "lambda" is used as the DS name in each. J
list Kim Johansen
The string length did the fix. Thanks for all the replies. Kim
▸
On 08/12/2014 03:10 PM, Jeremy Laidman wrote:On 12 August 2014 06:57, Bill Arlofski <user-0b8af203a56e@xymon.invalid <mailto:user-0b8af203a56e@xymon.invalid>> wrote:In xymonserver.cfg have I added: - 'postfix=ncv' to the TEST2RRD string - NCV_postfix="*:GAUGE"The instructions for the script say to use SPLITNCV_postfix instead of NCV_postfix. The difference is that you would get one file called postfix.rrd instead of 5 files called postfix,mails_active.rrd, postfix,mails_bouncing.rrd, etc. When not splitting, the text before the colon is used as the DS name, and you have to keep that to under 19 (I think) chars, in which case "mails_in_deferred_state" breeches that constraint, and so the RRD module is probably rejecting all data. When splitting, the text becomes part of the filenames, and instead "lambda" is used as the DS name in each. J
list Jesus Hornelas
Hi, Excuse me, could someone help me, I need to monitor mysql database in Xymon, is this possible? Greetings to all 2014-08-12 12:35 GMT-05:00 Kim Johansen <user-e03b25f5b161@xymon.invalid>:
▸
The string length did the fix. Thanks for all the replies. Kim On 08/12/2014 03:10 PM, Jeremy Laidman wrote: On 12 August 2014 06:57, Bill Arlofski <user-0b8af203a56e@xymon.invalid> wrote:In xymonserver.cfg have I added: - 'postfix=ncv' to the TEST2RRD string - NCV_postfix="*:GAUGE"The instructions for the script say to use SPLITNCV_postfix instead of NCV_postfix. The difference is that you would get one file called postfix.rrd instead of 5 files called postfix,mails_active.rrd, postfix,mails_bouncing.rrd, etc. When not splitting, the text before the colon is used as the DS name, and you have to keep that to under 19 (I think) chars, in which case "mails_in_deferred_state" breeches that constraint, and so the RRD module is probably rejecting all data. When splitting, the text becomes part of the filenames, and instead "lambda" is used as the DS name in each. J
Xymon mailing user-d459c9d661b6@xymon.invalid
list James Louis
Jesus, Please open a new email thread for this entirely new request. Thanks, Jim
▸
On Tue, Aug 12, 2014 at 12:40 PM, Jesus hui <user-3add0ced8140@xymon.invalid> wrote:
Hi, Excuse me, could someone help me, I need to monitor mysql database in Xymon, is this possible? Greetings to all 2014-08-12 12:35 GMT-05:00 Kim Johansen <user-e03b25f5b161@xymon.invalid>: The string length did the fix.Thanks for all the replies. Kim On 08/12/2014 03:10 PM, Jeremy Laidman wrote: On 12 August 2014 06:57, Bill Arlofski <user-0b8af203a56e@xymon.invalid> wrote:In xymonserver.cfg have I added: - 'postfix=ncv' to the TEST2RRD string - NCV_postfix="*:GAUGE"The instructions for the script say to use SPLITNCV_postfix instead of NCV_postfix. The difference is that you would get one file called postfix.rrd instead of 5 files called postfix,mails_active.rrd, postfix,mails_bouncing.rrd, etc. When not splitting, the text before the colon is used as the DS name, and you have to keep that to under 19 (I think) chars, in which case "mails_in_deferred_state" breeches that constraint, and so the RRD module is probably rejecting all data. When splitting, the text becomes part of the filenames, and instead "lambda" is used as the DS name in each. J Xymon mailing user-d459c9d661b6@xymon.invalid
--
* Jim Louis \\\\||//// \ ~ ~ / | @ @ |*
*--oOo---(_)---oOo--*
"If a free society cannot help the many who are poor, it cannot save the
few who are rich." ~ John Kennedy
list Kim Johansen
▸
On 08/12/2014 07:40 PM, Jesus hui wrote:
Hi, Excuse me, could someone help me, I need to monitor mysql database in Xymon, is this possible? Greetings to all
Hey, Take a look at this project: https://github.com/ZeWaren/xymon-mysql-counters Regards, Kim