|
|
|
[
Permlink
| « Hide
]
Damian Krzeminski - 2008-03-28 10:12
Makes sense: sipxconfig-mrtg should use whatever capabilities are offered by RPM system. Installing files is better than modifying them. Part of the problem here is that sipx is hijacking MRTG configuration.
One of the user-visible effects of that is that every time MRTG is installed/upgraded it wipes out the previous configuration.
Andrei - Would you mind having a look at this issue and
This patch is on top of 0002-Put-mrtg-configuration-files-in-prefix-etc-sipxpbx.patch patch from
It puts the mrtg configuration files in the rpm, rather than being modified/created by the script. In the rpm I also put the sipxconfig.properties.in file with the monitoringContextImpl.enabled set to true. In this patch, the mrtg-init-script is almost useless, but it's still invoked upon uninstall. About the snmp configuration file: As I have commented on XCF-1891, I'm currently investigating a way to make snmp managed by sipXsupervisor. If I succeed, then I will do the same thing I've done for mrtg configuration with snmp configuration. But until then, hijacking the snmp configuration could be performed either by the sipx-snmp-init script, or in the same way as vsftpd is configured in sipxconfig.spec file. I'm thinking that these two ways are almost identical, but someone with more knowledge in rpm should give his opinion about this. http://sipxecs.sipfoundry.org/ViewVC/sipXecs?view=rev&rev=13366
XCF-2400 mrtg configuration is installed rather then modified by scripts The sipx-mrtg-init script use is now limited to enabling and disabling mrtg context (monitoringContextImpl.enabled property in sipxconfig.properties.in) and reconfiguring location or mrtg binary. (Same verification as |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||