Content added Content deleted
imported>mutante |
imported>mutante m (external links close to the bottom of the page please) |
||
Line 1:
Nagios is a [[OS]] monitoring system
=Random Notes ill clean up later =) =
Line 37 ⟶ 32:
/etc/init.d/nagios restart
This applies to a [[Redhat]] or [[Debian]] based [[Linux]] distribution. The init scripts might be in other places on different [[operating system]]s or distributions.
==Links==
*[http://www.nagios.org nagios.org]
*[http://nagios.sourceforge.net/docs/3_0/quickstart.html Quickstart guide]
[[Category:Nagios]]
|
Revision as of 10:24, 13 December 2008
Nagios is a OS monitoring system
Random Notes ill clean up later =)
This is a list of random notes i am using whilst deploying Nagios in a customer environment, I will clean these up in to a bit of a pholisy later =)
Check your config
before reloading its all ways a good idea to check your config
[Nagios base directory]/bin/nagios -v [Nagios base directory]/etc/nagios.cfg
eg
/opt/nagios/bin/nagios -v /opt/nagios/etc/nagios.cfg
Define a new service check for a group
this will add a new service check to all hosts in the solaris host group
define service { service_description if_config display_name if Config check_command check_nrpe!check_ifcfg use generic-service hostgroup_name solaris }
Restarting Nagios
After adding a new service check or changing the config in general, you will have to make Nagios reload its config files or restart Nagios. Most times a reload is enough. So:
/etc/init.d/nagios reload
or, if that doesnt work,
/etc/init.d/nagios restart
This applies to a Redhat or Debian based Linux distribution. The init scripts might be in other places on different operating systems or distributions.