+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 17
Wireless Networks Thread, does anybody use Nagios here, i need help regarding check_snmp to monitor Server in Technical; Hi, I am trying to monitor Windows Server 2003 CPU, Disk, Memory with Nagios without using its agent. I am ...
  1. #1

    Join Date
    Nov 2007
    Posts
    64
    Thank Post
    6
    Thanked 4 Times in 4 Posts
    Rep Power
    14

    does anybody use Nagios here, i need help regarding check_snmp to monitor Server

    Hi, I am trying to monitor Windows Server 2003 CPU, Disk, Memory with Nagios without using its agent. I am trying to use it with check_snmp where i need OID.
    where do i get the oid to monitor cpu, disk, memory for windows server 2003/2008.
    Or how do i get it? is there any tool for windows to get oid?

    so far i have only got one which gives System Uptime
    ./check_snmp -H 172.20.10.10 -o .1.3.6.1.2.1.1.3.0 -C public




    you help will be appreciated.

  2. #2

    Gatt's Avatar
    Join Date
    Jan 2006
    Posts
    6,658
    Thank Post
    858
    Thanked 646 Times in 429 Posts
    Rep Power
    498
    You don't need the OIDs or to even use check_snmp for WIndows...
    Get the NSclient++ installed & configured on the servers and make sure you have the check_nt plugin for Nagios

    I'll dig out a sample NSClient config and a config from Nagios...

  3. #3


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339
    yes, we also have NSClient++

  4. #4

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,512
    Thank Post
    1,320
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    199
    Quote Originally Posted by bicky View Post
    Hi, I am trying to monitor Windows Server 2003 CPU, Disk, Memory with Nagios without using its agent.
    I take it that means you are trying to do it without the nsclient+ plugin?

    May I ask why you dont want to use it?

  5. #5

    Gatt's Avatar
    Join Date
    Jan 2006
    Posts
    6,658
    Thank Post
    858
    Thanked 646 Times in 429 Posts
    Rep Power
    498
    Quote Originally Posted by RabbieBurns View Post
    I take it that means you are trying to do it without the nsclient+ plugin?

    May I ask why you dont want to use it?
    D'oh! never saw that bit!

    Seems a bit bizarre not to use the agent - it does make it a lot easier to monitor the CPU, Mem usage, Windows Services, etc..

    It would appear that it may not be possible to do this without the agent.. Monitoring Windows Machines

  6. #6

    Join Date
    Nov 2007
    Posts
    64
    Thank Post
    6
    Thanked 4 Times in 4 Posts
    Rep Power
    14
    NSClient++
    in-terms of resources (memory), does it takes lots of resources or not, if not then i will definitely try using it.

    thanks to everybody

    Also what about for printers?
    We have variety of printers from HP, Brother, Kyocera.

  7. #7

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,512
    Thank Post
    1,320
    Thanked 469 Times in 306 Posts
    Blog Entries
    6
    Rep Power
    199
    it uses nothing. couple of meg install is all it is if that.

    I started monitoring printers but then it became a PITA. Teachers would turn them off now and then, we would get too many warnings about toner and the teachers not ocming to get any, etc. So we stopped. IF they need toner they know where they can swap their empty one with a new one.

    But to answer your question, there are various plugins for various printers. Check NAgios Exchange or whatever its called

  8. #8

    Gatt's Avatar
    Join Date
    Jan 2006
    Posts
    6,658
    Thank Post
    858
    Thanked 646 Times in 429 Posts
    Rep Power
    498
    I use check_printer for monitoring our printers
    Bit trial and error to get the OIDs right for each printer

    If needed I can zip the plugin and some sample configs...

  9. #9


    Join Date
    Dec 2005
    Location
    In the server room, with the lead pipe.
    Posts
    4,627
    Thank Post
    275
    Thanked 777 Times in 604 Posts
    Rep Power
    223
    Quote Originally Posted by bicky View Post
    NSClient++
    in-terms of resources (memory), does it takes lots of resources or not, if not then i will definitely try using it.

    thanks to everybody

    Also what about for printers?
    We have variety of printers from HP, Brother, Kyocera.
    check_printer works on Brothers, Kyoceras, HP, Konica-Minolta Bizhubs and Olivetti copiers (can vary greatly on the latter though)

    check_hpjd works on HP printers and can give slightly more HP-specific info.

    To echo what RabbieBurns said - choose your printer notifications carefully. We only alert between 8:45-3:45 and Nagios isn't configured to page on anything but the reports printer. If you have scheduled shutdowns of printers, don't count it in uptime stats.

  10. #10

    Join Date
    Nov 2007
    Posts
    64
    Thank Post
    6
    Thanked 4 Times in 4 Posts
    Rep Power
    14
    Quote Originally Posted by Gatt View Post
    I use check_printer for monitoring our printers
    Bit trial and error to get the OIDs right for each printer

    If needed I can zip the plugin and some sample configs...
    Hi Gatt,
    I will be grateful if you could pass me your sample configs and plugin please.

    Thanks everybody

  11. #11

    Gatt's Avatar
    Join Date
    Jan 2006
    Posts
    6,658
    Thank Post
    858
    Thanked 646 Times in 429 Posts
    Rep Power
    498
    Quote Originally Posted by bicky View Post
    Hi Gatt,
    I will be grateful if you could pass me your sample configs and plugin please.

    Thanks everybody
    check_printer.tar.gz

    Here you go mate

    Any problems let me know

  12. Thanks to Gatt from:

    bicky (1st July 2011)

  13. #12

    Join Date
    Nov 2007
    Posts
    64
    Thank Post
    6
    Thanked 4 Times in 4 Posts
    Rep Power
    14
    Quote Originally Posted by Gatt View Post
    check_printer.tar.gz

    Here you go mate

    Any problems let me know
    thanks Gatt,

    this is the hierachy of the /usr/local/nagios/etc in my nagios installation

    objects
    |
    |
    printers
    |
    bro-5250-01.cfg
    bro-5250-01.cfg
    bro-5250-02.cfg
    hp-4700-01.cfg



    objects
    |
    |
    servers
    |
    dc01.cfg
    dc02.cfg
    exch01.cfg
    printsvr.cfg
    ts01.cfg
    ts02.cfg



    objects
    |
    |
    commands.cfg
    contacts.cfg
    localhost.cfg
    printer.cfg
    switch.cfg
    templates.cfg
    timeperiods.cfg
    windows.cfg




    hav i setup the monitoring for servers & printers in a correct way?
    Also the windows.cfg has some default configuration which displays "winserver" in the nagios page. Is there anyway i can ignore this windows.cfg, i tried deleting it but it doesnt works.

    thanks

  14. #13

    Gatt's Avatar
    Join Date
    Jan 2006
    Posts
    6,658
    Thank Post
    858
    Thanked 646 Times in 429 Posts
    Rep Power
    498
    What problems / errors are you getting with the windows.cfg?

    Mine looks like this :

    Code:
    # Windows host definition template - This is NOT a real host, just a template!
    define host{
    name                    windows-server  ; The name of this host template
    use                     generic-host    ; Inherit default values from the generic-host template
    check_period            24x7            ; By default, Windows servers are monitored round the clock
    check_interval          5               ; Actively check the server every 5 minutes
    retry_interval          1               ; Schedule host check retries at 1 minute intervals
    max_check_attempts      10              ; Check each server 10 times (max)
    check_command           check-host-alive        ; Default command to check if servers are "alive"
    notification_period     24x7            ; Send notification out at any time - day or night
    notification_interval   30              ; Resend notifications every 30 minutes
    notification_options    d,r             ; Only send notifications for specific host states
    contact_groups          admins          ; Notifications get sent to the admins by default
    hostgroups              windows-servers ; Host groups that Windows servers should be a member of
    register                0               ; DONT REGISTER THIS - ITS JUST A TEMPLATE
    }
    And one of my Windows Servers looks like this:

    Code:
    ###############################################################################
    # WINDOWS.CFG - SAMPLE CONFIG FILE FOR MONITORING A WINDOWS MACHINE
    #
    # Last Modified: 06-13-2007
    #
    # NOTES: This config file assumes that you are using the sample configuration
    #     files that get installed with the Nagios quickstart guide.
    #
    ###############################################################################
    
    
    
    
    ###############################################################################
    ###############################################################################
    #
    # HOST DEFINITIONS
    #
    ###############################################################################
    ###############################################################################
    
    # Define a host for the Windows machine we'll be monitoring
    # Change the host_name, alias, and address to fit your situation
    
    define host{
        use        windows-server    ; Inherit default values from a template
        host_name    apps01    ; The name we're giving to this host
        alias        Application Server    ; A longer name associated with the host
        address        w.x.y.z    ; IP address of the host
        }
    
    
    
    
    ###############################################################################
    ###############################################################################
    #
    # HOST GROUP DEFINITIONS
    #
    ###############################################################################
    ###############################################################################
    
    
    # Define a hostgroup for Windows machines
    # All hosts that use the windows-server template will automatically be a member of this group
    
    #define hostgroup{
    #    hostgroup_name    windows-servers    ; The name of the hostgroup
    #    alias        Windows Servers    ; Long name of the group
    #    }
    
    
    
    
    ###############################################################################
    ###############################################################################
    #
    # SERVICE DEFINITIONS
    #
    ###############################################################################
    ###############################################################################
    
    
    # Service definition to ping the switch using check_ping
    define service{
        use                     generic-service
        hostgroup_name          windows-servers
        service_description     Remote Desktop Service
        check_command           check_nt!SERVICESTATE!-d SHOWALL -l TermService
        normal_check_interval   5
        retry_check_interval    1
    }
    
    # Create a service for monitoring the version of NSCLient++ that is installed
    # Change the host_name to match the name of the host you defined above
    
    define service{
        use            generic-service
        host_name        apps01
        service_description    NSClient++ Version
        check_command        check_nt!CLIENTVERSION
        }
    
    
    
    # Create a service for monitoring the uptime of the server
    # Change the host_name to match the name of the host you defined above
    
    define service{
        use            generic-service
        host_name        apps01
        service_description    Uptime
        check_command        check_nt!UPTIME
        }
    
    
    
    # Create a service for monitoring CPU load
    # Change the host_name to match the name of the host you defined above
    
    define service{
        use            generic-service
        host_name        apps01
        service_description    CPU Load
        check_command        check_nt!CPULOAD!-l 5,80,90
        }
    
    
    
    # Create a service for monitoring memory usage
    # Change the host_name to match the name of the host you defined above
    
    define service{
        use            generic-service
        host_name        apps01
        service_description    Memory Usage
        check_command        check_nt!MEMUSE!-w 80 -c 90
        }
    
    
    
    # Create a service for monitoring C:\ disk usage
    # Change the host_name to match the name of the host you defined above
    
    define service{
        use            generic-service
        host_name        apps01
        service_description    C:\ Drive Space
        check_command        check_nt!USEDDISKSPACE!-l c -w 80 -c 90
        }
    
    
    
    # Create a service for monitoring the W3SVC service
    # Change the host_name to match the name of the host you defined above
    
    define service{
        use            generic-service
        host_name        apps01
        service_description    W3SVC
        check_command        check_nt!SERVICESTATE!-d SHOWALL -l W3SVC
        }
    
    # Create a service for monitoring the LogMeIn process
    # Change the host_name to match the name of the host you defined above
    
    define service{
        use            generic-service
        host_name        apps01
        service_description    Netlogon
        check_command        check_nt!SERVICESTATE!-d SHOWALL -l Netlogon
        }
    
    define service{
        use            generic-service
        host_name        apps01
        service_description    SQL Server
        check_command        check_nt!SERVICESTATE!-d SHOWALL -l MSSQLSERVER
        }
    
    define service{
        use            generic-service
        host_name        apps01
        service_description    RPC Service
        check_command        check_nt!SERVICESTATE!-d SHOWALL -l RpcSs
        }
    
    # Following Services relate to Configuratuion Manager
    
    define service{
        use            generic-service
        host_name        apps01
        service_description    SMS Executive Service
        check_command        check_nt!SERVICESTATE!-d SHOWALL -l SMS_EXECUTIVE
        }
    
    define service{
        use            generic-service
        host_name        apps01
        service_description    SMS_REPORTING_POINT Service
        check_command        check_nt!SERVICESTATE!-d SHOWALL -l SMS_REPORTING_POINT
        }
    
    define service{
        use            generic-service
        host_name        apps01
        service_description    SMS_SITE_COMPONENT_MANAGER Service
        check_command        check_nt!SERVICESTATE!-d SHOWALL -l SMS_SITE_COMPONENT_MANAGER
        }
    
    define service{
        use            generic-service
        host_name        apps01
        service_description    SMS_SITE_SQL_BACKUP Service
        check_command        check_nt!SERVICESTATE!-d SHOWALL -l SMS_SITE_SQL_BACKUP
        }
    
    define service{
        use            generic-service
        host_name        apps01
        service_description    SMS_SITE_VSS_WRITER Service
        check_command        check_nt!SERVICESTATE!-d SHOWALL -l SMS_SITE_VSS_WRITER
        }
    
    define service{
        use            generic-service
        host_name        apps01
        service_description    AI_UPDATE_SERVICE_POINT Service
        check_command        check_nt!SERVICESTATE!-d SHOWALL -l AI_UPDATE_SERVICE_POINT
        }
    
    define service{
        use            generic-service
        host_name        apps01
        service_description    Windows Deployment Services Server
        check_command        check_nt!SERVICESTATE!-d SHOWALL -l WDSServer
        }

    Also, check your hostgroups.cfg file as well

    Your hierarchy looks fine btw...

    Whats the output if you run this command?

    Code:
    /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
    (Change paths as appropriate, but i suspect that is the corect one for you...

  15. Thanks to Gatt from:

    bicky (1st July 2011)

  16. #14

    Join Date
    Nov 2007
    Posts
    64
    Thank Post
    6
    Thanked 4 Times in 4 Posts
    Rep Power
    14
    basically all my servers cfg are in Servers folder and i want to avoid using this default windows.cfg. Right now windows.cfg has default config been setuped automatically by nagios installation.

    if i remove windows.cfg, the "/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg" scripts gives error saying "Error open config file windows.cfg fore reading......"

    Unless i put one of my domain controller settings on this file.

    I just wanted all my server cfg to be in server folder and printer cfg to be in printer folder.


    Thanks gatt.

  17. #15

    Gatt's Avatar
    Join Date
    Jan 2006
    Posts
    6,658
    Thank Post
    858
    Thanked 646 Times in 429 Posts
    Rep Power
    498
    I think that windows.cfg file needs to be there, but I dont have anything in it as it just acts as a definition template for certain key info (Notifications, Hostgroups, etc..)
    My server folder contains a config file for each server I want to check and each one of them has a list of what I want to check

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. [PHP] PHP Server Monitor
    By zag in forum Web Development
    Replies: 40
    Last Post: 22nd May 2013, 12:05 PM
  2. My Little Server Monitor
    By ICTNUT in forum Wired Networks
    Replies: 310
    Last Post: 20th March 2013, 03:51 PM
  3. NAGIOS Server
    By Jawloms in forum Wireless Networks
    Replies: 6
    Last Post: 6th August 2010, 02:31 PM
  4. Server monitor software?
    By zag in forum Windows
    Replies: 17
    Last Post: 30th July 2010, 01:43 PM
  5. Free SQL Server Monitor
    By ICTNUT in forum Windows
    Replies: 2
    Last Post: 8th August 2008, 04:04 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
  •