Page 1 of 1

default Notification Interval need to reset from 60 to 0

Posted: Wed Jan 21, 2015 2:19 pm
by zaji_nms
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

Re: default Notification Interval need to reset from 60 to 0

Posted: Wed Jan 21, 2015 2:55 pm
by abrist
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.
This should work, you just have to wait. You may need to adjust your php limits. What is the output of:

Code: Select all

grep "memory_limit\|max_execution\|max_input" /etc/php.ini
zaji_nms wrote:How to delete old ALERT History?
How to delete old Notification History?
This can be performed by truncating the tables. WARNING - This action will permanently remove the history from the db!!!

Code: Select all

echo "use nagios; truncate nagios_notifications;" | mysql -pnagiosxi
What exactly do you mean by "ALERT history"?

Re: default Notification Interval need to reset from 60 to 0

Posted: Sat Jan 24, 2015 10:49 am
by zaji_nms
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

Re: default Notification Interval need to reset from 60 to 0

Posted: Mon Jan 26, 2015 11:58 am
by abrist
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?

Re: default Notification Interval need to reset from 60 to 0

Posted: Wed Jan 28, 2015 4:32 pm
by zaji_nms
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