Page 4 of 4

Re: Installating XI Linux Agent fail

Posted: Mon Jun 25, 2012 1:39 pm
by ynguyen
I did made changes to the following suggested configuration and it not send out an alert.

Admin-> Manage Users -> Masquerade As -> Configure -> My Account Settings -> Notification Preferences
and Notification Methods

It still did not send out an alert email message when a monitor server is down.


It seems the individual process is working fine (for example: email process is working fine by itself when manually ran through a test.
A server is up on green and down on red via the State History

However, it seems the trigger between the two process or modules is not working or missing some kind of configuration.

Y

Re: Installating XI Linux Agent fail

Posted: Mon Jun 25, 2012 1:51 pm
by lmiltchev
First, make sure you don't have any config errors. Run the Write Config Tool and if you have "0" (zero) errors, Apply Configuration.

Second, follow the steps outlined on our wiki page to troubleshoot notifications:

http://support.nagios.com/wiki/index.ph ... n_Problems

Re: Installating XI Linux Agent fail

Posted: Mon Jun 25, 2012 4:55 pm
by ynguyen
<First, make sure you don't have any config errors. Run the Write Config Tool and if you have "0" (zero) errors, Apply Configuration.
Done, no errors


<Second, follow the steps outlined on our wiki page to troubleshoot notifications:

http://support.nagios.com/wiki/index.ph ... n_Problems

Done, still having problem.

Re: Installating XI Linux Agent fail

Posted: Mon Jun 25, 2012 5:20 pm
by ynguyen
I have went through lot of trying an errors and nothing has work so far.

I notice one thing.

While trying email testing under the MAIL SETTINGS. I was able to get the sendmail to send an email without any problem under the MAIL METHOD:
However, when I tried mail testing MAIL METHOD: SMTP I got an errors. Not sure if this will cause the problem when Nagios is trying
to trigger the alert. I kept MAIL SETTINGS, mail methods: sendmail .

In the old day with Big Brother, Oscar and other, one just need to edit, modify the text configuration, restart the service and you have it.


Let's just by pass the GUI, Can you provide a simple configuration to import.

Here is what I need to test:

ServerIP: 172.16.0.21
Service to monitor: ping
email to notify when down and up: [email protected]

What file to modify via the command line and to restart.

THat is all. Very simple monitoring and alerting requirement.

Is this something possible with this package?

Thank you.
Y

Re: Installating XI Linux Agent fail

Posted: Tue Jun 26, 2012 7:54 am
by scottwilkerson
ynguyen wrote:Let's just by pass the GUI, Can you provide a simple configuration to import.

Here is what I need to test:

ServerIP: 172.16.0.21
Service to monitor: ping
email to notify when down and up: [email protected]

What file to modify via the command line and to restart.

THat is all. Very simple monitoring and alerting requirement.

Is this something possible with this package?
To create your own text configs, you can look at the specifications here
http://nagios.sourceforge.net/docs/3_0/ ... tions.html

If you want to import a configuration, you can place the file in /usr/local/nagios/etc and then Apply configuration or run the following

Code: Select all

cd /usr/local/nagiosxi/scripts
./reconfigure_nagios.sh

Re: Installating XI Linux Agent fail

Posted: Tue Jun 26, 2012 1:48 pm
by ynguyen
I got the basic ping and alert to work.

Different problem.
However, there is 5 hours different on the alert. The time stamp on the alert is different than the server actual time.

Where to adjust the time so it will use the system.

I have the correct time on the server, verified by running the command line date

Thanks,
Y

Re: Installating XI Linux Agent fail

Posted: Wed Jun 27, 2012 7:58 am
by ynguyen
After making the change to the correct time zone for the system and reboot the server.
Nagios now showed the correct time on their report.

Thank you all for your help.

Y