Saturday, 10 March 2012

some NRPE Commands

You can test some of these, by running the following commands:

NRPE Commands

# /usr/local/nagios/libexec/check_nrpe -H localhost -c check_users
# /usr/local/nagios/libexec/check_nrpe -H localhost -c check_load
# /usr/local/nagios/libexec/check_nrpe -H localhost -c check_hda1
# /usr/local/nagios/libexec/check_nrpe -H localhost -c check_total_procs
# /usr/local/nagios/libexec/check_nrpe -H localhost -c check_zombie_procs

Some of the nagios commands

command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10

command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20

[check_hda1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/hda1

[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z

command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200

[check_disk]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/sda

command[check_mem]=/usr/local/nagios/libexec/check_mem 85 95


Use of Nagios
 
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 or Check_MK.

Monitoring of anything else like probes (temperature, alarms...) 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.

Simple plugin design that allows users to easily develop their own service checks depending on needs, by using the tools of choice (shell scripts, C++, Perl, Ruby, Python, PHP, C#, etc.)

Plugins available for graphing of data (Nagiosgraph, PNP4Nagios, Splunk for Nagios, and others available)

Parallelized service checks available

Ability to define network host hierarchy using "parent" hosts, allowing detection of and distinction between hosts that are down and those that are 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)

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

Optional web-interface for viewing current network status, notifications, problem history, log files, etc.

Data storage is done in text files rather than database.

 




No comments:

Post a Comment