Content added Content deleted
imported>DrOwl |
imported>mutante m (===Checks=== see: Nagios/checks) |
||
(6 intermediate revisions by 2 users not shown) | |||
Line 1:
Nagios is a [[OS]] monitoring system
=Random Notes ill clean up later =) =
Line 11 ⟶ 6:
==Check your config==
before reloading its all ways a
[Nagios base directory]/bin/nagios -v [Nagios base directory]/etc/nagios.cfg
Line 29 ⟶ 24:
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 system]]s or distributions.
===Nagios and [[Mediawiki]]===
[[Nagios/Mediawiki]]
===Checks===
see: [[Nagios/checks]]
==Links==
*[http://www.nagios.org nagios.org]
*[http://nagios.sourceforge.net/docs/3_0/quickstart.html Quickstart guide]
[[Category:Nagios]]
|
Latest revision as of 19:14, 25 May 2009
Nagios is a OS monitoring system
Random Notes ill clean up later =)[edit]
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[edit]
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[edit]
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[edit]
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.
Nagios and Mediawiki[edit]
Checks[edit]
see: Nagios/checks