201601.25
Désactivé
0

Nagios

Parametrage

Putty nagios.clight.fr
cd /usr/local/nagios/etc/servers
nano ubuntu_host.cfg
Add to host, hostgroup and service definitions, then validate config with :
/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg

service nagios restart

chmod 666 /usr/local/nagios/var/rw/nagios.cmd


Afficher nagios


http://nagios.clight.fr/nagios/nagiosadmin/jx.. (or admin nagios)

Configurer cible

config ciblevim /etc/nagios/nrpe.cfg
plugins ciblecd /usr/lib/nagios/plugins
restart cible/etc/init.d/nagios-nrpe-server restart

Configurer monitor

config/usr/local/nagios/etc/objects/linux.cfg
pluginscd /usr/lib/nagios/plugins
website et images/usr/share/nagios3/htdocs
website et images/usr/share/nagios3/htdocs
convert imagespngtogd2 source dest 0 1
Verifier avant restart/usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg
restart after changes to confWeb interface: “Process Info”, “Restart the Nagios process”

Monitor temperature

nagios.clight.frthomas/para etc
configcd /etc/nagios3/conf.d
website et images/usr/share/nagios3/htdocs
convert imagespngtogd2 source dest 0 1
restart after changes to conf/etc/init.d/nagios3 restart

Monitor APT

Pre - mut1

  • /usr/local/sbin/send-apt_status

Mut1 and after : ?