Difference between revisions of "Nagios"

From Hack Sphere Labs Wiki
Jump to: navigation, search
(Windows Internal (Private Data) Monitoring)
(Windows Internal (Private Data) Monitoring)
Line 38: Line 38:
 
*save
 
*save
  
*Installing via MSI
+
==Installing via MSI==
 
#Complete
 
#Complete
 
#Install sample config
 
#Install sample config
Line 45: Line 45:
 
#check everything except what you are not using
 
#check everything except what you are not using
  
*Installing the Windows Agent Manually
+
==Installing the Windows Agent Manually==
 
#Download the latest stable version of the NSClient++ addon from http://sourceforge.net/projects/nscplus
 
#Download the latest stable version of the NSClient++ addon from http://sourceforge.net/projects/nscplus
 
#Unzip the NSClient++ files into a new C:\NSClient++ directory
 
#Unzip the NSClient++ files into a new C:\NSClient++ directory
Line 54: Line 54:
 
#create a nsclient.ini file
 
#create a nsclient.ini file
 
#start service/reboot/run command to start
 
#start service/reboot/run command to start
 +
 +
==add host to nagios==
 +
  
 
==Notes==
 
==Notes==
 
*http://nagios.sourceforge.net/docs/3_0/monitoring-windows.html
 
*http://nagios.sourceforge.net/docs/3_0/monitoring-windows.html

Revision as of 14:26, 9 October 2013

Debian

aptitude install nagios3 nagios-plugins nagios-nrpe-plugin nagios3-doc

Set domain if you have one (else leave default) and set login user and password (it should prompt your for both)

At the time I had to apply the fix that is here: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=626462

Notes

General Ping Monitoring

You put a host config file in the host config directory and restart nagios. It will then pull the new host in.

/etc/nagios3/conf.d

Contains templates that you can pull into your host config files.

/etc/nagios3/conf.d

is also where you put your host config files.

  • Example
define host{
        use                     generic-host            ; Name of host template to use
        host_name               HOSTNAME
        alias                   HOSTNAME
        address                 192.168.52.20
        }

Save that in

/etc/nagios3/conf.d

and

/etc/init.d/nagios3 restart

you should see it pop in

Windows Internal (Private Data) Monitoring

  • Configure nagios
nano /etc/nagios3/nagios.cfg
  • uncomment ycfg_file=/etc/nagios3/objects/windows.cfg
  • save

Installing via MSI

  1. Complete
  2. Install sample config
  3. Check all users
  4. Add allowed host
  5. check everything except what you are not using

Installing the Windows Agent Manually

  1. Download the latest stable version of the NSClient++ addon from http://sourceforge.net/projects/nscplus
  2. Unzip the NSClient++ files into a new C:\NSClient++ directory
  3. Open a command prompt and change to the C:\NSClient++ directory
  4. Register the NSClient++ system service with the following command:
nscp.exe service --install
  1. Open the services manager and make sure the NSClientpp service is allowed to interact with the desktop (see the 'Log On' tab of the services manager). If it isn't already allowed to interact with the desktop, check the box to allow it to.
  2. create a nsclient.ini file
  3. start service/reboot/run command to start

add host to nagios

Notes