Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Directory
jurim
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]
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.
$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.