Content added Content deleted
imported>mutante (Restarting Nagios) |
imported>mutante |
||
Line 35: | Line 35: | ||
/etc/init.d/nagios reload |
/etc/init.d/nagios reload |
||
or, if that doesnt work, |
or, if that doesnt work, |
||
/etc/init.d/nagios |
/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 |
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. |
||
[[Category:Nagios]] |
[[Category:Nagios]] |
Revision as of 10:22, 13 December 2008
Nagios is a OS monitoring system [1]
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.