Page 1 of 2

Nagios log server implementation

Posted: Tue Jun 07, 2016 5:37 am
by Monica7
Hi,

I have to perform Nagios log server implementation. Let me share my objective.

I am having two servers Say server1 and server2. In Server1 I have installed nagios log server. Things which need to be done is
1. I just want to track the Linux logs of server1 in Nagios log server user interface
2. And logs of Server2 has been tracked from Server1 nagios log server user interface.

So in order to achieve first one,
I have installed nagios log server with the manual installation instructions document available in nagios forum. I am able to login to nagios log server user interface successfully. And I have configured home page ->Linux source ->script. But still I couldn't able to see anything in my dashboard.

Logs of server1 is not displaying in Dashboard.I am getting "No Dashboard The dashboard you had selected no longer exists. Try loading a different dashboard. 1 alert(s)
"

Whether anything/any configuration has to be done in additional to get the server1 logs in dashboard. Do I need to install any plugins to achieve this. If anything is missing , please let me know

For second one,

Do I need to install nagios log server in Server2 also.?If nagios log server has to be installed in server 2 also means, after installation I will get new nagios log server url for server 2 also.
how to make it connect to server1 to get the logs of server2 from server1.

I am new to this Nagios. Your help is much appreciated.

Re: Nagios log server implementation

Posted: Tue Jun 07, 2016 9:32 am
by hsmith
Monica7 wrote:Logs of server1 is not displaying in Dashboard.I am getting "No Dashboard The dashboard you had selected no longer exists. Try loading a different dashboard. 1 alert(s)
"
Can you post a screenshot?
Monica7 wrote:Do I need to install nagios log server in Server2 also.?
No.
Monica7 wrote:how to make it connect to server1 to get the logs of server2 from server1.
Rsyslog should just send the logs to Server1 after you run the configuration script on it.

Re: Nagios log server implementation

Posted: Wed Jun 08, 2016 12:47 am
by Monica7
Hi,
Please find the attached screenshot for logs not coming issue.

Monica7 wrote:
how to make it connect to server1 to get the logs of server2 from server1.


Rsyslog should just send the logs to Server1 after you run the configuration script on it.

Regarding the above line, Configuration script means which script you mean here. Configuration script in which server? Server1 or server 2?

Re: Nagios log server implementation

Posted: Wed Jun 08, 2016 12:26 pm
by hsmith
In your Nagios Log Server, as shown in your first screenshot, you run that script on the server you want to receive the logs from.

Can you show me a screenshot of what shows up when you hit the 'Change' button to see a list of your dashboards?

Re: Nagios log server implementation

Posted: Thu Jun 09, 2016 12:53 am
by Monica7
Hi,

I have attached the screenshot when hit the change button in dashboard page.
In your Nagios Log Server, as shown in your first screenshot, you run that script on the server you want to receive the logs from.

You mean to say that, if I want to receive the logs of server2 in server1 nagios log server user interface. I have to run the below content in server2. And we don't want to install nagios log server in server2. Am I right?

curl -s -O http://SERVER1_IP/nagioslogserver/scripts/setup-linux.sh
sudo bash setup-linux.sh -s SERVER1_IP-p 5544

the ip which is highlighted above is the IP address of server1. do I need to change it to IP address of server2, since I am running in server2? Please confirm

Re: Nagios log server implementation

Posted: Thu Jun 09, 2016 9:35 am
by hsmith
Monica7 wrote:Am I right?
Yes.
Monica7 wrote: do I need to change it to IP address of server2, since I am running in server2?
No.

Re: Nagios log server implementation

Posted: Mon Jun 13, 2016 1:16 am
by Monica7
After running this command in Server2.

curl -s -O http://SERVER1_IP/nagioslogserver/scripts/setup-linux.sh
sudo bash setup-linux.sh -s SERVER1_IP-p 5544


Will I get my Server2 host name in Server 1 nagios log server user interface. How can I check whether server2 has been monitored by server1?

Re: Nagios log server implementation

Posted: Mon Jun 13, 2016 1:23 am
by Monica7
Hi,

Do we have any update on the Dashboard issue which is mentioned in this ticket.

Re: Nagios log server implementation

Posted: Mon Jun 13, 2016 10:12 am
by hsmith
I imagine it has something to do with ES exiting as mentioned in your other forum post. The dashboards are saved inside of ES.

Re: Nagios log server implementation

Posted: Mon Jun 20, 2016 6:39 am
by Monica7
Hi,

I have run the below commands in server2 in order to track the logs of server2 in server1(nagioslogserver is installed in this server)

curl -s -O http://SERVER1_IP/nagioslogserver/scripts/setup-linux.sh
sudo bash setup-linux.sh -s SERVER1_IP-p 5544

But I am not getting any logs of server2 in dashboard page of Nagios user interface. Nothing is displayed in Dashboard page:(.And moreover server2 and server1 hostnames are not available in /usr/local/nagioslogserver/var/cluster_hosts file.

Whether any configuration needs to be done to get the IPs of the server which we want to monitor in cluster_hosts file. Please guide me on this and help me on resolving dashboard issue.

Elastic search and logstash are running in Linux. Those core services are not seems to be up in nagios log server user interface.