check_hpasm results not displaying correctly
-
JasonMagee
- Posts: 31
- Joined: Thu Jan 26, 2012 1:12 pm
check_hpasm results not displaying correctly
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?
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
The main nagios.cfg file has a list of object name characters that it won't allow:
You can try removing the " ' " character from this list, but it can have unpredictable results. Unfortunately, I cannot test it in my environment.
Code: Select all
illegal_object_name_chars=`~!$%^&*|'"<>?,()=Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: check_hpasm results not displaying correctly
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.
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
Additionally, if you are adding items through the XI interface, you will get undesirable results if using {} in hostame or service description
-
JasonMagee
- Posts: 31
- Joined: Thu Jan 26, 2012 1:12 pm
Re: check_hpasm results not displaying correctly
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$
}
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
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
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
What version of Nagios XI are you running?
-
JasonMagee
- Posts: 31
- Joined: Thu Jan 26, 2012 1:12 pm
Re: check_hpasm results not displaying correctly
2011R3.1
I have been having this issue since I started using the product. Even before the upgrade.
I have been having this issue since I started using the product. Even before the upgrade.
Re: check_hpasm results not displaying correctly
See if you have any difficulties opening this URL:
Can you also upload the "/usr/local/nagiosxi/html/includes/utilsx.inc.php" file, so we can take a look at it? Thanks!
Code: Select all
http://<serveraddress>/nagiosxi/backend/?cmd=getservicestatusBe sure to check out our Knowledgebase for helpful articles and solutions!