Difference between revisions of "Nagios"
From Hack Sphere Labs Wiki
(→Debian) |
(→Windows Internal (Private Data) Monitoring) |
||
Line 33: | Line 33: | ||
=Windows Internal (Private Data) Monitoring= | =Windows Internal (Private Data) Monitoring= | ||
+ | |||
+ | *Installing the Windows Agent | ||
+ | #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 | ||
+ | #Open a command prompt and change to the C:\NSClient++ directory | ||
+ | #Register the NSClient++ system service with the following command: | ||
+ | |||
+ | |||
==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 13:32, 9 October 2013
Contents
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
- http://www.howtoforge.com/installing-nagios-on-debian-lenny-and-monitoring-a-debian-lenny-server
- http://www.the-tech-tutorial.com/wp-content/uploads/2011/07/nagios-config.png
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
- Installing the Windows Agent
- 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
- Open a command prompt and change to the C:\NSClient++ directory
- Register the NSClient++ system service with the following command: