Nagios Core Monitoring Windows Server Using NSClient++ | Tech Arkit

Поделиться
HTML-код
  • Опубликовано: 27 авг 2024

Комментарии • 54

  • @TechArkit
    @TechArkit  5 лет назад +2

    Nagios Tutorial, Monitoring windows Server using Nagios.
    Playlist: ruclips.net/p/PL8cE5Nxf6M6btAOnxwxzz4qP0OWvjOsHL

  • @djmerl6171
    @djmerl6171 5 лет назад +1

    Thanks, this helped me correct an issue I was having.

    • @TechArkit
      @TechArkit  5 лет назад +1

      Thanks DJ Merl. Please subscribe for more upcoming useful videos.

  • @prasaths2570
    @prasaths2570 5 лет назад +1

    Thanks @Ravi.

  • @mithinc543
    @mithinc543 2 года назад +1

    Mike:
    Hello I have a question regarding Nagios monitoring tool.
    We have many servers added to our Nagios and we are getting repeated notification short time high CPU Usage like for 5-6 seconds.
    Is there anyway we can configure the CPU_Check service to only notify as Critical when the CPU usage goes above 90% for continuously around 5-10 minutes rather than alerting for 5 seconds?
    This is only happening for one of the SQL server when it goes up 90% during a specific time.

    • @TechArkit
      @TechArkit  2 года назад +1

      Increase retry number and increase the max_attempts.

  • @ysinkannada759
    @ysinkannada759 2 года назад +1

    Hi sir I am getting connection refused could not fetch information from server after enabling the nsclient configuration

    • @TechArkit
      @TechArkit  2 года назад +1

      Add Nagios server IP address in Allowed_hosts =

    • @ysinkannada759
      @ysinkannada759 2 года назад

      @@TechArkit Thanks sir got it the ip was different in that area

  • @matiassi1
    @matiassi1 Год назад +1

    Hi, thanks. One question. where can i find a log file of nsclient, that records all of it? on the server that I am monitoring? Will it be generated automatically or should I create it manually?

    • @matiassi1
      @matiassi1 Год назад +1

      For example, if I restart the service from the server, that save the info in the same machine (log)...

  • @abdelrahmanali1488
    @abdelrahmanali1488 4 года назад +2

    I did it as is, but the host not showing in Nagios, what could the possible issue?

    • @TechArkit
      @TechArkit  4 года назад +1

      You have to add into Nagios, Installing NSClinet wont automatically add into monitoring. You have to add manually.

    • @mikethrane
      @mikethrane 4 года назад +1

      In the video, the host is set to register = 0. As soon as I set my host to register = 1, it showed up in Nagios.

    • @TechArkit
      @TechArkit  4 года назад +1

      @@mikethrane You can register based on requirement.

    • @FerielMufti95
      @FerielMufti95 4 года назад +1

      @@mikethrane thank you so much you helped me !!!!!!!!!!!!!!!!!!!! ia had the same issue !!!!!!

  • @muhibali8876
    @muhibali8876 3 года назад +1

    Hi..I like your tutorial...its well explained. Can you please tell me how to monitor pagefile utilization in windows via nagios?

    • @TechArkit
      @TechArkit  3 года назад +2

      check_nt!password!COUNTER!-l "\\Paging File(_Total)\\% Usage","Paging File usage is %.2f %%" -w 90 -c 95
      Above is the command.
      Refer this config file. github.com/techarkit/nagios/blob/master/windows_server.cfg

    • @muhibali8876
      @muhibali8876 3 года назад +1

      @@TechArkit Thank you very much... its perfectly working...

  • @tveerabathiran8064
    @tveerabathiran8064 4 года назад +1

    bro, I am following your tutorial. we need depth grafana monitor tutorial. kindly start the course.

    • @TechArkit
      @TechArkit  4 года назад +1

      Hi veerabathiran, It will take time to start this course since few courses are in pipeline. Docker is the next series.

  • @urvashibhatia9200
    @urvashibhatia9200 4 года назад +1

    Hello,
    I have done the same as you did but in my case it doesnt show any windows host in the web console.
    On nagios server everything is good . Run check runs smooth but in windows side it is showing the error in the log file
    Failed to query performance counters: PdhCollectQuery failed : 8000075d5: no data to return.

    • @TechArkit
      @TechArkit  4 года назад +1

      Looks Like Nagios agent issue.

    • @urvashibhatia9200
      @urvashibhatia9200 4 года назад

      @@TechArkit how could it be resolved ? Any idea ?

    • @urvashibhatia9200
      @urvashibhatia9200 4 года назад

      I have triggered the command check_nrpe.exe on Windows agent in the command prompt under program files nsclient directory. It is giving an output of
      No connection could be made because the target machine actively refused it.
      Whereas I am able to ping both the machines with IP and domain both.

  • @FerielMufti95
    @FerielMufti95 4 года назад +2

    Dear rech arkit , i did the same as you , i have the same results but finally in the interface nothing is shown only the localhost 127.0.0.1 ... please help !

    • @TechArkit
      @TechArkit  4 года назад +1

      Check the host definition and service definition in another .cfg file.

    • @FerielMufti95
      @FerielMufti95 4 года назад +1

      @@TechArkit which cfg file ?

    • @TechArkit
      @TechArkit  4 года назад +1

      @@FerielMufti95 Did you add the new .cfg file in /usr/local/nagios/etc/objects/ path. after that you have to add the same config file into nagios.cfg file. reload nagios service

    • @FerielMufti95
      @FerielMufti95 4 года назад

      @@TechArkit yes i did still the same problem no added host is shown on the interface , like i didn't add any host !!

    • @FerielMufti95
      @FerielMufti95 4 года назад +1

      @@TechArkit i have added windowsserver.cfg then i uncommented servers.cfg and i back to commented the added line of windowsserver.cfg as you did , i did 2 services CPU and DISK USAGE SPACE , i have repeated the tuto 5 times still having the same problem every thing is okay as you but finally ipaddress/nagios shows only localhost , no added host is shown !

  • @davidkierzkowski
    @davidkierzkowski 3 года назад +1

    How to monitor a windows service and restart

    • @TechArkit
      @TechArkit  3 года назад +1

      After installing NSClient in Windows machine example is below to monitor NSClient Version.
      /usr/local/nagios/libexec/check_nt -H 192.168.48.200 -p 12489 -v CLIENTVERSION -s password
      MSSQL Service status check is below
      /usr/local/nagios/libexec/check_nt -H 192.168.48.200 -p 12489 -v SERVICESTATE -s password -l MSSQLSERVER

  • @0N369
    @0N369 3 года назад +1

    What is this Error....?
    Error: Unable to locate host 'WIN-R1689TR4KSC' for service 'CPU Usage'
    Error: Could not register service (config file '/usr/local/nagios/etc/objects/windowsserver.cfg', starting on line 60)
    Error processing object config files!

    • @TechArkit
      @TechArkit  3 года назад +1

      Check Line number 60. Looks Like there is no host defined with above name.

    • @0N369
      @0N369 3 года назад

      @@TechArkit yes there is define please look once config
      define host {
      use generic-host
      host_name WIN-R1689TR4KSC
      alias WebApplication Server | Located in Itahari Nepal | contact: System Admin
      address 10.10.1.101
      max_check_attempts 5
      check_interval 5
      retry_interval 1
      check_period 24x7
      notification_interval 0
      notification_period 24x7
      notifications_enabled 1
      icon_image win_server.png
      statusmap_image win_server.png
      register 0
      contacts nagiosadmin
      contact_groups admins
      }

  • @suresmaharjan3531
    @suresmaharjan3531 3 года назад +1

    how to add multiple windows hosts?

    • @TechArkit
      @TechArkit  3 года назад +1

      You can copy the same file and create one more file and change ip & hostname

  • @FerielMufti95
    @FerielMufti95 4 года назад +1

    can you please post to us the services configuration because they still unknown !

    • @TechArkit
      @TechArkit  4 года назад +1

      Please check this github repo all the configs are available over there github.com/techarkit/nagios

  • @Neel-S
    @Neel-S 4 года назад +1

    sir I want to do certification on Nagios can you plz tell from where I can do this.

    • @TechArkit
      @TechArkit  4 года назад +1

      ruclips.net/video/ZMCfgJkIz3I/видео.html follow this playlist and practice.

  • @rottenfist220
    @rottenfist220 5 лет назад +1

    Config verify on the video says 1 host but it should be 2 hosts...

    • @TechArkit
      @TechArkit  5 лет назад +2

      Yes, due to an technical reasons while editing video one clip was trimmed. Thanks for identifying. Anyway steps are same.

    • @rottenfist220
      @rottenfist220 5 лет назад +1

      @@TechArkit problem is my setup is not running when i put password to agent software's ini file. Can't find where to put that password on Nagios side. Other than this your guide is very good, ty.

    • @TechArkit
      @TechArkit  5 лет назад +2

      In service definition you have to add the password, ensure there is no special characters in password , which is little complicated while passing password. For Host and service definition template download it from my github repo github.com/techtutorials
      ./check_nt -H HOSTNAME -s PASSWORD
      check_command check_nt!password!MEMUSE!-w 90 -c 95

  • @mohamedbensoussia6758
    @mohamedbensoussia6758 4 года назад +1

    i found System uptime - 0 days (s) hour(s) 0 minute(s) `|uptime=0 any solution ?

    • @TechArkit
      @TechArkit  4 года назад +2

      Wait 15 minutes and see

    • @mohamedbensoussia6758
      @mohamedbensoussia6758 4 года назад

      @@TechArkit same problem :(

    • @TechArkit
      @TechArkit  4 года назад

      @@mohamedbensoussia6758 which means NSClient is not communicating with Nagios Server.