Search found 169 matches

by orani
Mon Sep 09, 2019 5:09 pm
Forum: Open Source Nagios Projects
Topic: Duration
Replies: 16
Views: 6936

Re: Duration

scottwilkerson wrote:
orani wrote:The thing is that now seems to be ok.
Now that is a mystery... Glad it is working now, but I honestly have no idea why.
also i dont have any idea why it is working but i keep that it is.

Thanks for your time. lock the thread if you want
by orani
Mon Sep 09, 2019 2:26 pm
Forum: Open Source Nagios Projects
Topic: Email notification problem
Replies: 4
Views: 2025

Re: Email notification problem

Solved after rebooting the server. After reboot i received all mails (new and stacked)
by orani
Mon Sep 09, 2019 1:42 pm
Forum: Open Source Nagios Projects
Topic: Duration
Replies: 16
Views: 6936

Re: Duration

I can not understand what it is going on. I rebooted the server and immediately after reboot i run the script you told me. The file was there. I checked the duration field at the GUI and it was saying the right time, not some minutes/seconds (reboot time). The weird thing is that i didnt change anyt...
by orani
Mon Sep 09, 2019 1:28 pm
Forum: Open Source Nagios Projects
Topic: Duration
Replies: 16
Views: 6936

Re: Duration

There is no script deleting that file on cron.

Let me check rebooting the server and running the script you suggested
by orani
Mon Sep 09, 2019 12:47 pm
Forum: Open Source Nagios Projects
Topic: Duration
Replies: 16
Views: 6936

Re: Duration

No, on service restart i do not lose the data. Only if i reboot the server itself.

Is there any way to test if on reboot i lose the /usr/local/nagios/var/retention.dat file?
Or a way to change it so not to lose that file??
by orani
Mon Sep 09, 2019 11:56 am
Forum: Open Source Nagios Projects
Topic: Email notification problem
Replies: 4
Views: 2025

Re: Email notification problem

I can see notifications being generated at the notifications tab. Also my notification commands seems to be ok. notify-host-by-email /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $...
by orani
Mon Sep 09, 2019 11:50 am
Forum: Open Source Nagios Projects
Topic: Duration
Replies: 16
Views: 6936

Re: Duration

Code: Select all

[root@nagios ~]# ls -al /usr/local/nagios/var/retention.dat
-rw------- 1 nagios nagios 2857104 Sep  9 19:06 /usr/local/nagios/var/retention.dat
by orani
Mon Sep 09, 2019 10:14 am
Forum: Open Source Nagios Projects
Topic: Duration
Replies: 16
Views: 6936

Re: Duration

[root@nagios ~]# grep reta /usr/local/nagios/etc/nagios.cfg retain_state_information=1 # This file is used only if the retain_state_information # retention file. If you want to use retained program status use_retained_program_state=1 # This setting determines whether or not Nagios will retain # If y...
by orani
Mon Sep 09, 2019 9:12 am
Forum: Open Source Nagios Projects
Topic: Duration
Replies: 16
Views: 6936

Re: Duration

This is not happening at a single check but at all checks. Those are some of my definitions define host{ host_name Infra1 address 10.0.6.11 use host-pnp contacts nagiosadmin,systemadmin check_command check-host-alive max_check_attempts 5 check_interval 1 retry_interval 1 parents SMCSW check_period 2...
by orani
Mon Sep 09, 2019 8:26 am
Forum: Open Source Nagios Projects
Topic: Duration
Replies: 16
Views: 6936

Re: Duration

Code: Select all

retain_state_information =1
state_retention_file=/usr/local/nagios/var/retention.dat
retention_update_interval=60
Those are my settings. I think that with those settings nagios should keep duration after restart but it does not.