Custom asynchronous plugin question

CMK version:
2.2.0p25.cce

OS version:
Ubuntu 22.04.4 LTS

Error message:
Custom check mk agent plugin is not discovered

I have custom plugins on my remote host:

ls -lR /usr/lib/check_mk_agent/plugins/
/usr/lib/check_mk_agent/plugins/:
total 38
drwxr-xr-x 2 root root     4 Apr 26 15:13 3600
-rwxr-xr-x 1 root root    91 Apr 24 08:52 icecast_archive_status.sh
-rwxr-xr-x 1 root root    86 Apr 24 10:15 icecast_listeners.sh
-rwxr-xr-x 1 root root    89 Apr 24 08:52 icecast_loops_status.sh
-rwxr-xr-x 1 root root    89 Apr 24 08:51 icecast_radio_status.sh
-rwxr-xr-x 1 root root 56735 Apr 19 11:56 mk_postgres.py
-rwxr-xr-x 1 root root  6302 Apr 26 16:04 nginx_status.py

/usr/lib/check_mk_agent/plugins/3600:
total 18
-rwxr-xr-x 1 root root 108 Apr 26 14:46 borgmatic_archive_stats.sh
-rwxr-xr-x 1 root root 108 Apr 26 14:46 borgmatic_backups_stats.sh

and i have two issues:

  1. plugins under plugins/3600 folder are not discovered
  2. nginx_status.py plugin workd well, but when i added plugins in 3600 folder, it is also missing in Service discovery

plugins working well, here are outputs:

root@vps:/usr/lib/check_mk_agent/plugins# ./nginx_status.py 
<<<nginx_status>>>
radiopunctum.cz 443 Active connections: 5 
radiopunctum.cz 443 server accepts handled requests
radiopunctum.cz 443  14792 14792 57358 
radiopunctum.cz 443 Reading: 0 Writing: 2 Waiting: 3 

root@vps:/usr/lib/check_mk_agent/plugins# ./3600/borgmatic_archive_stats.sh 
0 "Borgmatic[archive]" num_of_files=1839|duration=2.0 Borgmatic backup status of archive

root@vps:/usr/lib/check_mk_agent/plugins# ./3600/borgmatic_backups_stats.sh 
0 "Borgmatic[backups]" num_of_files=7433|duration=56.0 Borgmatic backup status of backups

have somebody any advice, why 3600 plugins are not discovered and why nginx_status.py plugin disappeared?

I cannot edit my post, but I forgot to write, that all other custom agents are working well

the plugins folders is not meant for normal local checks, it expects if I recall correctly the output as you have in nginx status.

You should have regular checks in “local”

ok, moved to local, and it started working, thanks :+1:

my icecast* checks return same format and is working well in plugin folder, so probably problem was that 3600 subfolder

root@vps:/usr/lib/check_mk_agent/plugins# ./icecast_archive_status.sh
0 "Icecast[archive]" listeners=4|listener_peak=25 Streaming Dance In Slow Motion 04/24 by Andrea Dare

the plugins folder dont support cached local check iirc.
you can convert them to a real plugin perhaps.

thanks, but probably I am ok with that in local folder because documentation about custom plugins is somewhat too long Writing agent-based check plug-ins

is there some benefits to have plugin instead local check?