[Check_mk (english)] Local Plugin

Hi All

I have written a local check for our emc, however if I run this as a local check it will be populated in the wrong host, is there away to run the local check but for another host?

For Example:

Check runs on london-01, when we do a scan it would show under london-01, however I need it to show under storage-01.

Do I need to create this as a proper plugin so I can tag so it is populated under the correct host?

Thanks

Chris.

Hi Chris,

You could try it with piggyback feature. For that your local check output must report this:

<<<>>>
<<>>
(normal output here)
<<<<>>>>

Name your local check file the way so it’s executed after all “real” local checks, like “zzz-mylocalcheck”.

I don’t know if that works with local checks, too, but for other checks all between “<<<>>>” and “<<<<>>>>” is treated as data of the foreign host.

Don’t forget to inventorize storage-01 as well as london-01 and apply changes.

Regards,
Marcel

···

Chris Owen chris.owen@8x8.com schrieb am Do., 31. März 2016 15:27:

Hi All

I have written a local check for our emc, however if I run this as a local check it will be populated in the wrong host, is there away to run the local check but for another host?

For Example:

Check runs on london-01, when we do a scan it would show under london-01, however I need it to show under storage-01.

Do I need to create this as a proper plugin so I can tag so it is populated under the correct host?

Thanks

Chris.


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en

Hi Marcel

This is working as expected.

Thank you so much.

Chris.

···

On Thu, Mar 31, 2016 at 2:42 PM, Marcel Schulte schulte.marcel@gmail.com wrote:

Hi Chris,

You could try it with piggyback feature. For that your local check output must report this:

<<<>>>
<<>>
(normal output here)
<<<<>>>>

Name your local check file the way so it’s executed after all “real” local checks, like “zzz-mylocalcheck”.

I don’t know if that works with local checks, too, but for other checks all between “<<<>>>” and “<<<<>>>>” is treated as data of the foreign host.

Don’t forget to inventorize storage-01 as well as london-01 and apply changes.

Regards,
Marcel

Chris Owen chris.owen@8x8.com schrieb am Do., 31. März 2016 15:27:

Hi All

I have written a local check for our emc, however if I run this as a local check it will be populated in the wrong host, is there away to run the local check but for another host?

For Example:

Check runs on london-01, when we do a scan it would show under london-01, however I need it to show under storage-01.

Do I need to create this as a proper plugin so I can tag so it is populated under the correct host?

Thanks

Chris.


checkmk-en mailing list

checkmk-en@lists.mathias-kettner.de

http://lists.mathias-kettner.de/mailman/listinfo/checkmk-en