Installating xi Linux Agent fail

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
ynguyen
Posts: 31
Joined: Mon Jun 04, 2012 9:59 am

Re: Installating xi Linux Agent fail

Post 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
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Installating xi Linux Agent fail

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
ynguyen
Posts: 31
Joined: Mon Jun 04, 2012 9:59 am

Re: Installating xi Linux Agent fail

Post 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.
ynguyen
Posts: 31
Joined: Mon Jun 04, 2012 9:59 am

Re: Installating xi Linux Agent fail

Post 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: yng@gaco.com

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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Installating xi Linux Agent fail

Post 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: yng@gaco.com

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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
ynguyen
Posts: 31
Joined: Mon Jun 04, 2012 9:59 am

Re: Installating xi Linux Agent fail

Post 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
ynguyen
Posts: 31
Joined: Mon Jun 04, 2012 9:59 am

Re: Installating xi Linux Agent fail

Post 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