Page 1 of 1

Nagios XI 2014R1.1 MRTG Graphs not working

Posted: Thu Jun 05, 2014 8:51 am
by SDK
Hello Nagios support,

i have updated from 2012R2.9 to 2014R1.1 without problems.

All perfgraphs are working properly except the MRTG Bandwidth graphs for all switches in our environment.

Working Ping Graph for the switch:
Ping_Work.png
Not working Bandwidth:
Bandwidth not working.png
The check itself runs without a problem only the graphs are not updated:
Check.png
The rrd files under /var/lib/mrtg get updated correctly. I checked the service-perfdata file and the performance data for the Port Bandwidth is recorded in them. I suspect that the processing for this specific type of perfdata is
not working correctly since all other perfdata graphs are working fine.

Any suggestion?

Thanks

SDK

Re: Nagios XI 2014R1.1 MRTG Graphs not working

Posted: Thu Jun 05, 2014 9:55 am
by SDK
Seems i found the error myself,

the check_rrdtraf srcipt has a bug in it ,when you are using "B" label for the Bandwidth

Code: Select all

set_label(){
case $2 in
    B | b)
        LABEL=" "
        DIV="1"
        ;;
     K | k)   
        LABEL="K"
        DIV="1000"
        ;;
I corrected this issue

Code: Select all

set_label(){
case $2 in
    B | b)
        LABEL="B"
        DIV="1"
        ;;
    K | k)   
        LABEL="K"
        DIV="1000"
        ;;
With the update the plugin was overwritten hence the label was missing and the graphs not updated. It seems I have missed this in my documentation :?

You can lock this thread up.

Thanks