check_hpasm results not displaying correctly

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
JasonMagee
Posts: 31
Joined: Thu Jan 26, 2012 1:12 pm

check_hpasm results not displaying correctly

Post 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?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: check_hpasm results not displaying correctly

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
KevinD
Posts: 26
Joined: Thu Mar 29, 2012 10:26 am

Re: check_hpasm results not displaying correctly

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_hpasm results not displaying correctly

Post by scottwilkerson »

Additionally, if you are adding items through the XI interface, you will get undesirable results if using {} in hostame or service description
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
JasonMagee
Posts: 31
Joined: Thu Jan 26, 2012 1:12 pm

Re: check_hpasm results not displaying correctly

Post 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$
}
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: check_hpasm results not displaying correctly

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
JasonMagee
Posts: 31
Joined: Thu Jan 26, 2012 1:12 pm

Re: check_hpasm results not displaying correctly

Post by JasonMagee »

Sorry. Same results.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: check_hpasm results not displaying correctly

Post by scottwilkerson »

What version of Nagios XI are you running?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
JasonMagee
Posts: 31
Joined: Thu Jan 26, 2012 1:12 pm

Re: check_hpasm results not displaying correctly

Post by JasonMagee »

2011R3.1
I have been having this issue since I started using the product. Even before the upgrade.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: check_hpasm results not displaying correctly

Post 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!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked