gdha / upgrade-ux

upgrade-ux is a framework for smooth patch installation or update-ux on HP-UX 11i, SunOS and Linux
https://it3.be/projects/upgrade-ux/
GNU General Public License v3.0
4 stars 1 forks source link

Errors found in the alarmdef file. (AG1-53) #111

Closed gdha closed 4 years ago

gdha commented 5 years ago

/opt/perf/bin/ovpa restart

perfalarm was still stopped.

From "/var/opt/perf/status.perfalarm" saw the issue: Metric 'PROC_DISK_PHYS_IO' is undefined. ("/var/opt/perf/alarmdef", near line - 170)

/opt/perf/bin/perfalarm : 05/21/19 04:21:16 ERROR: Errors found in the alarmdef file. (AG1-53)

/opt/perf/bin/perfalarm : 05/21/19 04:21:16 ERROR: The above error may indicate that there is a communication problem between the perfalarm process and the coda process respresenting the data source. (AG1-80) The OVO Message Command is not configured on this system. Contact your OVO Administrator to configure it. (OpC30-913)

# /opt/perf/bin/utility -xc

Parsing file: "/var/opt/perf/alarmdef"
....
Metric 'PROC_DISK_PHYS_IO' is undefined.
("/var/opt/perf/alarmdef", near line - 170)

Note:

  Make sure oacore is running before executing this command.

Unable to complete command: errno 0 (Error 0).
Child process: exit status 1
Error 64.  Can not continue.
Program ended due to error.

Perhaps we should parse the alarmdef as a pre-task before patching, so we cannot be blamed that the perfalarm daemon is not started after the reboot (due to the patching).

gdha commented 5 years ago

Noticed in the log the following:

2019-07-10 05:34:02 Including prep/hp/43_check_perfalarm.sh
2019-07-10 05:34:08 WARNING: /var/opt/perf/alarmdef contains errors - see below
2019-07-10 05:34:08 Including prep/hp/45_check_serviceguard.sh
2019-07-10 05:34:09 Cluster CLRAUX004 (version A.11.20.00.01 - latest patch PHSS_44549) is up

The alarmdef.err file was not cat-ted in the log, albeit the file exists.

in script scripts/prep/hp/43_check_perfalarm.sh: cat $VAR_DIR/$DS/alarmdef.err >> $LOGFILE should become cat $VAR_DIR/$DS/alarmdef.err >&2

gdha commented 4 years ago

Nice command overview of OV related stuff: http://margaux99.blogspot.com/2012/01/hp-ux-mwa-perfalarm.html