Advertisement
| Hall of Fame |
|
[x]
Posted via EE Mobile
|
||
Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again. |
||
| Question |
|
[x]
Attachment Details
|
||
|
[x]
The Solution Rating System
|
||
With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.
Your Input Matters If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support. Thank you! |
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83: 84: 85: 86: 87: 88: 89: 90: 91: 92: 93: 94: 95: 96: 97: 98: 99: 100: 101: 102: 103: 104: 105: 106: 107: 108: 109: 110: 111: 112: 113: 114: 115: |
These are some OID's that i used:
OID Value
.1.3.6.1.4.1.318.1.1.1.2.1.1.0 Main Battery Status
.1.3.6.1.4.1.318.1.1.10.2.3.2.1.4.1 Environment Temperature in degree celsius
.1.3.6.1.4.1.318.1.1.1.2.2.1.0 Battery Capacity %
.1.3.6.1.4.1.318.1.1.1.2.2.2.0 Internal Temperature in degree celsius
.1.3.6.1.4.1.318.1.1.1.4.2.3.0 Output Load %
.1.3.6.1.4.1.318.1.1.1.4.2.4.0 Output Current in Ampere 3~'
.1.3.6.1.4.1.318.1.1.1.4.2.1.0 Output Voltage in Volt 3~'
.1.3.6.1.4.1.318.1.1.1.4.2.2.0 Output Frequency in Herz'
[edit]Check Commands
With adding the next lines to the commands file and adding the check commands to the host you can get nice results.
define command{
command_name snmp_ups_stat
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.4.1.318.1.1.1.2.1.1.0 -w 3 -c 4 -l 'Main Battery Status'
}
define command{
command_name snmp_ups_envtemp
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.4.1.318.1.1.10.2.3.2.1.4.1 -w 29 -c 40 -l 'environment Temperature' -u 'degree celsius'
}
define command{
command_name snmp_ups_capa
command_line $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.4.1.318.1.1.1.2.2.1.0 -l 'Adv. Battery Capacity' -u '%'
}
define command{
command_name snmp_ups_temp
command_line check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.4.1.318.1.1.1.2.2.2.0 -w 29 -c 40 -l 'internal Temperature' -u 'degree celsius'
}
define command{
command_name snmp_ups_load
command_line check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.4.1.318.1.1.1.4.2.3.0 -w 60 -c 90 -l 'Output Load' -u '%'
}
define command{
command_name snmp_ups_current
command_line check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.4.1.318.1.1.1.4.2.4.0 -w 30 -c 50 -l 'Output Current' -u 'Ampere 3~'
}
define command{
command_name snmp_ups_volt
command_line check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.4.1.318.1.1.1.4.2.1.0 -l 'Output Voltage' -u 'Volt 3~'
}
define command{
command_name snmp_ups_freq
command_line check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o .1.3.6.1.4.1.318.1.1.1.4.2.2.0 -l 'Output Frequency' -u 'Herz'
}
[edit]Host ans services configuration
After adding the check commands we can start to use them with a host. Over here is an example for a host with services.
#### HOST ####
define host{
use generic-host
host_name apc-smart-ups
alias apc-smart-ups
address 172.16.10.90
}
#### SERVICES ####
define service{
use generic-service
host_name apc-smart-ups
service_description Environment-Temperature
check_command snmp_ups_envtemp!public
}
define service{
use generic-service
host_name apc-smart-ups
service_description Battery-Status
check_command snmp_ups_stat!public
}
define service{
use generic-service
host_name apc-smart-ups
service_description Battery-Status
check_command snmp_ups_capa!public
}
define service{
use generic-service
host_name apc-smart-ups
service_description Battery-Status
check_command snmp_ups_freq!public
}
define service{
use generic-service
host_name apc-smart-ups
service_description Battery-Status
check_command snmp_ups_volt!public
}
define service{
use generic-service
host_name apc-smart-ups
service_description Battery-Status
check_command snmp_ups_current!public
}
define service{
use generic-service
host_name apc-smart-ups
service_description Battery-Status
check_command snmp_ups_load!public
}
|