Actions
Assign Service to Host » History » Revision 7
« Previous |
Revision 7/15
(diff)
| Next »
chin-yeh, 09/09/2010 11:45 AM
- Table of contents
- Assign Service to Host
Assign Service to Host¶
A service should be grouped under a specify service group to ease the configuration tasks.
[Important] Prepare the following information before begin:- host name - the host name of the host to be assigned
- service group - the group name of the service to be monitored
Assign DB2 service¶
Assumes that the target DB2 host has a nagios
user and the user has the monitor related privileges assigned.
- db2_connect_cmd - check the time taken to establish connection to DB2
- database name - the name of the database to be monitored
- warning threshold - the warning threshold of this service in seconds unit, e.g. 3 for seconds
- critical threshold - the critical threshold of this service in seconds unit, e.g. 5 for seconds
Steps¶
- login to the nagios server with
nagios
user - edit the
/usr/local/nagios/etc/ecosway/services/db2_services.cfg
nagios$ vi /usr/local/nagios/etc/ecosway/services/db2_services.cfg
- Template:
define service{ use db2-service service_description describe your service here host_name host name check_command db2_connect_cmd!database name!warning threshold!critical threshold }
- Example:
define service{ use db2-service service_description DB2 Connect - MY_STORE database host_name cwydb1 check_command db2_connect_cmd!my_store!3!5 }
Assign Third Party Service¶
Assign eCosway Service¶
Assign Jboss Service¶
Assign Server Resources Service¶
TODO
Updated by chin-yeh over 14 years ago · 7 revisions