Introduction

HP-UX, provided by Hewlett Packard Enterprise, is a robust and secure Unix-based operating system designed specifically for HP’s servers. Based on the Unix System V architecture, HP-UX offers a stable and highly scalable environment for enterprise workloads. It is one of the few commercial operating systems certified under UNIX 03 standards, adhering to the strict compliance and reliability requirements of high-end enterprise environments.

Features of HP-UX Integration

  • HP-UX systems can be automatically discovered and onboarded into the OpsRamp platform, ensuring seamless integration and minimal manual intervention.
  • Configurable alert policies help IT teams stay ahead of issues with instant notifications and detailed reporting, allowing for proactive management.
  • Through resource monitoring and utilization insights, OpsRamp helps optimize the performance of HP-UX systems by identifying bottlenecks or resource constraints.
  • Access to intuitive dashboards that provide key metrics, enabling system administrators to monitor CPU usage, memory utilization, disk activity, and network performance in real-time.

Prerequisites

  • OpsRamp Classic Gateway 14.0.0 and above.
  • OpsRamp Nextgen Gateway 14.0.0 and above.
    Note: OpsRamp recommends using the latest Gateway version for full coverage of recent bug fixes, enhancements, etc.
  • Non-root users should have a home directory and make sure the user has read, write & execute permissions to that directory for log file monitoring.(As part of log file monitoring, the application will copy the .sh script file into the HP-UX server device which is responsible for log file monitoring. This will copy the file into user’s home directory)
  • Provided IP Address/Host Name, Credentials should work for SSH communication.
  • Users need to add path /usr/sbin against path variables in the .profile file to achieve NETWORK related metrics. Example:
(hpux_server_network_interface_OutTraffic, hpux_server_network_interface_InDiscards, hpux_server_network_interface_OutPackets, hpux_server_network_interface_OutErrors, hpux_server_network_interface_OutDiscards, hpux_server_network_interface_InPackets, hpux_server_network_interface_InErrors, hpux_server_network_interface_Collisions, hpux_server_network_interface_Status, hpux_server_network_interface_InTraffic).
cat .profile
# Set up the search paths:
        PATH=$PATH:/usr/bin:/usr/sbin:/etc:/usr/local/bin:.
  • Users should have a tmp folder, the application will use it to store top command output in order to retrieve CPU and memory utilization metrics.
Commands using tmp folder
top -f /tmp/topoutput.txt

cat /tmp/topoutput.txt

rm /tmp/topoutput.txt
  • Users who want to use log file monitoring must have a home directory on the system where the script will be run.

pwd

[content@centos-node1 ~]$ pwd
/home/content

Supported Target Versions
HP-UX hpux1 B.11.31 OS

Migration Details

  1. Check for the gateway version as a prerequisite step - classic gateway-12.0.1 and above.
    Notes:

    • You only have to follow these steps when you want to migrate from sdk 1.0 to sdk 2.0.
    • For first time installation below steps are not required.
      • Application name should be the same.
      • Disable all installed integrations configurations for that application. This is to make sure no discovery and monitoring requests are processed.
      • Install and Add the configuration to that sdk 2.0 application.
      • During the migration from SDK 1.0 to SDK 2.0, ensure that you uncheck the Bypass Resource Reconciliation checkbox.
        Note: refer to Configure and Install the HP UX Server Integration & View the HP UX Server Details sections of this document.
  2. Once all discoveries are completed with the sdk 2.0 applicaion, follow any one of the approaches.

    • Direct uninstallation of the sdk1.0 adaptor application through the uninstall API with skipDeleteResources=true in the post request

End-Point: https://{{host}}/api/v2/tenants/{tenantId}/integrations/installed/{installedIntgId}

Request Body:

{
    "uninstallReason": "Test",
    "skipDeleteResources": true
}

(OR)

  • Delete the configuration one by one through the Delete adaptor config API with the request parameter as skipDeleteResources=true

End-Point: https://{{host}}/api/v2/tenants/{tenantId}/integrations/installed/config/{configId}?skipDeleteResources=true.

  • Finally, uninstall the adaptor application through API with skipDeleteResources=true in the post request.

End-Point:

https://{{host}}/api/v2/tenants/{tenantId}/integrations/installed/{installedIntgId}

Request Body:

{
    "uninstallReason": "Test",
    "skipDeleteResources": true
}

Supported Metrics

Click here to view the supported metrics
Native TypeMetric NameDisplay NameUnitApplication VersionMetric Description
HP UX Serverhpux_server_UptimeHP-UX Server Uptimem3.0.0HP UX Server Uptime in minutes
hpux_server_realMemory_PagesUtilizationHP-UX Server real memory pages utilization%3.0.0The perecentage of memory pages used
hpux_server_logFile_AlertStatisticsHP-UX Server Log file alert Statistics2.0.0HP UX server log file monitoring alert statistics.
hpux_server_openFileDescriptors_UtilizationHP-UX Server open file descriptor utilization%2.0.0HP UX open file descriptors used percentage.
hpux_server_openFileDescriptors_UsedCountHP-UX Server open file descriptor used countCount2.0.0Current number of open file descriptors.
hpux_server_loggedInUsers_PctHP-UX Server logged in users percentage%2.0.0Current number of logged in users percentage.
hpux_server_loggedInUsers_CountHP-UX Server logged in users countCount2.0.0Current number of logged in users.
hpux_server_runningProcesses_PctHP-UX Server running processes percentage%2.0.0Current running processes percentage.
hpux_server_runningProcesses_CountHP-UX Server running processes countCount2.0.0Current number of running processes.
hpux_server_semaphores_UtilizationHP-UX Server semaphores utilization%2.0.0Semaphore ID's used percentage.
hpux_server_semaphores_UsedCountHP-UX Server semaphores used countCount2.0.0Current number of semaphore ID’s in use.
hpux_server_messageQueueIDs_UtilizationHP-UX Server message queue IDs utilization%2.0.0Used percentage of current message queue ID's.
hpux_server_messageQueueIDs_UsedCountHP-UX Server message queue IDs used countcount2.0.0Current number of message queue ID’s in use.
hpux_server_sharedMemoryIDs_UtilizationHP-UX Server shared memory IDs utilization%2.0.0Used percentage of shared memory ID's.
hpux_server_sharedMemoryIDs_UsedCountHP-UX Server shared memory IDs used countCount2.0.0Current number of shared memory ID’s in use.
hpux_server_cpu_total_UtilizationHP-UX Server CPU utilization%2.0.0System CPU utilization.
hpux_server_cpu_logicalProcessor_UtilizationHP-UX Server CPU logical processor utilization%2.0.0System CPU logical processor utilization.
hpux_server_cpu_LoadHP-UX Server CPU load2.0.0Average CPU load for 1 min, 5 min, and 15 min.
hpux_server_realMemory_ScanRateHP-UX Server real memory scan ratepsec2.0.0Memory scan rate in pages per second.
hpux_server_realMemory_pageOuts_PagesPerSecHP-UX Server real memory pageouts pages per secpsec2.0.0Memory page out rate in pages per second.
hpux_server_realMemory_pageOuts_KiloBytesPerSecHP-UX Server real memory pageouts kilobytes per secKBps2.0.0Memory pages page out rate in Kilo Bytes per second.
hpux_server_memory_UsedInMBHP-UX Server memory usedMB2.0.0System memory used space.
hpux_server_memory_UtilizationHP-UX Server memory utilization%2.0.0System memory utilization.
hpux_server_swapMemory_UsedInKbHP-UX Server swap memory usedKB2.0.0Swap memory used.
hpux_server_swapMemory_UtilizationHP-UX Server swap memory utilization%2.0.0Swap memory utilization in percent.
hpux_server_individual_swapArea_UtilizationHP-UX Server individual swap area utilization%2.0.0Individual swap area utilization in percent.
hpux_server_fileSystem_space_UtilizationHP-UX Server filesystem space utilization%2.0.0File system space utilization in percent.
hpux_server_fileSystem_space_UsedInMBHP-UX Server filesystem space used in MBMB2.0.0File system space usage in MB.
hpux_server_fileSystem_space_DeltaInKBHP-UX Server filesystem space delta in KBKB2.0.0File system space usage(KB) delta.
hpux_server_fileSystem_Inodes_UtilizationHP-UX Server filesystem Inodes utilization%2.0.0File system Inodes utilization percent.
hpux_server_fileSystem_Inodes_Usage_NumberHP-UX Server filesystem Inodes usage numberCount2.0.0File system Inodes usage number.
hpux_server_fileSystem_Inodes_DeltaHP-UX Server filesystem Inodes deltaCount2.0.0File system Inodes usage delta.
hpux_server_fileSystem_mount_ChangeDetectionHP-UX Server filesystem mount change detection2.0.0File system mount point change detection. It detects if any file system mount point removed and if any new mount point added into the system. Below are the possible values: 0 - Available , 1 - Newly Added , 2 - Removed.
hpux_server_mountpoint_space_UtilizationHP-UX Server mountpoint space utilization%2.0.0Mount point space utilization in percent.
hpux_server_mountpoint_space_UsedInMBHP-UX Server mountpoint space used in MBMB2.0.0Mount point usage in MB.
hpux_server_mountpoint_space_DeltaInKBHP-UX Server mountpoint space delta in KBKB2.0.0Mount point space usage(KB) delta.
hpux_server_mountpoint_Inodes_UtilizationHP-UX Server mountpoint Inodes utilization%2.0.0Mount point Inodes utilization percent.
hpux_server_mountpoint_Inodes_Usage_NumberHP-UX Server mountpoint Inodes usage numberCount2.0.0Mount point Inodes usage number.
hpux_server_mountpoint_Inodes_DeltaHP-UX Server mountpoint Inodes deltaCount2.0.0Mount point Inodes usage delta.
hpux_server_mountpoint_availability_StatusHP-UX Server mountpoint availability status2.0.0Availability status of mount point. These are possible values : 0 - Not Available 1 - Available.
hpux_server_network_interface_OutTrafficHP-UX Server Network Out TrafficKbps2.0.0Monitors Out traffic of each interface for HP UX devices.
hpux_server_network_interface_InDiscardsHP-UX Server Network In discardspsec2.0.0Monitors Network in discards of each interface for HP UX devices.
hpux_server_network_interface_OutPacketsHP-UX Server Network out packetspackets/sec2.0.0Monitors Out packets of each interface for HP UX devices.
hpux_server_network_interface_OutErrorsHP-UX Server Network Out ErrorsCount2.0.0Monitors network out errors of each interface for HP UX devices.
hpux_server_network_interface_OutDiscardsHP-UX Server Network Out discardspsec2.0.0Monitors network Out Discards of each interface for HP UX devices.
hpux_server_network_interface_InPacketsHP-UX Server Network In packetspackets/sec2.0.0Monitors in Packets of each interface for HP UX devices.
hpux_server_network_interface_InErrorsHP-UX Server Network In ErrorsCount2.0.0Monitors network in errors of each interface for HP UX devices.
hpux_server_network_interface_CollisionsHP-UX Server Network Interface collisionsCount2.0.0Monitors network collisions of each interface for HP UX devices.
hpux_server_network_interface_StatusHP-UX Server Network Interface status2.0.0Monitors status of each interface for HP UX devices. Possible values 0-down, 1-up.
hpux_server_network_interface_InTrafficHP-UX Server Network In TrafficKbps2.0.0Monitors In traffic of each interface for HP UX devices.
hpux_server_process_RunningStatusHP-UX Server process running status2.0.0Monitors status of each user mentioned process. possible values 0-Not Running, 1- Running.

Default Monitoring Configurations

HP UX Server has default Global Device Management Policies, Global Templates, Global Monitors and Global metrics in OpsRamp. Users can customize these default monitoring configurations as per their business use cases by cloning respective global templates and global Device Management Policies. OpsRamp recommends doing this activity before installing the app to avoid noise alerts and data.

  1. Default Global Device Management Policies

    OpsRamp has a Global Device Management Policy for each Native Type of HP UX Server. You can find those Device Management Policies at Setup > Resources > Device Management Policies, search with suggested names in global scope. Each Device Management Policy follows below naming convention:

    {appName nativeType - version}

    Ex: hp-ux-server HP UX Server - 2 (i.e, appName = hp-ux-server, nativeType = HP UX Server, version = 2)

  2. Default Global Templates

    OpsRamp has a Global template for each Native Type of HP UX Server. You can find those templates at Setup > Monitoring > Templates, search with suggested names in global scope. Each template follows below naming convention:

    {appName nativeType 'Template' - version}

    Ex : hp-ux-server HP UX Server Template - 2 (i.e, appName = hp-ux-server, nativeType = HP UX Server, version = 2)

  3. Default Global Monitors

    OpsRamp has a Global Monitors for each Native Type which has monitoring support. We can find those monitors at Setup > Monitoring > Monitors, search with suggested names in global scope. Each Monitors follows below naming convention:

    {monitorKey appName nativeType - version}

    Ex: HP UX Server Monitor hp-ux-server HP UX Server 2(i.e, monitorKey = HP UX Server Monitor, appName = hp-ux-server, nativeType = HP UX Server, version = 2)

Configure and Install the HP UX Server Integration

Click here to Configure and Install the HPE UX Server integration
  1. To select your client, navigate to All Clients, and click the Client/Partner dropdown menu.
    Note: You may either type your client’s name in the search bar or select your client from the list.
  2. Navigate to Setup > Account. The Account Details screen is displayed.
  3. Click Integrations. The Installed Integrations screen is displayed with all the installed applications.
    Note: If you do not have any installed applications, you will be navigated to the Available Integrations and Apps page with all the available applications along with the newly created application with the version.
  4. Click + ADD on the Installed Integrations page.
    Note: Search for the integration either by entering the name of the integration in the search bar or by selecting the category of the integration from the All Categories dropdown list.
  5. Click ADD in the HPE UX Server application.
  6. In the Configuration screen, click + ADD. The Add Configuration screen appears.
  7. Enter the following BASIC INFORMATION:


Field NameDescription
NameEnter the name for the configuration.String
IP Address / Host NameIP Address / Host Name of the HP UX Server. It should be accessible from Gateway.String
PortPort

Note: By default 22 is the port value.
Integer
CredentialsSelect the credential associated with your HP UX Server account. If you want to use the existing credentials, select them from the Select Credentials dropdown. Else, click + Add to create credentials. The ADD CREDENTIAL window is displayed. Enter the following information.
  • Name: Credential name.
  • Description: Brief description of the credential.
  • User Name: User name.
  • Password: Password.
  • Confirm Password: Confirm password
Dropdown
App Failure NotificationsWhen selected, you will be notified in case of an application failure such as Connectivity Exception, Authentication Exception.Checkbox
Log File MonitoringConfigure the values for your log file monitoring use caseCheckbox
Log File ConfigurationEnter the additional configuration.

Note: By default [{"Name":"","File Name":"","Rotated File Name":"","Expression":"","Check Type":"","Threshold":"","Severity":""}]
String
File SystemsEnter the File systems.

Note: Default value: ufs,hpfs,vxfs,nfs
String
Mount PointsEnter the Mount Points.

Note: Default value: /tmp
String
ProcessesEnter the processes.

Note: Default value: syslogd,cron,init,sshd,sendmail
String

Notes:

  • Select the following:
    • App Failure Notifications: if turned on, you will be notified in case of an application failure that is, Connectivity Exception, Authentication Exception.
    • Log File Monitoring: The Log File Configuration is part of the additional configuration, configure the values for below fields as per your log file monitoring use case:
      • Log File Configuration: {“Name”:"",“File Name”:"",“Rotated File Name”:"",“Expression”:"",“Check Type”:"",“Threshold”:"",“Severity”:""}
  • Ip Address/Host Name and Port should be accessible from Gateway.
  1. Select the below mentioned Custom Attribute:
FunctionalityDescription
Custom AttributeSelect the custom attribute from the drop down list box.
ValueSelect the value from the drop down list box.

Note: The custom attribute that you add here will be assigned to all the resources that are created by the integration. You can add a maximum of five custom attributes (key and value pair).

  1. In the RESOURCE TYPE section, select:

    • ALL: All the existing and future resources will be discovered.
    • SELECT: You can select one or multiple resources to be discovered.
  2. In the DISCOVERY SCHEDULE section, select Recurrence Pattern to add one of the following patterns:

    • Minutes
    • Hourly
    • Daily
    • Weekly
    • Monthly
  3. Click ADD.

Now the configuration is saved and displayed on the configurations page after you save it.
Note: From the same page, you may Edit and Remove the created configuration.

  1. Under the ADVANCED SETTINGS, Select the Bypass Resource Reconciliation option, if you wish to bypass resource reconciliation when encountering the same resources discovered by multiple applications.

    Note: If two different applications provide identical discovery attributes, two separate resources will be generated with those respective attributes from the individual discoveries.

  2. Click NEXT.

  3. (Optional) Click +ADD to create a new collector by providing a name or use the pre-populated name.

  4. Select an existing registered profile.


  1. Click FINISH.

The application is installed and displayed on the INSTALLED INTEGRATION page. Use the search field to find the installed integration.

Modify the Configuration

View the HP UX Details

To discover resources for HP UX Server:

  1. Navigate to Infrastructure > Search > OS > HP UX Server. The HP UX Server page is displayed
  2. Select the application on the HP UX Server page
  3. The RESOURCE page appears from the right.
  4. Click the ellipsis () on the top right and select View Details.

View resource attributes

The discovered resource(s) are displayed under Attributes. In this page you will get the basic information about the resources such as: Resource Type, Native Resource Type, Resource Name, IP Address etc.

View resource metrics

To confirm HP-UX Server monitoring, review the following:

  • Metric graphs: A graph is plotted for each metric that is enabled in the configuration.
  • Alerts: Alerts are generated for metrics that are configured as defined for integration.

Resource Filter Input Keys

HP UX Server application Resources are filtered and discovered based on below keys:
Note: You can filter the resources with the discoverable keys only.

Click here to view the Supported Input Keys
Resource TypeResource Type
All TypesresourceName
hostName
aliasName
dnsName
ipAddress
macAddress
os
make
model
serialNumber

Supported Alert Custom Macros

Customize the alert subject and description with below macros then it will generate alerts based on customization.
Supported macros keys:

Click here to view the alert subject and description with macros

                                ${resource.name}

                                ${resource.ip}

                                ${resource.mac}

                                ${resource.aliasname}

                                ${resource.os}

                                ${resource.type}

                                ${resource.dnsname}

                                ${resource.alternateip}

                                ${resource.make}

                                ${resource.model}

                                ${resource.serialnumber}

                                ${resource.systemId}

                                ${Custome Attributes in the resource}

                                ${parent.resource.name}

Risks, Limitations & Assumptions

  • Application can handle Critical/Recovery failure notifications for below two cases when user enables App Failure Notifications in configuration:
    • Connectivity Exception
    • Authentication Exception
  • Application uses the provided IpAddress/hostname, Credentials for SSH communications.
  • Application will send duplicate/repeat failure alert notification for every 6 hours.
  • Application cannot control monitoring pause/resume actions based on above alerts
  • Metrics can be used to monitor HP UX Server resources and can generate alerts based on the threshold values.
  • OpsRamp has provided 22 as default SSH Port value for connecting to HP UX end devices via SSH. Users can modify this value from the application configuration page at any point of time if required.
  • No support of showing activity logs.
  • The Template Applied Time will only be displayed if the collector profile (Classic and NextGen Gateway) is version 18.1.0 or higher.
  • Full discovery support requires gateway version 15.0.0 or above.
  • This application supports both Classic Gateway and NextGen Gateway.
  • Currently we do not have monitoring support for below things
    • Hardware metrics
    • Programmable Resource Monitoring
    • Processes (We provided one metric for each process RunningStatus. i.e, hpux_server_process_RunningStatus)
  • For log monitoring, we expect the below json payload as input.
    • “Name” can be any string used to identify individual log configuration.
    • “File Name” is a combination of folder path and file name. Folder path should contain the exact path for the file as prefix. File name can be any valid string or regular expression.. In case of file not found with specified file name, alert will be generated with the severity specified by the user.
      Example 1: C:\Program Files (x86)\Vistara\Agent\log\Age.?t.log
      Matches: Agent.log, Ageat.log ,..
    • “Rotated File Name” is similar to filename field but specifying the rotated file. This field is optional.
    • “Expression” can be any valid string or regular expression used to specify the search string. It’s a mandatory field.
    • “Check Type” can be either “exists” or “not exists”(case insensitive).
    • “Threshold” can be any valid integer. Alert will be generated in case a specified threshold breach happens.
    • “Severity” used to specify the alert type to be created in case of expression found. Possible values are CRITICAL,WARNING,INFO and OK (case insensitive).
Log File configuration
[
  {
  "Name":"",
  "File Name":"",
  "Rotated File Name":"",
  "Expression":"",
  "Check Type":"",
  "Threshold":"",
  "Severity":""
  }
]
  • We do not process logs of size greater than 1GB.
  • We do not process logs for the first request, since it leads to performance issues due to huge data. We will consider the latest logs ( logs generated between first and second polls) from the second request and process accordingly.
  • No recovery alerts are generated for expression related alerts. We will get recovery only for file not found alerts.

Troubleshooting

Before troubleshooting, ensure all prerequisites prerequisites are met.

If HP-UX integrations fail to discover or monitor, troubleshoot using the following steps:

  • Check if any alerts have been generation on HP-UX Server Resource, the gateway, or in vprobe.
  • If there is an error or alert related to the end device connectivity or authentication, try checking the reachability of the end device from the gateway with the following commands:
    • to ping the IP address provided in the configuration: {ping <IP Address>}
    • to try telnet: {telnet <IP Adress> <Port>}
    • To run a SSH command:
      • Prepare the request payload by using below sample request:

        { “apiVersion”: “debug/v1”, “module”: “Debug”, “app”: “hp-ux-server”, “action”: “Reachability”, “payload”: { “ipAddressOrHostName”: “”, “protocol”: “https”, “port”: 443, “requestPath”: “”,

        “version”:“v1”,

        “requestMethod”:"<get/post>", “userName”: “”, “password”: “” } }

      • Encode the request payload to base64

      • Log in to the gateway concole and connect to the GCLI terminal using the below command: {## gcli}

      • Run the command using the previously generated base64 encoded string {## sdkappdebug <base64 encoded string>}

Version History

Application VersionBug fixes / Enhancements
3.1.0
  • Support given to Get Target Response Execute Command
  • Enhancements related to Get Latest Metric Values and Activitylogs
  • Configuration fields File Systems, Mount Points, Processes are updated.
3.0.0Added new metric support for hpux_server_Uptime and hpux_server_realMemory_PagesUtilization
2.0.1Filled the resource name field with hostname.
2.0.0Initial version with discovery and monitoring features.