check_hpasm incorrect results
Posted: Mon Aug 11, 2014 3:30 am
Hello,
check_hapasm reporting nagios server information rather than requested server information
[root@nagios]# ./check_hpasm -H sqlserver -C public-snmp
OK - System: 'proliant dl380 g5', S/N: 'CZC6425STZT', ROM: 'P56 01/24/2008', hardware working fine, da: 1 logical drives, 7 physical drives | fan_1=50% fan_10=50% fan_11=50% fan_12=50% fan_2=50% fan_3=50% fan_4=50% fan_5=50% fan_6=50% fan_7=50% fan_8=50% fan_9=50% temp_1_ioBoard=45;70;70 temp_2_ambient=23;39;39 temp_3_cpu=32;127;127 temp_4_cpu=32;127;127 temp_5_powerSupply=44;77;77
But on the nagios webpage:
OK - System: 'proliant dl360 g7', S/N: 'CZJ03704D28', ROM: 'P68 01/28/2011', hardware working fine, da: 1 logical drives, 4 physical drives
The first from the commnad line is correct for the sqlserver but the second is information from the nagios server itself!
Where is the nagios server incorrectly reading itself rather than the address of the server I want information from?
define command {
command_name nrpe_check_hpasm
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_hpasm -t 60
}
define service {
use generic-service
hostgroup_name tec-Windows-Hardware
service_description SYS - Hardware
contact_groups Notify-Intern
check_period 24x7
notification_interval 60
notification_options w,u,c,r
notification_period 24x7
check_command check_hpasm
max_check_attempts 3
normal_check_interval 60
retry_check_interval 1
}
define host {
use generic-host
host_name SQLSERVER
alias SQLSERVER
address 10.100.8.39
parents FRONT
check_command check-host-alive
max_check_attempts 3
notification_interval 60
notification_period 24x7
notification_options d,u,r
contact_groups Notify-Intern
}
I see this as a nagios problem as it works from the command prompt.
Any help would be appreciated, thank you,
JulianD
check_hapasm reporting nagios server information rather than requested server information
[root@nagios]# ./check_hpasm -H sqlserver -C public-snmp
OK - System: 'proliant dl380 g5', S/N: 'CZC6425STZT', ROM: 'P56 01/24/2008', hardware working fine, da: 1 logical drives, 7 physical drives | fan_1=50% fan_10=50% fan_11=50% fan_12=50% fan_2=50% fan_3=50% fan_4=50% fan_5=50% fan_6=50% fan_7=50% fan_8=50% fan_9=50% temp_1_ioBoard=45;70;70 temp_2_ambient=23;39;39 temp_3_cpu=32;127;127 temp_4_cpu=32;127;127 temp_5_powerSupply=44;77;77
But on the nagios webpage:
OK - System: 'proliant dl360 g7', S/N: 'CZJ03704D28', ROM: 'P68 01/28/2011', hardware working fine, da: 1 logical drives, 4 physical drives
The first from the commnad line is correct for the sqlserver but the second is information from the nagios server itself!
Where is the nagios server incorrectly reading itself rather than the address of the server I want information from?
define command {
command_name nrpe_check_hpasm
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c check_hpasm -t 60
}
define service {
use generic-service
hostgroup_name tec-Windows-Hardware
service_description SYS - Hardware
contact_groups Notify-Intern
check_period 24x7
notification_interval 60
notification_options w,u,c,r
notification_period 24x7
check_command check_hpasm
max_check_attempts 3
normal_check_interval 60
retry_check_interval 1
}
define host {
use generic-host
host_name SQLSERVER
alias SQLSERVER
address 10.100.8.39
parents FRONT
check_command check-host-alive
max_check_attempts 3
notification_interval 60
notification_period 24x7
notification_options d,u,r
contact_groups Notify-Intern
}
I see this as a nagios problem as it works from the command prompt.
Any help would be appreciated, thank you,
JulianD