Page 1 of 2
check_hpasm results not displaying correctly
Posted: Fri Jun 22, 2012 2:33 pm
by JasonMagee
Hello Support,
Does anyone know how to correct the results of the check_hpasm check command? Running the check from the command line displays properly as follows.
OK - System: 'proliant dl380 g7', S/N: '2M2129013P', ROM: 'P67 05/05/2011', hardware working fine, da: 2 logical drives, 8 physical drives
However when the check runs in nagios xi it displays as follows:
OK - System: 'proliant dl380 g7', S/N: '2M2129013P', ROM: 'P67 05/05/2011', hardware working fine, da: 2 logical drives, 8 physical drives
Any Suggestions?
Re: check_hpasm results not displaying correctly
Posted: Fri Jun 22, 2012 3:24 pm
by lmiltchev
The main nagios.cfg file has a list of object name characters that it won't allow:
Code: Select all
illegal_object_name_chars=`~!$%^&*|'"<>?,()=
You can try removing the " ' " character from this list, but it can have unpredictable results. Unfortunately, I cannot test it in my environment.
Re: check_hpasm results not displaying correctly
Posted: Fri Jun 22, 2012 4:06 pm
by KevinD
I can verify lmiltchev's fears in this area.
At one point, we removed ' as well as <> from the character restrictions, and had the unfortunate pleasure of seeing things break when a check would have unmatched single quotes, and other oddities.
Checks would come back with output only partially filled, as the interpreter would thing that there was more coming, and nothing showed up.
Re: check_hpasm results not displaying correctly
Posted: Fri Jun 22, 2012 4:37 pm
by scottwilkerson
Additionally, if you are adding items through the XI interface, you will get undesirable results if using {} in hostame or service description
Re: check_hpasm results not displaying correctly
Posted: Fri Jun 22, 2012 6:28 pm
by JasonMagee
No "{}" in the Service Decription or Host Description.
Contents of Service file created by Nagios XI:
define service {
host_name rveng
service_description HP Hardware Health
use windows-service
check_command check_hpasm!!!!!!!!
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
register 1
}
Contents of Host file:
define host {
host_name rveng
use xiwizard_windowssnmp_host
address 10.0.0.1
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
contacts jdma
notification_interval 60
notification_period xi_timeperiod_24x7
icon_image win_server.png
statusmap_image win_server.png
_xiwizard windowssnmp
register 1
}
Contents of Command file:
define command {
command_name check_hpasm
command_line /usr/local/nagios/libexec/check_hpasm -H $HOSTADDRESS$
}
Re: check_hpasm results not displaying correctly
Posted: Mon Jun 25, 2012 9:45 am
by lmiltchev
Try something else. Go to: Admin->System Config->Manage System Config and see if "Allow HTML Tags in Host/Service Status" check-box is marked. If it is not, select it and click on "Update Settings". See if this is going to help.
Re: check_hpasm results not displaying correctly
Posted: Mon Jun 25, 2012 9:50 am
by JasonMagee
Sorry. Same results.
Re: check_hpasm results not displaying correctly
Posted: Mon Jun 25, 2012 10:39 am
by scottwilkerson
What version of Nagios XI are you running?
Re: check_hpasm results not displaying correctly
Posted: Mon Jun 25, 2012 10:43 am
by JasonMagee
2011R3.1
I have been having this issue since I started using the product. Even before the upgrade.
Re: check_hpasm results not displaying correctly
Posted: Mon Jun 25, 2012 11:07 am
by lmiltchev
See if you have any difficulties opening this URL:
Code: Select all
http://<serveraddress>/nagiosxi/backend/?cmd=getservicestatus
Can you also upload the "/usr/local/nagiosxi/html/includes/utilsx.inc.php" file, so we can take a look at it? Thanks!