default Notification Interval need to reset from 60 to 0

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

default Notification Interval need to reset from 60 to 0

Post 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
Zajil NMS
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post 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"?
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.
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

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

Post 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
Zajil NMS
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post 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?
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.
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

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

Post 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
Zajil NMS
Locked