Page 1 of 1

custom notifications by email with nagios in openshift

Posted: Wed Oct 11, 2017 3:15 am
by llachevre
hi,
i am new in this forum.
we monitor RHMAP in openshift 3.5 platform (1 nagios core for rhmap core and 1 nagios core for rhmap mbaas)
everything is ok but i want to custom our email notifications because we have 3 openshift platforms (TST/DEV/PRD) and notification mails are the same.

my problem is that all the configuration files are located in an openshift pod
i can make any change in /etc/nagios/object/commands.cfg for example (in the pod started) but in openshift a pod is not eternal, it is constantly regenerated (by a dc rollout latest, a server restart for example) and the configuration that i made is lost !
my idea, is to set my custom configuration in the deployment config (as can often be done in openshift) but i don't see how !

can you help me about my issue ?

thanks a lot

ludo

Re: custom notifications by email with nagios in openshift

Posted: Wed Oct 11, 2017 9:04 am
by tmcdonald
This doesn't seem like an issue specific to Nagios, but rather a general problem of deployment in a dynamic environment. I would talk to your Openshift admin/team and see if there is any solution they can provide.

Re: custom notifications by email with nagios in openshift

Posted: Wed Oct 11, 2017 10:26 am
by llachevre
hi,

thanks a lot for your answer
it is not an issue i am agree with you but i posted this topic in case of someone already made this !

i am the openshift admin, :).

i can try to open a case to redhat directly but i am not sure tht they can help me.

thanks a lot

ludo

Re: custom notifications by email with nagios in openshift

Posted: Wed Oct 11, 2017 1:27 pm
by tmcdonald
We do try to keep these forums dedicated to Nagios support, and while we don't mind answering related questions occasionally, we do not have any in-house documentation or experience with Openshift. You would be better off discussing this with their support, or looking into something like Ansible for deploying config files.

Re: custom notifications by email with nagios in openshift

Posted: Thu Oct 12, 2017 2:22 am
by llachevre
Hi,

ok no problem !
thanks a lot for your reply.

see you

ludo

Re: custom notifications by email with nagios in openshift

Posted: Thu Oct 12, 2017 12:06 pm
by kyang
Thanks!

If you have more questions, feel free to create another thread!

Thank you for using the Nagios Support Forum!