Page 1 of 2
Alerts via Linux
Posted: Tue Jan 14, 2014 1:21 pm
by Kimba7070
I was wondering where can I find Nagios XI alerts via Linux ???
Re: Alerts via Linux
Posted: Tue Jan 14, 2014 1:31 pm
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!
Re: Alerts via Linux
Posted: Wed Jan 15, 2014 2:01 pm
by Kimba7070
which process generate alerts
where are the alerts stored in Linux
How can I verify that alerts are correctly set up
Re: Alerts via Linux
Posted: Wed Jan 15, 2014 2:06 pm
by Kimba7070
I have located this directory -/usr/local/nagios/var/
but I do not have a nagios.log within it
Re: Alerts via Linux
Posted: Wed Jan 15, 2014 2:08 pm
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/
Re: Alerts via Linux
Posted: Wed Jan 15, 2014 2:27 pm
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]#
Re: Alerts via Linux
Posted: Wed Jan 15, 2014 2:33 pm
by slansing
Can you access the web interface? How did you install nagios? What version are you running, and on what distro?
Re: Alerts via Linux
Posted: Wed Jan 15, 2014 2:47 pm
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
Re: Alerts via Linux
Posted: Wed Jan 15, 2014 4:01 pm
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?
Re: Alerts via Linux
Posted: Thu Jan 16, 2014 8:49 am
by Kimba7070
Please identify process which send alert from client to server
Do we store any alerts on the client site