Alerts via Linux

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Kimba7070
Posts: 34
Joined: Sat Oct 12, 2013 1:20 pm

Alerts via Linux

Post by Kimba7070 »

I was wondering where can I find Nagios XI alerts via Linux ???
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Alerts via Linux

Post by slansing »

Sorry, could you expand on that a bit? Are you asking where you can find mail logs of the notifications that were sent out? You can also see alerts in the archived nagios logs.

Centos/Rhel

Code: Select all


ll /var/log/maillog

ll /usr/local/nagios/var/nagios.log

Edit: Just spoke on the phone with you, can you run the above commands and show the output? Also, this is in the general XI support forum, do you have access to the Customer support section? If not, please have aowens email [email protected] with your email address and forum username to be added and we can take care of that!
Kimba7070
Posts: 34
Joined: Sat Oct 12, 2013 1:20 pm

Re: Alerts via Linux

Post by Kimba7070 »

which process generate alerts
where are the alerts stored in Linux
How can I verify that alerts are correctly set up
Kimba7070
Posts: 34
Joined: Sat Oct 12, 2013 1:20 pm

Re: Alerts via Linux

Post by Kimba7070 »

I have located this directory -/usr/local/nagios/var/

but I do not have a nagios.log within it
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Alerts via Linux

Post by tmcdonald »

Is nagios running? Please run the following commands and post the output here:

Code: Select all

service nagios status
ps -ef | grep nagios
ls /usr/local/nagios/var/
Former Nagios employee
Kimba7070
Posts: 34
Joined: Sat Oct 12, 2013 1:20 pm

Re: Alerts via Linux

Post by Kimba7070 »

I ran your commands and this is the output that I received -I am receiving email alerts for this box but I would like to see them on the Linux box

[root@stag-bhix-stacc log]# service nagios status
nagios: unrecognized service
[root@stag-bhix-stacc log]#


[root@stag-bhix-stacc log]# ps -ef | grep nagios
root 15838 15311 0 14:12 pts/2 00:00:00 grep nagios
[root@stag-bhix-stacc log]#

[root@stag-bhix-stacc log]# cd /usr/local/nagios/var
[root@stag-bhix-stacc var]# ls -ltr
total 4
drwxr-xr-x 2 nagios nagios 4096 Oct 9 09:39 spool
[root@stag-bhix-stacc var]# cd spool/
[root@stag-bhix-stacc spool]# ls -ltr
total 0
[root@stag-bhix-stacc spool]#
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Alerts via Linux

Post by slansing »

Can you access the web interface? How did you install nagios? What version are you running, and on what distro?
Kimba7070
Posts: 34
Joined: Sat Oct 12, 2013 1:20 pm

Re: Alerts via Linux

Post by Kimba7070 »

yes I can access web interface and I see alerts coming to my email
Followed the instruction from the web site - and downloaded the install plugin from the nagios web site
Nagios XI 2012R2.5
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Alerts via Linux

Post by slansing »

I just noticed you said this:
I ran your commands and this is the output that I received -I am receiving email alerts for this box but I would like to see them on the Linux box
Is this actually the nagiosxi server that you are ssh'd into? The nagios xi server will have a nagios.log file in /usr/local/nagios/var/, this log file is required for quite a few things in nagios. If you are missing this log, something must not be functioning correctly. Can you navigate to the reports page in the Nagios XI web frontend and try to pull down report information? Can you get valid data?
Kimba7070
Posts: 34
Joined: Sat Oct 12, 2013 1:20 pm

Re: Alerts via Linux

Post by Kimba7070 »

Please identify process which send alert from client to server
Do we store any alerts on the client site
Locked