+ Post New Thread
Results 1 to 6 of 6
*nix Thread, Nagios - MRTG in Technical; Hi I have just installed nagios on fedora, I'm having a problem with the check_mrtg plugin. I have set it ...
  1. #1

    rush_tech's Avatar
    Join Date
    Jul 2006
    Location
    Nottingham
    Posts
    1,410
    Thank Post
    111
    Thanked 265 Times in 201 Posts
    Rep Power
    194

    Nagios - MRTG

    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?

  2. #2

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,600
    Thank Post
    109
    Thanked 769 Times in 598 Posts
    Rep Power
    181
    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.

  3. Thanks to Ric_ from:

    rush_tech (5th March 2008)

  4. #3

    rush_tech's Avatar
    Join Date
    Jul 2006
    Location
    Nottingham
    Posts
    1,410
    Thank Post
    111
    Thanked 265 Times in 201 Posts
    Rep Power
    194
    Cheers Ric_ I shall take a look

  5. #4
    soapyfish's Avatar
    Join Date
    Dec 2008
    Location
    Hertfordshire
    Posts
    180
    Thank Post
    49
    Thanked 7 Times in 5 Posts
    Blog Entries
    1
    Rep Power
    13
    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. :-(

  6. #5

    powdarrmonkey's Avatar
    Join Date
    Feb 2008
    Location
    Alcester, Warwickshire
    Posts
    4,859
    Thank Post
    412
    Thanked 777 Times in 650 Posts
    Rep Power
    182
    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.

  7. #6
    soapyfish's Avatar
    Join Date
    Dec 2008
    Location
    Hertfordshire
    Posts
    180
    Thank Post
    49
    Thanked 7 Times in 5 Posts
    Blog Entries
    1
    Rep Power
    13
    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.

SHARE:
+ Post New Thread

Similar Threads

  1. Nagios Problem
    By sqdge in forum *nix
    Replies: 12
    Last Post: 13th January 2012, 10:11 AM
  2. Replies: 51
    Last Post: 10th November 2009, 05:23 AM
  3. Nagios Display
    By plexer in forum How do you do....it?
    Replies: 4
    Last Post: 17th July 2007, 07:43 PM
  4. Ubuntu Nagios
    By plexer in forum How do you do....it?
    Replies: 2
    Last Post: 10th May 2007, 09:21 PM
  5. Loving Nagios!
    By Ric_ in forum *nix
    Replies: 33
    Last Post: 22nd October 2006, 10:38 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •