Monday, July 19, 2021

EMAGENT process_type in disco went to NONE

 Dear Folks,

We have seen one of the ias_component went down in disco. It was due to daylight savings.

When we start manually. We could see below error.

$ ./emctl start agent

a emagent.nohup


----- Sun Mar 14 06:00:04 2021::tzOffset for US/Eastern is -300(min), but agent is runnning with tzOffset -240(min)

-----

----- Sun Mar 14 06:00:04 2021::The agentTZRegion value in /u01/app/******/Oracle/Middleware/disco_inst/EMAGENT/emagent_disco_inst/sysman/config/emd.properties is not in agreement with what agent thinks it should be.Please verify your environment to make sure that TZ setting has not changed since the last start of the agent.

If you modified the timezone setting in the environment, please stop the agent and exectute 'emctl resetTZ agent' and also execute the script mgmt_target.set_agent_tzrgn(<agent_name>, <new_tz_rgn>) to get the value propagated to repository -----

--- Shared agent

----- Sun Mar 14 06:00:06 2021::tzOffset for US/Eastern is -300(min), but agent is runnning with tzOffset -240(min)

-----

----- Sun Mar 14 06:00:06 2021::trying again after waiting for 1 sec to account for daylight transition

-----

----- Sun Mar 14 06:00:06 2021::tzOffset for US/Eastern is -300(min), but agent is runnning with tzOffset -240(min)

-----

----- Sun Mar 14 06:00:06 2021::Mismatch detected between timezone in env (US/Eastern) and in /u01/app/*******/Oracle/Middleware/disco_inst/EMAGENT/emagent_disco_inst/sysman/config/emd.properties (US/Eastern). Forcing value to latter.. -----

----- Sun Mar 14 06:00:07 2021::tzOffset for US/Eastern is -300(min), but agent is runnning with tzOffset -240(min)

Cause:

The agent does not recognize the time zone format that changed recently due to daylight saving.

This parameter must be defined in the format: America/New_York

Processes in Instance: disco_inst

---------------------------------+--------------------+---------+----------+------------+----------+-----------+------

ias-component                    | process-type       |     pid | status   |        uid |  memused |    uptime | ports

---------------------------------+--------------------+---------+----------+------------+----------+-----------+------

emagent_disco_inst               | EMAGENT            |       0 | NONE     | 1735082701 |        0 |   0:00:00 | N/A

Discoverer_disco_inst            | PreferenceServer   |   19604 | Alive    | 1735082280 |    99080 | 1370:22:~ | N/A

Discoverer_disco_inst            | ServicesStatus     |   19605 | Alive    | 1735082282 |    11264 | 1370:22:~ | N/A

ohs1                             | OHS                |   19606 | Alive    | 1735082281 |   450824 | 1370:22:~ | https:8889,https:8890,http:8888

Fix

---

Go to /u01/app/*******/Oracle/Middleware/disco_inst/EMAGENT/emagent_disco_inst/sysman/config

replace value of agentTZRegion as below.


 agentTZRegion=-04:00   (here time zone is EST)

cd /u01/app/*******/Oracle/Middleware/disco_inst/bin

./opmnctl stopall

./opmnctl startall

./opmnctl status -l

Now we can see EMAGENT process goes up.

Processes in Instance: disco_inst

---------------------------------+--------------------+---------+----------+------------+----------+-----------+------

ias-component                    | process-type       |     pid | status   |        uid |  memused |    uptime | ports

---------------------------------+--------------------+---------+----------+------------+----------+-----------+------

emagent_disco_inst               | EMAGENT            |   27167 | Alive    | 1735082705 |    63856 |   0:00:09 | N/A

Discoverer_disco_inst            | PreferenceServer   |   27168 | Alive    | 1735082704 |    90588 |   0:00:09 | N/A

Discoverer_disco_inst            | ServicesStatus     |   27165 | Alive    | 1735082703 |    11264 |   0:00:09 | N/A

ohs1                             | OHS                |   27164 | Alive    | 1735082702 |   384616 |   0:00:09 | https:8889,https:8890,http:8888