Page 1 of 3

Server Reboot

Posted: Fri Apr 26, 2019 3:45 pm
by kakomaisa
hi
I have virtual machines and I need to get notified when those servers are rebooted .
usually the reboot took around 30 seconds and the minimum I can go with the configuration is 1 minute .
how can I accomplish this

Re: Server Reboot

Posted: Mon Apr 29, 2019 12:20 pm
by npolovenko
Hello, @kakomaisa. That's right, Nagios configuration won't allow checks to run faster than at 1 min intervals. But if you set up a ping check with 1-minute interval and max check attempts to 1, that means it'll take you 1 minute to receive a notification email after the server reboots. That's still a pretty good response time.
What is your goal with this check? To catch if something goes wrong during a reboot and if it takes longer then 30 seconds receive a notification? Or you just need to know the exact time when it reboots for logging purposes?

Re: Server Reboot

Posted: Tue Apr 30, 2019 9:15 am
by kakomaisa
Hi
Thank you for your reply .
Yes we need to receive notification when ever the server reboot .
now what I did is shutting down the server for 7 minutes and turn it again and I di not receive any notifications .
when I go to email setting and send a test email I received it , so I di not know what is wrong here .
we never receive any notifications no matter what .

Re: Server Reboot

Posted: Tue Apr 30, 2019 2:22 pm
by npolovenko
@kakomaisa, Have you ever recieved notifications from this XI server in the past? Not test notifications but actual ones, for any host or service? If yes, then what is the name of the service that can send notifications, and what is the name of the new service you created that can not?
Please go over this tutorial to make sure you enabled all the right settings first:
https://assets.nagios.com/downloads/nag ... ios-XI.pdf

If you're still struggling with notifications after this tutorial, please send in your Nagios XI System Profile so I can review it

To send us your system profile. Login to the Nagios XI GUI using a web browser.
Click the "Admin" > "System Profile" Menu
Click the "Download Profile" button
Save the profile.zip file and send it to me in a private message.

Re: Server Reboot

Posted: Tue Apr 30, 2019 4:09 pm
by kakomaisa
Hi
I have never received any notification form Nagios.

I sent my profile through private message.

Re: Server Reboot

Posted: Tue Apr 30, 2019 4:29 pm
by npolovenko
@kakomaisa, Are you using SMTP or Sendmail for the mail settings?
Please go to the Admin menu, then click on Email Settings in the left column and send me a screenshot of the page.

On the same page, click on "Enable logging of mail sent with the internal mail component". Wait for a while until the new service triggers a notification and then upload the /usr/local/nagiosxi/tmp/phpmailer.log in this thread.

I'm assuming the contact name that is associated with your email address is nagiosadmin, right? And what is the name of the new service you just created?

Re: Server Reboot

Posted: Wed May 01, 2019 7:42 am
by kakomaisa
Hi

I sent the screenshot on the private .
the contact name that is associated with email address is nagiosadmin.
also when I go to the main page I can see one device is down and when I turn it on the device is no longer down , the only issue is the email notification .

Re: Server Reboot

Posted: Wed May 01, 2019 7:54 am
by kakomaisa
hi
for /usr/local/nagiosxi/tmp/phpmailer.log
I can not see this anywhere and also tried through the command line and the folder usr is not existing .

Re: Server Reboot

Posted: Wed May 01, 2019 3:40 pm
by npolovenko
@kakomaisa, You will not see the phpmailer.log file until you turn on the debugging option.
On the Email Settings page, check the box that says "Enable logging of mail sent with the internal mail component". Click on Update Settings.
Then wait until the new service triggers and attempts to send a notification and upload the /usr/local/nagiosxi/tmp/phpmailer.log in this thread.

Re: Server Reboot

Posted: Thu May 02, 2019 8:58 am
by kakomaisa
Hi
I already turn on the debug option and still can not see that directory .