Hi
I have Nagios core 4.1.1 and mrtg installed, and everything works fine...
Is it somehow possible to get the service_description by automatic from ex. mrtg output.
What I would like to do is, when I change the description text on a port in the switch configuration, I can see the change in the mrtg description (mrtg: "descr"), what I would like to is variable to set into the service_decription when doing the define service{...
Automatic service_description from -> mrtg description -> sw
-
ThomasJohansen
- Posts: 13
- Joined: Wed Dec 30, 2015 6:47 am
Re: Automatic service_description from -> mrtg description -
You could probably do this, but it would take a custom bash script that does a replace.
Former Nagios Employee
-
ThomasJohansen
- Posts: 13
- Joined: Wed Dec 30, 2015 6:47 am
Re: Automatic service_description from -> mrtg description -
I was hoping there was a better way... Since it's usefull in many ways.
Thx for the answer 
Re: Automatic service_description from -> mrtg description -
Let us know if you have any more questions.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Automatic service_description from -> mrtg description -
when writing your script you should consider pynag http://pynag.org , very handy for doing this sort of config file manipulation on the fly
Looking forward to seeing you all at #NagiosCon2019?
-Dedicated Lover of Nconf,PNP4Nagios and Nagvis
-Dedicated Lover of Nconf,PNP4Nagios and Nagvis
Re: Automatic service_description from -> mrtg description -
Thanks @nozlaf!
@ThomasJohansen - let us know if you have any further questions.
@ThomasJohansen - let us know if you have any further questions.
Former Nagios Employee