How to Add Windows Host to Nagios Monitoring Server

Download Your Free eBooks NOW - 10 Free Linux eBooks for Administrators

Ravi Saive

Simple Word a Computer Geek and Linux Guru who loves to share tricks and tips on Internet. Most Of My Servers runs on Open Source Platform called Linux.

Receive Your Free Complimentary eBook NOW! -

Download Free Linux eBooks

Advanced Bash-Scripting Guide
Linux Bible
A Newbie's Getting Started Guide to Linux
Ubuntu Linux Toolbox: 1000+ Commands

You may also like...

63 Responses

  1. sanjay says:

    Hi Ravi,
    I would like to monitor the tomcat based application so please suggest how to install tomcat plugins on centos through command line

  2. Sam Smith says:

    Hello Ravi Saive,

    I add Window host “Window Server 2008″. when run isn’t working and alert status information “add alert message could not fetch information from server”. Can you give me the way how to fix it, please?

    Thanks you in advance,
    Sam Smith

  3. shoeb says:

    Hi Ravi ,

    I’m using nagios 4 and need to monitor remote window hosts as well local hosts, nagios fetching local hosts data perfectly but could not fetch for remote,could you please let me know what should be checked at nagios server and lInux firewall .Nagios server is behind shorewall firewall .
    Thanks

    • Ravi Saive says:

      @Shoeb,
      Have you opened port 5666 on remote host firewall? is you added Nagios Monitoring IP in remote hosts nrpe.cfg file under xinetd?

  4. Hi Ravi,

    How to remove hosts from Nagios server. Please help me.

    Regards,
    V Venkateswarlu

    • Ravi Saive says:

      @Venkat,
      Just remove the whatever entries you’ve added for the host in hosts.cfg and services.cfg file, and restart the nagios to take new changes..

  5. Steve says:

    Hello Ravi,
    I have added host “Window Server 2008R2″. After “add alert message could not fetch information from server”. So, please help to solve this…
    Thanks in Advance,

    • Sam Smith says:

      I have the sam Problem, How to fix it ???

      Smith

      • Ravi Saive says:

        @Sam,
        Have you opened needed port 12489 for communication with Nagios server on the Windows Firewall?

        • Sam Smith says:

          Hi Ravi,
          Yeah, I have opened and allow for port 12489 ready and I have follow your step correctly too. Do you have any solution, please help…
          Thanks Thanks,
          Sam Smith,

  6. Jonus Joseph says:

    Hello Ravi,

    I am monitoring 20,000 windows server using NSclint++ 3.x in Nagios but usually on most of the windows servers i am getting this kind of alerts (“No data was received from host!”) for CPU and Memory service check , some time this alert will recover automatically and some time it is not, I guess this is false alert.

    Will you please advice me the best method/solution to fix this issue and alert ?

    Thanks is advance.

    Regards,
    Jonus Joseph

    • Ravi Saive says:

      @Jonus,
      It seems something related to network issue..the Nagios server didn’t received any data from host..

      • Jonus Joseph says:

        Hello Ravi,

        I got the solution for this issue on same day
        we need to increase the timout value in check_nt. command,
        I have done the same and issue is resolved now.

        -Jonus Joseph

  7. Asriel Rusdyawan says:

    I think you forgot to create a configuration to windows template so then the host can refer to the template to execute some commands. CMIIW.

  8. Steve says:

    Hi,
    after i configure this, i have found issue below. How to fix it? Please help to support this. thanks

    Drive Space
    CRITICAL 11-22-2014 22:01:40 0d 11h 49m 8s 3/3 (Return code of 127 is out of bounds – plugin may be missing)

    CPU Load
    CRITICAL 11-22-2014 22:02:41 0d 11h 48m 9s 3/3 (Return code of 127 is out of bounds – plugin may be missing)

    Explorer
    CRITICAL 11-22-2014 22:03:38 0d 11h 47m 11s3/3 (Return code of 127 is out of bounds – plugin may be missing)

    Memory Usage
    CRITICAL 11-22-2014 22:04:36 0d 11h 46m 12s3/3 (Return code of 127 is out of bounds – plugin may be missing)

    NSClient++ Version
    CRITICAL 11-22-2014 22:05:36 0d 11h 45m 13s 3/3 (Return code of 127 is out of bounds – plugin may be missing)

    Uptime
    CRITICAL 11-22-2014 22:06:33 0d 11h 44m 15s 3/3 (Return code of 127 is out of bounds – plugin may be missing)

    W3SVC
    CRITICAL 11-22-2014 21:57:33 0d 11h 43m 16s 3/3 (Return code of 127 is out of bounds – plugin may be missing)

    • Ravi Saive says:

      @Steve,
      Most likely due to file permissions, make sure your plugin directory “/usr/local/nagios/libexec” owned by Nagios user and have proper permissions to execute.

      • Steve says:

        @Ravi Saive,

        The first I, wanna to say thanks you for your reply… and the second I have follow your guide step by step but when I check in “/usr/local/nagios/libexec” show below:

        [root@localhost libexec]# ll
        total 6988
        -rwxr-xr-x. 1 nagios nagios 179258 Nov 21 18:19 check_apt
        -rwxr-xr-x. 1 nagios nagios 2252 Nov 21 18:19 check_breeze
        -rwxr-xr-x. 1 nagios nagios 179683 Nov 21 18:19 check_by_ssh
        lrwxrwxrwx. 1 root root 9 Nov 21 18:19 check_clamd -> check_tcp
        -rwxr-xr-x. 1 nagios nagios 137005 Nov 21 18:19 check_cluster
        -r-sr-xr-x. 1 root nagios 175282 Nov 21 18:19 check_dhcp
        -rwxr-xr-x. 1 nagios nagios 174413 Nov 21 18:19 check_dig
        -rwxr-xr-x. 1 nagios nagios 193388 Nov 21 18:19 check_disk
        -rwxr-xr-x. 1 nagios nagios 9290 Nov 21 18:19 check_disk_smb
        -rwxr-xr-x. 1 nagios nagios 189067 Nov 21 18:19 check_dns
        -rwxr-xr-x. 1 nagios nagios 85051 Nov 21 18:19 check_dummy
        -rwxr-xr-x. 1 nagios nagios 3350 Nov 21 18:19 check_file_age
        -rwxr-xr-x. 1 nagios nagios 6316 Nov 21 18:19 check_flexlm
        lrwxrwxrwx. 1 root root 9 Nov 21 18:19 check_ftp -> check_tcp
        -rwxr-xr-x. 1 nagios nagios 175384 Nov 21 18:19 check_hpjd
        -rwxr-xr-x. 1 nagios nagios 335868 Nov 21 18:19 check_http
        -r-sr-xr-x. 1 root nagios 181947 Nov 21 18:19 check_icmp
        -rwxr-xr-x. 1 nagios nagios 146131 Nov 21 18:19 check_ide_smart
        -rwxr-xr-x. 1 nagios nagios 15124 Nov 21 18:19 check_ifoperstatus
        -rwxr-xr-x. 1 nagios nagios 12601 Nov 21 18:19 check_ifstatus
        lrwxrwxrwx. 1 root root 9 Nov 21 18:19 check_imap -> check_tcp
        -rwxr-xr-x. 1 nagios nagios 6888 Nov 21 18:19 check_ircd
        lrwxrwxrwx. 1 root root 9 Nov 21 18:19 check_jabber -> check_tcp
        -rwxr-xr-x. 1 nagios nagios 157666 Nov 21 18:19 check_ldap
        lrwxrwxrwx. 1 root root 10 Nov 21 18:19 check_ldaps -> check_ldap
        -rwxr-xr-x. 1 nagios nagios 158068 Nov 21 18:19 check_load
        -rwxr-xr-x. 1 nagios nagios 5989 Nov 21 18:19 check_log
        -rwxr-xr-x. 1 nagios nagios 21481 Nov 21 18:19 check_mailq
        -rwxr-xr-x. 1 nagios nagios 144237 Nov 21 18:19 check_mrtg
        -rwxr-xr-x. 1 nagios nagios 145290 Nov 21 18:19 check_mrtgtraf
        -rwxr-xr-x. 1 nagios nagios 190840 Nov 21 18:19 check_mysql
        -rwxr-xr-x. 1 nagios nagios 175310 Nov 21 18:19 check_mysql_query
        -rwxr-xr-x. 1 nagios nagios 157374 Nov 21 18:19 check_nagios
        lrwxrwxrwx. 1 root root 9 Nov 21 18:19 check_nntp -> check_tcp
        lrwxrwxrwx. 1 root root 9 Nov 21 18:19 check_nntps -> check_tcp
        -rwxr-xr-x. 1 nagios nagios 179778 Nov 21 18:19 check_nt
        -rwxr-xr-x. 1 nagios nagios 184113 Nov 21 18:19 check_ntp
        -rwxr-xr-x. 1 nagios nagios 173118 Nov 21 18:19 check_ntp_peer
        -rwxr-xr-x. 1 nagios nagios 171363 Nov 21 18:19 check_ntp_time
        -rwxr-xr-x. 1 nagios nagios 212335 Nov 21 18:19 check_nwstat
        -rwxr-xr-x. 1 nagios nagios 8779 Nov 21 18:19 check_oracle
        -rwxr-xr-x. 1 nagios nagios 160109 Nov 21 18:19 check_overcr
        -rwxr-xr-x. 1 nagios nagios 164211 Nov 21 18:19 check_pgsql
        -rwxr-xr-x. 1 nagios nagios 183658 Nov 21 18:19 check_ping
        lrwxrwxrwx. 1 root root 9 Nov 21 18:19 check_pop -> check_tcp
        -rwxr-xr-x. 1 nagios nagios 186937 Nov 21 18:19 check_procs
        -rwxr-xr-x. 1 nagios nagios 157567 Nov 21 18:19 check_real
        -rwxr-xr-x. 1 nagios nagios 9582 Nov 21 18:19 check_rpc
        -rwxr-xr-x. 1 nagios nagios 1453 Nov 21 18:19 check_sensors
        lrwxrwxrwx. 1 root root 9 Nov 21 18:19 check_simap -> check_tcp
        -rwxr-xr-x. 1 nagios nagios 247834 Nov 21 18:19 check_smtp
        -rwxr-xr-x. 1 nagios nagios 251233 Nov 21 18:19 check_snmp
        lrwxrwxrwx. 1 root root 9 Nov 21 18:19 check_spop -> check_tcp
        -rwxr-xr-x. 1 nagios nagios 155395 Nov 21 18:19 check_ssh
        lrwxrwxrwx. 1 root root 9 Nov 21 18:19 check_ssmtp -> check_tcp
        -rwxr-xr-x. 1 nagios nagios 141073 Nov 21 18:19 check_swap
        -rwxr-xr-x. 1 nagios nagios 230757 Nov 21 18:19 check_tcp
        -rwxr-xr-x. 1 nagios nagios 156545 Nov 21 18:19 check_time
        lrwxrwxrwx. 1 root root 9 Nov 21 18:19 check_udp -> check_tcp
        -rwxr-xr-x. 1 nagios nagios 168557 Nov 21 18:19 check_ups
        -rwxr-xr-x. 1 nagios nagios 137947 Nov 21 18:19 check_uptime
        -rwxr-xr-x. 1 nagios nagios 136097 Nov 21 18:19 check_users
        -rwxr-xr-x. 1 nagios nagios 2937 Nov 21 18:19 check_wave
        -rwxr-xr-x. 1 nagios nagios 131526 Nov 21 18:19 negate
        -rwxr-xr-x. 1 nagios nagios 125772 Nov 21 18:19 urlize
        -rwxr-xr-x. 1 nagios nagios 1895 Nov 21 18:19 utils.pm
        -rwxr-xr-x. 1 nagios nagios 2791 Nov 21 18:19 utils.sh
        [root@localhost libexec]#

        So, How to check plugin directory and permission of user allow or not?
        Please help me to solve it. Thanks you!

        • Ravi Saive says:

          @Steve,
          I see the in the plugin directory “/usr/local/nagios/libexec” some of the files are owned by root user. so that means that the nagios user don’t have proper permissions to execute those files, better assign those files to nagios using following command.

          chown -R nagios:nagios /usr/local/nagios/libexec
          
  9. Rohit says:

    Windows client has been added but all services in services tab shows critical

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

Join Over 70000+ Linux Users
  1. 48590
  2. 2375
  3. 13200

Enter your email to get latest Linux Howto's