Having trouble with check_openmanage plugin
Posted: Thu Dec 15, 2011 12:40 pm
I've read the check_openmanage user guide about defining hosts, services, commands, etc.
My question is, I haven't figured out to add more commands other than the basic check_openmanage command that reads out memory and drive info shown below:
1/3 OK - System: 'PowerEdge 600SC', SN: 'F5DT721', 512 MB ram (1 dimms), 1 logical drives, 2 physical drives
I'm really having trouble getting the grasp of how the define command and define service command relate to each other. I've tried to use the various switches associated with the check_openmanage plugin but I don't know how to incorporate it into my .cfg file so that I can see it through the web console.
When trying to verify the .cfg file I get the following error:
Error: Service check command 'check_openmanage -H $HOSTADDRESS$ --only temp' specified in service 'Temperature' for host 'ddy-dc-0-02' not defined anywhere!
Below I have posted my openmanage.cfg file for further examination.
# Openmanage check via SNMP
define command {
command_name check_openmanage
command_line /usr/lib/nagios/plugins/check_openmanage -H $HOSTADDRESS$
}
# Openmanage check via SNMP
define command {
command_name check_openmanage -H $HOSTADDRESS$--only temp
command_line /usr/lib/nagios/plugins/check_openmanage -H $HOSTADDRESS$
}
#Dell OMSA status
define service{
use generic-service
hostgroup_name dell-servers
servicegroups dell-openmanage
service_description Dell OSMA
check_command check_openmanage
}
#Dell OMSA status
define service{
use generic-service
hostgroup_name dell-servers
servicegroups dell-openmanage
service_description HTML Info
check_command check_openmanage
}
#Dell TEMP status
define service{
use generic-service
hostgroup_name dell-servers
servicegroups dell-openmanage
service_description Temperature
check_command check_openmanage -H $HOSTADDRESS$ --only temp
}
My question is, I haven't figured out to add more commands other than the basic check_openmanage command that reads out memory and drive info shown below:
1/3 OK - System: 'PowerEdge 600SC', SN: 'F5DT721', 512 MB ram (1 dimms), 1 logical drives, 2 physical drives
I'm really having trouble getting the grasp of how the define command and define service command relate to each other. I've tried to use the various switches associated with the check_openmanage plugin but I don't know how to incorporate it into my .cfg file so that I can see it through the web console.
When trying to verify the .cfg file I get the following error:
Error: Service check command 'check_openmanage -H $HOSTADDRESS$ --only temp' specified in service 'Temperature' for host 'ddy-dc-0-02' not defined anywhere!
Below I have posted my openmanage.cfg file for further examination.
# Openmanage check via SNMP
define command {
command_name check_openmanage
command_line /usr/lib/nagios/plugins/check_openmanage -H $HOSTADDRESS$
}
# Openmanage check via SNMP
define command {
command_name check_openmanage -H $HOSTADDRESS$--only temp
command_line /usr/lib/nagios/plugins/check_openmanage -H $HOSTADDRESS$
}
#Dell OMSA status
define service{
use generic-service
hostgroup_name dell-servers
servicegroups dell-openmanage
service_description Dell OSMA
check_command check_openmanage
}
#Dell OMSA status
define service{
use generic-service
hostgroup_name dell-servers
servicegroups dell-openmanage
service_description HTML Info
check_command check_openmanage
}
#Dell TEMP status
define service{
use generic-service
hostgroup_name dell-servers
servicegroups dell-openmanage
service_description Temperature
check_command check_openmanage -H $HOSTADDRESS$ --only temp
}