adaptec smbd subagent autostart

General support questions
Post Reply
mykolaq
Posts: 3
Joined: 2017/08/22 14:44:16

adaptec smbd subagent autostart

Post by mykolaq » 2017/08/22 14:59:30

Hello! i wanna monitore adaptec raids by snmp. There are two utils by Adaptec: Adaptec Storage Manager and MaxView Storage Manager. I have decided to use maxView, because it is more new and it is supported now. For using snmp with this util I have to lunch aus-snmpd util and,sure, i want to add it to autostart. I have created service file for systemd:

Code: Select all

[root@zabbix ~]# cat /etc/systemd/system/aus-snmpd.service
[Unit]
Description=MaxView Adaptec adapter monitor snmp subagent
Requires=network-online.target snmpd.service stor_cimserver.service stor_tomcat.service stor_agent.service
After=stor_cimserver.service stor_tomcat.service stor_agent.service

[Service]
Type=forking
ExecStart=/usr/StorMan/aus-snmpd

[Install]
WantedBy=multi-user.target
Enable it.Starting is ok.

Code: Select all

[root@zabbix ~]# systemctl start aus-snmpd
[root@zabbix ~]# systemctl status aus-snmpd
● aus-snmpd.service - MaxView Adaptec adapter monitor snmp subagent
   Loaded: loaded (/etc/systemd/system/aus-snmpd.service; enabled; vendor preset: disabled)
   Active: active (running) since Tue 2017-08-22 17:52:14 MSK; 3s ago
Restart ok. Stop ok. But autostart is not.
Rights is ok.

Code: Select all

[root@zabbix ~]# ls -la /etc/systemd/system/
total 16
drwxr-xr-x. 9 root root 4096 Aug 22 17:35 .
drwxr-xr-x. 4 root root  151 Jul 10 16:41 ..
-rwxr-xr-x. 1 root root  335 Aug 22 17:35 aus-snmpd.service
drwxr-xr-x. 2 root root   31 Jul 10 17:31 basic.target.wants
Centos version is 7.3.1611

tunk
Posts: 1206
Joined: 2017/02/22 15:08:17

Re: adaptec smbd subagent autostart

Post by tunk » 2017/08/22 23:03:04

If you by autostart mean automatic startup at boot, then you may be missing this:
systemctl enable aus-snmpd

mykolaq
Posts: 3
Joined: 2017/08/22 14:44:16

Re: adaptec smbd subagent autostart

Post by mykolaq » 2017/08/23 07:27:08

tunk wrote:If you by autostart mean automatic startup at boot, then you may be missing this:
systemctl enable aus-snmpd
Sure i did it :)

mykolaq
Posts: 3
Joined: 2017/08/22 14:44:16

Re: adaptec smbd subagent autostart

Post by mykolaq » 2017/09/04 13:54:04

mykolaq wrote:
tunk wrote:If you by autostart mean automatic startup at boot, then you may be missing this:
systemctl enable aus-snmpd
Sure i did it :)
Working config is like this

Code: Select all

[root@zabbix ~]# cat /etc/systemd/system/aus-snmpd.service
[Unit]
Description=MaxView Adaptec adapter monitor snmp subagent
Requires=network-online.target snmpd.service stor_cimserver.service stor_tomcat.service stor_agent.service multi-user.target
After=snmpd.service stor_cimserver.service stor_tomcat.service stor_agent.service

[Service]
Type=forking
ExecStart=/usr/StorMan/aus-snmpd
Restart=always
RestartSec=20

[Install]
WantedBy=multi-user.target
Dont understand why it doesn't work without restarting, but it doesn't matter

Post Reply