Search Exchange
Search All Sites
Nagios Live Webinars
Let our experts show you how Nagios can help your organization.Login
Directory Tree
Check Services on SUN Solaris (5.10) with svcs
Shell Script Plugin to Check the state of the Services on Solaris.solaris svcs check script, writen as shell script, not very complex ;-)
the follwing states are reconized:
0 | OK | if online
1 | WARNING | if disabled
1 | WARNING | if maintenance
2 | CRITICAL | if offline
3 | UNKNOWN | if not available or it returns another state
the follwing states are reconized:
0 | OK | if online
1 | WARNING | if disabled
1 | WARNING | if maintenance
2 | CRITICAL | if offline
3 | UNKNOWN | if not available or it returns another state
Reviews (1)
bybored, August 18, 2011
This script is needed some correction:
"grep $1" must be replaced by "grep "$1: ""
This is necessary to do correct change service with rather like names.
For example, if system has systel-log and system-log-ng services, your version just use first (by list, by A-Z order).
"grep $1" must be replaced by "grep "$1: ""
This is necessary to do correct change service with rather like names.
For example, if system has systel-log and system-log-ng services, your version just use first (by list, by A-Z order).