Note1: Edited to add Zabbix Agent Log Output at bottom of post.
Zabbix Agent for Solaris 6.0.33 on Solaris 11.4
I have performed the installation steps accordingly. When I start the service with command /usr/bin/zabbix/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf then do a ps -ef | grep zabbix, it shows zabbix_agentd is running with multiple instances.
However, when I imported the SMF manifest below and enable the service, it stays in maintenance mode. svcadm clear zabbix-agentd then svcs -l zabbix-agentd the reason gave was the service restarted too quickly.
I provide the SMF Manifest I use. Appreciate if you can help to advise how to resolve this problem.
Do let me know any other information you need from me. Thanks in advance.
<?xml version="1.0" ?>
<!DOCTYPE service_bundle
SYSTEM '/usr/share/lib/xml/dtd/service_bundle.dtd.1'>
<!--
Manifest created by svcbundle (2025-Feb-20 16:31:49+0800)
-->
<service_bundle name="application/zabbix-agentd" type="manifest">
<service name="application/zabbix-agentd" version="1" type="service">
<!--
The following dependency keeps us from starting until the
multi-user milestone is reached.
-->
<dependency name="multi_user_dependency" grouping="require_all"
restart_on="none" type="service">
<service_fmri value="svc:/milestone/multi-user"/>
</dependency>
<exec_method name="start" type="method" timeout_seconds="300"
exec="/usr/sbin/zabbix_agentd -c /etc/zabbix/zabbix_agentd.conf"
/>
<!--
The exec attribute below can be changed to a command that SMF
should execute to stop the service. Use svcbundle -s
stop-method to set the attribute.
-->
<exec_method name="stop" type="method" timeout_seconds="300"
exec=":kill"/>
<!--
A duration property group is not needed.
-->
<property_group name="config" type="application">
<propval name="pidfile" type="astring" value="/var/run/zabbix/zabbix_agentd.pid"/>
</property_group>
<instance name="default" enabled="true"/>
<template>
<common_name>
<!--
zabbix-agentd
-->
<loctext xml:lang="C">
application/zabbix-agentd
</loctext>
</common_name>
<description>
<!--
Zabbix Agent for Solaris v6.0.33
-->
<loctext xml:lang="C">
The application/zabbix-agentd service.
</loctext>
</description>
</template>
</service>
</service_bundle>
Note1: Last 10 lines of Zabbix Agent Log
28241:20250221:211143.324 zbx_setproctitle() title:'collector [processing data]'
28241:20250221:211143.324 In update_cpustats()
28241:20250221:211143.325 End of update_cpustats()
28241:20250221:211143.325 In zbx_kstat_collect()
28241:20250221:211143.325 vm_index: 1, freemem: 76813709167, updates: 1740143503
28241:20250221:211143.325 End of zbx_kstat_collect()
28241:20250221:211143.325 zbx_setproctitle() title:'collector [idle 1 sec]'
28246:20250221:211143.875 In send_buffer() host:'10.3.16.251' port:10051 entries:0/100
28246:20250221:211143.875 End of send_buffer():SUCCEED
28246:20250221:211143.875 zbx_setproctitle() title:'active checks #1 [idle 1 sec]'
Here are the Uncommented Entry for zabbix_agentd.conf
PidFile=/var/run/zabbix/zabbix_agentd.pid
LogType=file
LogFile=/var/log/zabbix/zabbix_agentd.log
LogFileSize=1
DebugLevel=5
Server=10.3.16.251
ServerActive=10.3.16.251
Hostname=Server-A