Announcement Announcement Module
Collapse
No announcement yet.
Nagios: Deploying of Plugins Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Nagios: Deploying of Plugins

    NAGIOS

    Nagios is an open source computer system monitoring, network monitoring and infrastructure monitoring software application. Nagios offers monitoring and alerting services for servers, switches, applications, and services. It alerts the users when things go wrong and alerts them a second time when the problem has been resolved.

    Nagios was originally designed to run under Linux but also runs well on other Unix variants. It is a free software licensed under the terms of the GNU General Public License version 2 as published by the Free Software Foundation.

    FEATURES
    • Monitoring of network services (SMTP, POP3, HTTP, NNTP, ICMP, SNMP, FTP, SSH)
    • Monitoring of host resources (processor load, disk usage, system logs) on a majority of network operating systems, including Microsoft Windows with the NSClient++ plugin
    • Monitoring of anything else like probes (temperature, alarms,etc.) which have the ability to send collected data via a network to specifically written plugins
    • Monitoring via remotely run scripts via Nagios Remote Plugin Executor
    • Remote monitoring supported through SSH or SSL encrypted tunnels.
    • A simple plugin design that allows users to easily develop their own service checks depending on needs, by using their tools of choice (shell scripts, C++, Perl, Ruby, Python, PHP, C#, etc.)
    • Parallelized service checks
    • The ability to define network host hierarchies using 'parent' hosts, allowing the detection of and distinction between hosts that are down or unreachable
    • Contact notifications when service or host problems occur and get resolved (via e-mail, pager, SMS, or any user-defined method through plugin system)
    • The ability to define event handlers to be run during service or host events for proactive problem resolution
    • Automatic log file rotation
    • Support for implementing redundant monitoring hosts
    • An optional web-interface for viewing current network status, notifications, problem history, log files, etc.
    • Data storage via text files rather than database
    NAGIOS PLUGIN TYPES
    • Direct Plugins-
    These are the scripts that run from the nagios server itselfs and produce alerts in nagios according to the script output
    eg: check_http, check_ssh, check_ping
    • NRPE Plugins-
    These are the script that run from the remote server via nrpe daemon.
    eg: check_mem, check_disk, check_load

    NAGIOS PLUGIN DEVELOPMENT

    Nagios plugin directory- /usr/local/nagios/libexec

    Nagios plugins can be written in any languages like bash, C++, Perl, Ruby, Python, PHP, C#, etc. Nagios works on the basis of exit status fo these scripts. So we need to set the output of the scripts as the exit status which needd to give nagios. One thing is to be noted that nagios user must have exicute permission on the plugin script.

    Nagios Exit Status are,

    0 - Ok/Up - The host is up and replied in acceptable time
    1 - Warning - The host is up, but some "warning" threshold was exceeded
    2 - Critical/Down - The host is down or some "critical" threshold was exceeded
    3 - Unknown - Invalid command line arguments were supplied or an internal error occurred

    For direct checks, we need to place the plugin script in the nagios serevr itself.

    Once a script completed, need to define this new command in nagios monitoring. i.e. need to define this command in the file /usr/local/nagios/etc/objects/commands.cfg

    For nrpe plugins , we need to save the plugins in the remote server.

    Once a script completed, need to define this in nrpe configuration file /usr/local/nagios/etc/nrpe.cfg
    Also need to define this new command in nagios monitoring. i.e. need to define this command in the file /usr/local/nagios/etc/objects/commands.cfg
Working...
X