Нет описания

Jon Schipp d51a15a89f add new plug-in check_nfs_stale 12 лет назад
.gitignore 29232e4f99 add .gitignore 12 лет назад
LICENSE 3451ba2e85 Initial commit 12 лет назад
README.md 98c0d4d291 README: update with new lines 12 лет назад
check_bro.sh a55c1dc8d1 check_bro.sh: variable UNKNOWN used twice 12 лет назад
check_connections.sh 6885646d2e new plugin check_connections.sh 12 лет назад
check_enq.sh c899d341ec check_enq.sh: fix bug when more than two queues are specified 12 лет назад
check_file_growth.sh c725c68344 First commit, including plugins in repository 12 лет назад
check_filesystem_stat.sh ba5cf0778a add filesystem stat script 12 лет назад
check_load.sh fbb63ad150 check_load.sh: added missing ``-w'' option in getops 12 лет назад
check_memory.sh dcf85c1939 check_memory.sh: add plugin to check memory usage on Linux 12 лет назад
check_nfs_stale d51a15a89f add new plug-in check_nfs_stale 12 лет назад
check_ossec.sh 9c216e2d0e check_ossec.sh: add option to exclude multiple services 12 лет назад
check_osx_raid.sh c725c68344 First commit, including plugins in repository 12 лет назад
check_osx_smart.sh c725c68344 First commit, including plugins in repository 12 лет назад
check_osx_temp.sh c725c68344 First commit, including plugins in repository 12 лет назад
check_pps.sh 38257379c9 support Enterprise Linux 12 лет назад
check_rsyslog.sh 0d563d8a72 new plug-in check_rsyslog.sh 12 лет назад
check_service.sh d899533394 check_service.sh: add fail on no output 12 лет назад
check_status_code.sh 5026f4b80a check_status_code.sh: add new script that checks the status code of a process 12 лет назад
check_volume.sh c725c68344 First commit, including plugins in repository 12 лет назад

README.md

nagios-plugins

A collection of Nagios Plugins I've written for production unix environments.

A few of the scripts like check_service.sh and check_volume.sh are designed to be run in heterogenous unix environments and should work on Linux, OSX, AIX, and the BSD's provided a bash or bash-compatible shell to interpret them.

Each script has detailed usage presentable via the ``-h'' option and some of scripts include extended usage examples within the top commented section of the script.

One way to run the plugins requiring elevated privileges is to configure sudo on each monitored machine to allow the nagios user to execute the plug-ins in the plug-in directory as root:

$ visudo # Use visudo to edit the sudoers file , or :
$ echo ’Defaults:nagios !requiretty ’ >> /etc/sudoers
$ echo ’nagios ALL=(root) NOPASSWD:/usr/local/nagios/libexec/∗’ >> /etc/sudoers

If that is the case be sure to limit write permissions for the scripts so that one cannot simply update the scripts with malicious code.

Plugins:

Heterogenous Unix (Unices):

check_load.sh - Check a system's load (run queue) via ``uptime''.

check_service.sh - Check the status of a system service.

check_volume.sh - Check free space for a volume or partition.

check_file_growth - Check whether a file is growing in size (e.g. Monitor for stale log files).

OSX only:

check_osx_raid.sh - Check RAID status of a disk. (Find degraded and failing arrays).

check_osx_smart.sh - Check S.M.A.R.T status of a disk. (Find failing disks).

check_osx_temp.sh - Check temperature of system components. (Find systems running hot).

Application specific:

check_ossec.sh - Perform multiple checks for a OSSEC server (e.g. Find a disconnected agent).

check_bro.sh - Perform multiple checks for a Bro cluster (e.g. Find stopped workers).