nagios module: add common locactions of icinga.cfg

Icinga should be compatible to Nagios (in our case the nagios module works well
with our Icinga installation)
This commit is contained in:
Bernhard Weitzhofer 2013-03-17 11:47:07 +01:00
parent 3808981d21
commit 14bf549b13

6
nagios
View file

@ -128,7 +128,11 @@ def which_cmdfile():
'/usr/local/nagios/etc/nagios.cfg', '/usr/local/nagios/etc/nagios.cfg',
'/usr/local/nagios/nagios.cfg', '/usr/local/nagios/nagios.cfg',
'/opt/nagios/etc/nagios.cfg', '/opt/nagios/etc/nagios.cfg',
'/opt/nagios/nagios.cfg' '/opt/nagios/nagios.cfg',
# icinga on debian/ubuntu
'/etc/icinga/icinga.cfg',
# icinga installed from source (default location)
'/usr/local/icinga/etc/icinga.cfg',
] ]
for path in locations: for path in locations: