mirror of
https://github.com/opinkerfi/nagios-plugins.git
synced 2024-11-22 02:13:44 +01:00
bugfix, check_nagios_needs_reload check for reload instead of reparse
This commit is contained in:
parent
bd4aa7f57d
commit
65004322a9
@ -7,7 +7,7 @@ try:
|
|||||||
|
|
||||||
c = config(cfg_file='/etc/nagios/nagios.cfg')
|
c = config(cfg_file='/etc/nagios/nagios.cfg')
|
||||||
c.parse()
|
c.parse()
|
||||||
result = c.needs_reparse()
|
result = c.needs_reload()
|
||||||
|
|
||||||
if result == True:
|
if result == True:
|
||||||
print "Warning - Nagios configuration has changed since last restart"
|
print "Warning - Nagios configuration has changed since last restart"
|
||||||
|
Loading…
Reference in New Issue
Block a user