+ Post New Thread
Results 1 to 7 of 7
*nix Thread, Nagios 3 Ubuntu 9.10 HP Switch SNMP Check Failure in Technical; Hi, I am setting up Nagios for the first time, I want it to monitor all my servers and infrastructure ...
  1. #1
    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

    Nagios 3 Ubuntu 9.10 HP Switch SNMP Check Failure

    Hi,

    I am setting up Nagios for the first time, I want it to monitor all my servers and infrastructure and internet connection. So far I have it Monitoring them all in basic ways (ping and public services)

    I am trying to get the check_snmp to work for all the managed HP switches, I have looked at the switches config and SNMP is enabled and the "Read Community" ID is "public"

    when I have the following lines uncommented in the config and run the preflight check I get the error listed at the bottom of the post.

    it seems to be telling me that the I have not defined check_snmp but it cannot see where it wants it to be ?

    #
    # Monitor uptime via SNMP
    #
    define service{
    use generic-service ; Inherit values from a template
    host_name R9-1800-24G
    service_description Uptime
    check_command check_snmp! -C public -o sysUpTime.0
    }





    Reading configuration data...

    Running pre-flight check on configuration data...

    Checking services...
    Error: Service check command 'check_snmp' specified in service 'Uptime' for host 'R9-1800-24G' not defined anywhere!
    Last edited by soapyfish; 21st April 2010 at 12:36 PM.

  2. #2
    ChrisH's Avatar
    Join Date
    Jun 2005
    Location
    East Lancs
    Posts
    5,002
    Thank Post
    120
    Thanked 282 Times in 260 Posts
    Rep Power
    108
    You have definitely installed the plugins?

  3. #3
    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
    How can I "know" I located check_snmp in the following places

    /usr/lib/nagios/plugins/check_snmp.cfg
    /etc/nagios-plugins/config/snmp.cfg

    there is however NO reference to snmp inside the command.cfg but there are these lines

    ################################################## ##############################
    # HOST CHECK COMMANDS
    ################################################## ##############################

    # On Debian, check-host-alive is being defined from within the
    # nagios-plugins-basic package

  4. #4


    Join Date
    Dec 2005
    Location
    In the server room, with the lead pipe.
    Posts
    4,638
    Thank Post
    275
    Thanked 778 Times in 605 Posts
    Rep Power
    223
    In /usr/local/nagios/etc/objects/commands.cfg (alter path depending on where you have nagios installed) you should have an entry line similar to:

    Code:
    # 'check_snmp' command definition
    define command{
            command_name    check_snmp
            command_line    $USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$
            }
    If you've written your checks in custom-commands.cfg, ensure the file is referenced in nagios.cfg

    edit: You should have a check_snmp binary somewhere (no extension). If not, check you've got nagios-plugins installed - search apt for "nagios".
    Last edited by pete; 21st April 2010 at 12:54 PM.

  5. Thanks to pete from:

    soapyfish (21st April 2010)

  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
    Quote Originally Posted by pete View Post
    In /usr/local/nagios/etc/objects/commands.cfg (alter path depending on where you have nagios installed)
    In the Ubuntu package, it's /etc/nagios-plugins/config/snmp*.cfg. If you don't see that directory, you haven't installed the nagios-plugins package.

  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
    Thanks pete, that worked a treat I think I was getting caught out by ubuntu's pre-packed package thanks Again, its on to monitoring the Windows Services next.

  8. #7
    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 have another question,

    Now that I have the snmp monitoring of my layer 2 and 3 switches I am getting data on CPU usage,power,fan, etc. My question is when the reported data states things like,

    CPU OK - 7
    FAN OK - 4
    FREE_MEM OK - 4

    What does the number actually mean, whats the scale ? is 1 good and 10 bad or vice versa or what ? I see that by editing the service definitions I can change the size of the numbers but I do not fully understand what it means really. Does anyone have any info on this stuff or is it as simple as "OK-4" mean its all ok !

    Thanks

SHARE:
+ Post New Thread

Similar Threads

  1. SNMP Noob
    By Gerry in forum Coding
    Replies: 4
    Last Post: 3rd June 2009, 10:28 PM
  2. Replies: 2
    Last Post: 16th August 2008, 08:42 PM
  3. nagios and snmp
    By uk101man in forum *nix
    Replies: 9
    Last Post: 18th April 2008, 01:58 AM
  4. Ubuntu Nagios
    By plexer in forum How do you do....it?
    Replies: 2
    Last Post: 10th May 2007, 09:21 PM
  5. snmp on isa2004
    By browolf in forum Windows
    Replies: 1
    Last Post: 11th May 2006, 09:26 AM

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
  •