Hi,
I have added some custom probes in the "/usr/lib/nagios/plugins” but I can’t get them to show up in the WebUI. I have done some googling to find if there is a config option that I need to add but so far I have failed. Can someone please point me in the right direction for this ?
Thanks !
Hi Pieter
In includes/definitions/entities you can do your own probe configuration, as long as the filename ends in ".inc.php", for example "custom-probes.inc.php". File contents like this:
<?php $probe = 'check_something'; // reference to the custom plugin, has to be same name as the plugin. Probe must be located in probes/nagios $config['probes'][$probe]['enable'] = 1; // enables the custom plugin in the Observium portal. $config['probes'][$probe]['output'][] = '/^(?<status>\S+) /: (?<message>\S+).*)/'; // Allows the plugin to return a message output to Observium (written in regex) ?>
That last line is probably specific for the probe, and you have to play around with it.
Also, don't edit any of the files already present because they could get overwritten by an svn pull.
Lars
-----Original Message----- From: Pieter De Wit via observium observium@lists.observium.org Sent: 22. marts 2023 23:46 To: Observium observium@observium.org Cc: Pieter De Wit pieter@insync.za.net Subject: [Observium] Adding custom probe
Hi,
I have added some custom probes in the "/usr/lib/nagios/plugins” but I can’t get them to show up in the WebUI. I have done some googling to find if there is a config option that I need to add but so far I have failed. Can someone please point me in the right direction for this ?
Thanks ! _______________________________________________ observium mailing list -- observium@lists.observium.org To unsubscribe send an email to observium-leave@lists.observium.org ________________________________ Disclaimer: This e-mail, including any attachments, is for the intended recipient only. If you have received this e-mail by mistake please notify the sender immediately by return e-mail and delete this e-mail and any attachments, without opening the attachments, from your system. Access, disclosure, copying, distribution or reliance on any part of this e-mail by anyone else is prohibited. This e-mail is confidential and may be legally privileged. Chr. Hansen does not represent and/or warrant that the information sent and/or received by or with this e-mail is correct and does not accept any liability for damages related thereto. https://www.chr-hansen.com/en/legal-notice
participants (2)
-
Lars Joergensen
-
Pieter De Wit