Hey,
TLDR: custom SNMP check plugin works when run via command line, but in WATO no new services are discovered.
I’ve written a custom SNMP check plugin (for Dell PowerVault ME4s, the data they return for the FCMGMT-MIB in the experimental sub-tree).
The inventory works by running cmk -II --debug -v --checks dell_emc_powervault_me4_status $MyHostName
which returns, among other things:
+ EXECUTING DISCOVERY PLUGINS (1)
41 dell_emc_powervault_me4_status
SUCCESS - Found 41 services, no host labels
What also works is running the checks afterwards via cmk --debug -vp --checks dell_emc_powervault_me4_status $MyHostName
which outputs:
Check_MK version 1.6.0p20
…
ME4 controller firmware OK - I/O Manager-A: GTS280R10-10; I/O Manager-B: GTS280R10-10 ()
ME4 overall status OK - state: online; status: ok
…
and so on for all the other 39 services.
However, as soon as I visit the host in WATO & click on the services & run a “full scan”, all of those services vanish, never to be seen again.
I have built custom SNMP checks in the past, and those work just fine, both via the command line an in WATO.
What I have to add is that I’m in a distributed situation. I’m developing the plugin on a site server as it’s the only one with access to the target host. I’ve made sure to copy the new plugin file from the site server to the central server, too. I’ve restarted cmk
with cmk -R
on both the central & the site servers. No luck.
(ARG! While I was writing this one of my two ME4 hosts suddenly showed all new services via WATO. The other one, though? Still no new services found.)
Sooo… which steps am I missing? Is this caching, if so, how do I get around it?
Thanks!