Pregunta

I was using MRTG system and it was log usage data to .log files. I was use 'ThreshProgI' to get threshold alerts and it was working fine.

I changed the usage logging format to rrdtool and now my system is logging all usage to .rrd files without any issues.

the problem is now it is not sending threshold alerts. I have testing it with low value 'ThreshMaxI' but the 'ThreshProgI' script not get run.

Have anyone faced this issue?

¿Fue útil?

Solución

Have you defined a ThreshDir that is writeable by the MRTG process?

To make Thresholds work with MRTG/RRD, you need to have a writeable ThreshDir defined, as well as your ThreshProgI[] and ThreshMaxI[]. If the directory is not defined, or is not writeable, thresholds do not get checked.

EG:

ThreshDir: /u01/rrdtool/thresholds
ThreshMaxO[offset]: 5
ThreshProgO[offset]: /usr/local/bin/notify
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top