0

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?

Yasiru G
  • 6,886
  • 6
  • 23
  • 43

1 Answers1

1

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
Steve Shipway
  • 3,754
  • 3
  • 22
  • 39
  • Thanks Stave! You are right, I figured it out last Friday and got fixed it. Now its working perfectly :) – Yasiru G Jul 02 '13 at 07:13
  • Hi Stave, Not sure whether this is related to the problem I had above. adding ThreshDir fixed my problem but now I notice that ThreshProgI/O works only at first time. It wont work in next 5 minutes. At first run it create a file in the TheshDir. If I delete it later ThreshProgI/O works. Could you help me to fix htis, Thank you! – Yasiru G Jul 09 '13 at 08:46
  • 1
    I believe this is by design. The threshprogI/O is only triggered the /first/ time when the threshold is broken, not on subsequent breaks. That is why when you delete the threshold files it triggers again. – Steve Shipway Jul 28 '13 at 22:55