#EMS collectors not working ,
1 messages · Page 1 of 1 (latest)
@sage vortex Could you check if relevant EMS is listed in configuration file?
https://github.com/NetApp/harvest/blob/main/conf/ems/9.6.0/ems.yaml
Harvest only monitors ems listed in this yaml file. You have to add new ones for monitoring.
@clever pagoda Thank you , do need add in same or i can create new for custom ?
conf/ems/default.yaml updated with new object and created file
It's best to extend it so that default.yaml doesn't get overwritten during upgrades
https://netapp.github.io/harvest/latest/configure-templates/#how-to-extend-a-restrestperfstoragegridems-collectors-existing-object-template
conf/ems/custom.yaml
objects:
Ems: custom_ems.yaml
custom_ems.yaml location under conf/ems/9.6.0/
Location of custom_ems.yaml should be conf/ems . custom_ems.yaml file should contain everything from ems.yaml and new ems events which you want add.
Thank you , moved file and restated and added custom even that we want to have
@clever pagoda EMS still not collecting any event , i m trying to troubleshoot EMS collectors
@sage vortex Could you share Harvest logs @ https://upload.nabox.org/haso-kafu-xypy
@clever pagoda Thank you logs uploaded
Thanks. Logs show no ems events collected. Could you share your ems configuration which you have modified and which ems you have added to it?
@clever pagoda Sure
-
name: secd.ldap.trust.noServers
exports:- parameters.vserverName => vserverName
- parameters.trustedDomain => trustedDomain
- parameters.ldapOperation => ldapOperation
-
name: exports.hostname.notFound
exports:- parameters.hostname => hostname
- parameters.addrfamily => addrfamily
- parameters.ruleindex => ruleindex
- parameters.policyid => policyid
- parameters.vserver => vserver
-
name: exports.hostname.transient
exports:- parameters.hostname => hostname
- parameters.addrfamily => addrfamily
- parameters.retcode => retcode
- parameters.ruleindex => ruleindex
- parameters.policyid => policyid
- parameters.vserver => vserver
Could you share complete file. Indentation is bit off in above message.
@clever pagoda Uploaed https://upload.nabox.org/haso-kafu-xypy
I am getting the records as below
From logs you have shared earlier I see below error
26604:time=2025-12-15T07:48:33.896-05:00 level=WARN source=poller.go:866 msg="init collector-object" Poller=ntap08 error="no best-fit template for custom_ems.yaml models [] on confPath [conf] no template matches" collector=Ems object=Ems
It means your custom_ems.yaml is not found
Could you double check path of custom_ems.yaml in your file system?
conf]# tree ems/
ems/
├── 9.6.0
│ └── ems.yaml
├── custom_ems.yaml
├── custom.yaml
└── default.yaml
1 directory, 4 files
That's the issue. custom_ems.yaml should be inside conf/ems/9.6.0
tree ems
ems
├── 9.6.0
│ ├── custom_ems.yaml
│ └── ems.yaml
├── custom.yaml
└── default.yaml
should be good now
Yes, Let's restart and then once ems is fired, We should see an event collected in harvest
You can test also via below command in ontap which will fire an ems event
set diag
event generate -message-name secd.ldap.trust.noServers -values 103 136 672 163 845 159 270 529 593 909 909 9090
@clever pagoda Thank you now i event now