Nagios : Add Monitoring Target Item2016/01/17 |
It's possible to add monitoring Target Items. There are some packages for them or it's possible to create a plugin by yourself.
And also there are many plugins provided by comunity below.
⇒ http://exchange.nagios.org/ |
|
[1] | Many plugins are provided with some packages like follows. |
root@dlp:~# apt-get search nagios-plugins- i nagios-plugins-basic - Plugins for nagios compatible monitoring s p nagios-plugins-basic:i386 - Plugins for nagios compatible monitoring s i A nagios-plugins-common - Common files for plugins for nagios compat p nagios-plugins-common:i386 - Common files for plugins for nagios compat p nagios-plugins-contrib - Plugins for nagios compatible monitoring s p nagios-plugins-contrib:i386 - Plugins for nagios compatible monitoring s p nagios-plugins-extra - Plugins for the nagios network monitoring p nagios-plugins-extra:i386 - Plugins for the nagios network monitoring p nagios-plugins-openstack - Plugins for nagios compatible monitoring O i A nagios-plugins-standard - Plugins for nagios compatible monitoring s p nagios-plugins-standard:i386 - Plugins for nagios compatible monitoring s |
[2] | For example, add check_ntp plugin to monitor time difference between the system and NTP server. |
root@dlp:~#
vi /etc/nagios/objects/commands.cfg # add follows to the end define command{ command_name check_ntp_time command_line $USER1$/check_ntp_time -H $ARG1$ -w $ARG2$ -c $ARG3$ }
root@dlp:~#
vi /etc/nagios/objects/localhost.cfg # add follows to the end ( Warning if it has 1 sec time difference, Critical if it has 2 sec ) define service{ use generic-service host_name localhost service_description NTP_TIME check_command check_ntp_time!ntp1.jst.mfeed.ad.jp!1!2 } /etc/init.d/nagios3 restart |
[3] | It's possible to view the status for a new plugin on the admin site. |
Sponsored Link |
|