Page 3 of 3

Re: orphaned check and force an imediate check doesn't work

Posted: Fri Jun 11, 2021 9:55 am
by ssax
Not that I would recommend that but you would need to write the plugin to monitor for orphaned files and do the logic you're trying to check for but the restarting of the service could be done with an event handler, see page 3 of this doc for an example event handler script, instead of the check_nrpe command in the script, just have it restart the gearmand service:

https://assets.nagios.com/downloads/nag ... h-NRPE.pdf

I found this post that is doing it with check_logfiles plugin but I don't think it has all of the logic you're trying to do:

Code: Select all

check_logfiles --tag=orphaned --logfile=/usr/local/nagios/var/nagios.log --warningpattern="looks like it was orphaned"
Taken from here:

https://serverfault.com/q/499783

If you'd like us to investigate the system further to see what we can find, pllease create a ticket for this and include a link back to this forum thread so we can get a remote session setup:

https://support.nagios.com/tickets/

Thank you!

Re: orphaned check and force an imediate check doesn't work

Posted: Tue Jun 15, 2021 1:01 am
by jweijters
Hi,

I opened a support Ticket.

kind regards,

Joris Weijters

Re: orphaned check and force an imediate check doesn't work

Posted: Tue Jun 15, 2021 7:48 am
by scottwilkerson
jweijters wrote:Hi,

I opened a support Ticket.

kind regards,

Joris Weijters
Moving to ticket

Locking thread