Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
AIX 5.3/6.1/7.1 - Check Filesystems
0.6
2013-11-09
- Nagios 1.x
- Nagios 2.x
- Nagios 3.x
- Nagios XI
- Nagios Fusion
- Nagios Reactor
MIT
37731
File | Description |
---|---|
check_fs_aix | Check script for AIX 5.3,6.1,7.1 or VIOS. Version 0.6 |
check_aix_disks | Check script for Nagios |
Meet The New Nagios Core Services Platform
Built on over 25 years of monitoring experience, the Nagios Core Services Platform provides insightful monitoring dashboards, time-saving monitoring wizards, and unmatched ease of use. Use it for free indefinitely.
Monitoring Made Magically Better
- Nagios Core on Overdrive
- Powerful Monitoring Dashboards
- Time-Saving Configuration Wizards
- Open Source Powered Monitoring On Steroids
- And So Much More!
The script has features to exclude file-systems and to include only certain types (jfs, nfs, cifs f.ex) of file-systems.
The check includes scripts for remote hosts (AIX or VIOS OS) and Nagios server-side checks.
Collection of scripts I use to monitor AIX/VIOS infrastructure.
### Script for remote AIX/VIOS servers:
I use this script in conjuction with check_aix_disks.
Tested with NRPE 1.9, on AIX 5.3, 6.1, 7.1 and VIOS 2
+ check_fs_aix
+ usage: /usr/nagios/libexec/check_fs_aix options
+ OPTIONS:
+ -h Show this message
+ -w Warning level in percentage (without %).
+ -c Critical level in percentage (without %).
+ -p Pattern for filesystem type. Default is jfs* (matches jfs and jfs2).
+ -e List of filesystems that need to be excluded (seperated with whitespaces). Example -e "/ /tmp /etc" for excluding /, /tmp and /etc filesystems.
+ -v verbose output (all filesystem status OK;WARNING;CRITICAL)
### Script for your Nagios servers:
+ usage: ./check_aix_disks options
Nagios check plugin for check_fs_aix.
Prerequisite: Remote AIX/VIOS server needs to use check_fs_aix with -v flag enabled.
+ OPTIONS:
+ -h Show this message
+ -r Remote hostname
+ -x Remote command of check_fs_aix (with -v flag)
+ -w Default warning level in percentage (without %).
+ -c Default critical level in percentage (without %).
+ -f Define forced threshold for filesystems. Ex. "/var:95:99 /tmp:96:99".
+ -v verbose output (all filesystem status OK;WARNING;CRITICAL)
### Examples of Nagios usage:
## HOST:
define host{
use critical-host
host_name server1
alias server1 (SAP Production)
address 192.168.111.111
parents sw_central_1
icon_image vendors/aix.png
icon_image_alt AIX 7.1 (SAP Production And DB)
vrml_image vendors/aix.png
statusmap_image vendors/aix.gd2
notes_url http://servermanager/?search=$HOSTNAME$
_SID strauss.sam
_FORCEDDISKOPT -f "/oracle/XXX/sapdata1:95:97 /tmp:95:97"
}
## COMMAND:
define command{
command_name check_aix_disks
command_line $USER1$/check_aix_disks -r $HOSTADDRESS$ -x $ARG1$ $_HOSTFORCEDENTRIESAIX$
}
## Service:
define service {
use critical-service
hostgroups unix-servers # I use groups.
service_description FILESYSTEMS
check_command check_aix_disks!check_fs_verbose!_FORCEDENTRIESAIX
}
### Script for remote AIX/VIOS servers:
I use this script in conjuction with check_aix_disks.
Tested with NRPE 1.9, on AIX 5.3, 6.1, 7.1 and VIOS 2
+ check_fs_aix
+ usage: /usr/nagios/libexec/check_fs_aix options
+ OPTIONS:
+ -h Show this message
+ -w Warning level in percentage (without %).
+ -c Critical level in percentage (without %).
+ -p Pattern for filesystem type. Default is jfs* (matches jfs and jfs2).
+ -e List of filesystems that need to be excluded (seperated with whitespaces). Example -e "/ /tmp /etc" for excluding /, /tmp and /etc filesystems.
+ -v verbose output (all filesystem status OK;WARNING;CRITICAL)
### Script for your Nagios servers:
+ usage: ./check_aix_disks options
Nagios check plugin for check_fs_aix.
Prerequisite: Remote AIX/VIOS server needs to use check_fs_aix with -v flag enabled.
+ OPTIONS:
+ -h Show this message
+ -r Remote hostname
+ -x Remote command of check_fs_aix (with -v flag)
+ -w Default warning level in percentage (without %).
+ -c Default critical level in percentage (without %).
+ -f Define forced threshold for filesystems. Ex. "/var:95:99 /tmp:96:99".
+ -v verbose output (all filesystem status OK;WARNING;CRITICAL)
### Examples of Nagios usage:
## HOST:
define host{
use critical-host
host_name server1
alias server1 (SAP Production)
address 192.168.111.111
parents sw_central_1
icon_image vendors/aix.png
icon_image_alt AIX 7.1 (SAP Production And DB)
vrml_image vendors/aix.png
statusmap_image vendors/aix.gd2
notes_url http://servermanager/?search=$HOSTNAME$
_SID strauss.sam
_FORCEDDISKOPT -f "/oracle/XXX/sapdata1:95:97 /tmp:95:97"
}
## COMMAND:
define command{
command_name check_aix_disks
command_line $USER1$/check_aix_disks -r $HOSTADDRESS$ -x $ARG1$ $_HOSTFORCEDENTRIESAIX$
}
## Service:
define service {
use critical-service
hostgroups unix-servers # I use groups.
service_description FILESYSTEMS
check_command check_aix_disks!check_fs_verbose!_FORCEDENTRIESAIX
}
Reviews (0)
Be the first to review this listing!