Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
I have problem with MRTG. It works correctly wen i come in 192.168.3.22/mrtg It shows me Traffic Analysis of my firewall but in Nagios i have a unknown error: check_mrtgtraf: Unable to open MRTG log file
# Monitor bandwidth via MRTG logs
define service {
use generic-service ; Inherit values from a template
host_name firewall
service_description Port 1 Bandwidth Usage
check_command check_mrtgtraf!/var/www/mrtg/192.168.3.6_40.log!AVG!1000000,1000000!5000000,5000000!10
}
cdienger wrote:Does /var/www/mrtg/192.168.3.6_40.log exist? What permissions are set on it?
Yes.
EDIT:
Oh, actually 192.168.3.6_40.log do not exist, i changed it to 192.168.3.6_10.log. Now is "MRTG data has expired (2641 minutes old)"
What should the number be in X 192.168.3.6_X.log?
Run "which rrdtool" or "locate "rrdtool" to help find it. That said, if it's already installed I think all you need to do is modify the mrtg to look like: