Hello all. I am pretty new to nagios and have gotten pretty far in the configuration. I am trying to monitor my 3com switch and when I go to the service detail page and look under my 3com host I see the following:
Port 1 Bandwidth Usage
UNKNOWN 09-03-2008 14:27:20 0d 4h 36m 18s 3/3 check_mrtgtraf: Unable to open MRTG log file
This is what my definition looks like in my switch.cfg:
define service{
use generic-service ; Inherit values from a template
host_name 3com
service_description Port 1 Bandwidth Usage
check_command check_local_mrtgtraf!/var/lib/mrtg/192.168.1.25_1.log!AVG!1000000,1000000!5000000,5000000!10
}
I am not sure if I am missing something here or not. I do have the /var/lib/mrtg directory path, but it has not created an log file. I even tried to create my own and changed the permission to nagios for both owner and group. Does anyone have any ideas on what might be causing this? Any help is greatly appreciated. Thanks