Home Directory

Search Exchange

Search All Sites

Nagios Live Webinars

Let our experts show you how Nagios can help your organization.

Contact Us

Phone: 1-888-NAGIOS-1
Email: sales@nagios.com

Login

Remember Me

Directory Tree

Directory

jurim

Reviews(2)
byjurim, June 16, 2014
RAID CRITICAL: 1 array not ok - Array 0 is in state "clean " (raid1) [1 array checked]

To chomp spaces, if state = "clean " or "active "

if "State :" in line:
state = line.split(":")[-1][1:-1]
state = state[:-1]
byjurim, December 22, 2013
In "sched_host_downtime"

$ECHOCMD is pretty useless, "echo" is a shell builtin.

if [ $# -gt 0 ]; then
usage

Should be: if [ $# -eq 0]; then usage

Also "usage" function should be defined before, not after.