rush_tech (5th March 2008)

Hi I have just installed nagios on fedora, I'm having a problem with the check_mrtg plugin. I have set it up as per the quickstart guide on the nagios site. I can monitor the uptime of the switch, port uptime, but the bandwidth though the port is'nt working
I have changed the hostname in the switch.cfg file and left the file path as is
define service{
use generic-service ; Inherit values from a template
host_name switch01
service_description Port 1 Bandwidth Usage
check_command check_local_mrtgtraf!/var/lib/mrtg/192.168.1.253_1.log!AVG!1000000,2000000!5000000,50 00000!10
}
It gives a error " unable to open log file /path/123456.log" so I give it the file where it wants it and then IU get a different error "unable to process log file /path/123456.log"
Anyone got any ideas?

It appears to be ignoring your log path for a start... check the definition of the checkcommand (should be in checkcommands.conf).
There's some checks on the wiki to directly query the switches which may work out better for you too.
rush_tech (5th March 2008)

Cheers Ric_ I shall take a look
To prevent starting another thread on this topic, Does anyone have any experience in enabeling the 64bit counters in mrtg ? it seems to be a well documented issues when monitoring links running at 1Gbps or more. The data through put is not correctly logged
I cannot for the life of me get it working right although the solution seems to be as simple as adding the ::::2 to the end of the target line in each device/port config file. :-(

On the contrary, if it's a new question please start a new topic. It makes searching so much easier.
I've never tried with 64 bit counters, however.
I think I might have solved it I will post tomorrow after ther D2D2T system has thrashed the switch bandwidth abit and I have some conclusive results.
I have posted the solution so far here
mrtg and gigabit traffic
Last edited by soapyfish; 13th July 2010 at 06:24 PM.
There are currently 1 users browsing this thread. (0 members and 1 guests)