Dear Expert
By default I want to set for all HOST and SERVICES (whatever exist and whatever will add later on) Notification Interval to 0 (zero). I tried to change via Bulk Modification but Nagios get hung as there is thousands of Services.
If there is no quick solution for existing devices, how to reset to 0 (zero) so future HOST and SERVICES will be set to 0.
Two more quick questions (I think this causing our backup growing very fast).
How to delete old ALERT History?
How to delete old Notification History?
and if any similar log, not so important can be delete except Performance Data (MRTG/Bandwidth Utilization is important).
Regards
default Notification Interval need to reset from 60 to 0
Re: default Notification Interval need to reset from 60 to 0
This should work, you just have to wait. You may need to adjust your php limits. What is the output of:zaji_nms wrote:By default I want to set for all HOST and SERVICES (whatever exist and whatever will add later on) Notification Interval to 0 (zero). I tried to change via Bulk Modification but Nagios get hung as there is thousands of Services.
Code: Select all
grep "memory_limit\|max_execution\|max_input" /etc/php.iniThis can be performed by truncating the tables. WARNING - This action will permanently remove the history from the db!!!zaji_nms wrote:How to delete old ALERT History?
How to delete old Notification History?
Code: Select all
echo "use nagios; truncate nagios_notifications;" | mysql -pnagiosxiFormer Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: default Notification Interval need to reset from 60 to 0
Dear abrist
more /etc/php.ini | grep "memory_limit\|max_execution\|max_input"
; max_input_time
;max_execution_time = 30
max_execution_time = 6200
max_input_time = 120
max_input_vars = 200K
;max_input_nesting_level = 64
memory_limit = 6144M
For other query me initiating another thread.
Regards
more /etc/php.ini | grep "memory_limit\|max_execution\|max_input"
; max_input_time
;max_execution_time = 30
max_execution_time = 6200
max_input_time = 120
max_input_vars = 200K
;max_input_nesting_level = 64
memory_limit = 6144M
For other query me initiating another thread.
Regards
Zajil NMS
Re: default Notification Interval need to reset from 60 to 0
Well, those limits should be enough - how long have you waited? Have you just tried changing a chunk of those objects with the bulk tool instead of all of them at once?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Re: default Notification Interval need to reset from 60 to 0
Dear Abrist/Expert
Please close the case, as Nagios was new to us, was adding with default values, now when adding new HOST taking care of Interval values/Notification (contact).
Regards
Please close the case, as Nagios was new to us, was adding with default values, now when adding new HOST taking care of Interval values/Notification (contact).
Regards
Zajil NMS