Using piggyback for local check scripts

Hi Folks, we would like to use some localchecks based scripts on SNMP based hosts, we can’t simply develop script and put it under /usr/lib/… because there is no such thing for SNMP host, we are aware of legacy nagios format scripts but it is legacy we do not wanna use them but wanna stick to local check type scripts, so what is the proper way of using localcheck scripts with SNMP hosts? piggyback is good solution for it or not recommended?

Hi @a.ahmadzadeh

The “type” of a check is irrelevant. What’s important is that it does what it’s supposed
to, meaning: There isn’t really a “right” or “wrong” approach to monitor stuff. :slight_smile:

In that respect you could also use Nagios scripts, it’s not uncommon to do so: We’re
doing it, too, either as MRPE checks or as active checks from the Checkmk server
(there’s a rule for that, too).

In any case, using the piggyback mechanism is easy: You just need to make
sure that your local check, has a specific output, so that its result(s) are assigned to the
correct host. See here for more info: The piggyback transport.

HTH,
Thomas