check_mrtgtraf: Unable to process MRTG log file
Posted: Tue Dec 11, 2012 12:46 pm
Hello Everyone
I continue to explore Nagios and its plugins. I am trying to get a network switch port monitored for bandwidth using check_mrtgtraf. I am working off of this tutorial:
http://www.thegeekstuff.com/2008/11/how ... ng-nagios/
define service{
use generic-service
host_name core-switch
service_description Port 1 Bandwidth Usage
check_command check_local_mrtgtraf!/var/lib/mrtg/192.168.1.11_1.log!AVG!1000000,2000000!5000000,5000000!10
}
I ran into the issue mentioned in the tutorial
Issue1: Nagios GUI displays “check_mrtgtraf: Unable to open MRTG log file” error message for the Port bandwidth usage
Solution1: make sure the *.log file defined in the check_local_mrtgtraf service is pointing to the correct location.
I did not have MRTG installed and used another howto to install and configure it. I also created the log file by touch <ipaddress>_1.log command and for testing purposes have given 777 permissions on the file. With that the error message changed from 'Unable to open MRTG log file' I now that 'check_mrtgtraf: Unable to process MRTG log file'.
I continue to read online but can't seem to find a solution. Does anyone here know what might be the issue and a possible solution?
Many thanks for your time.
I continue to explore Nagios and its plugins. I am trying to get a network switch port monitored for bandwidth using check_mrtgtraf. I am working off of this tutorial:
http://www.thegeekstuff.com/2008/11/how ... ng-nagios/
define service{
use generic-service
host_name core-switch
service_description Port 1 Bandwidth Usage
check_command check_local_mrtgtraf!/var/lib/mrtg/192.168.1.11_1.log!AVG!1000000,2000000!5000000,5000000!10
}
I ran into the issue mentioned in the tutorial
Issue1: Nagios GUI displays “check_mrtgtraf: Unable to open MRTG log file” error message for the Port bandwidth usage
Solution1: make sure the *.log file defined in the check_local_mrtgtraf service is pointing to the correct location.
I did not have MRTG installed and used another howto to install and configure it. I also created the log file by touch <ipaddress>_1.log command and for testing purposes have given 777 permissions on the file. With that the error message changed from 'Unable to open MRTG log file' I now that 'check_mrtgtraf: Unable to process MRTG log file'.
I continue to read online but can't seem to find a solution. Does anyone here know what might be the issue and a possible solution?
Many thanks for your time.