Page 1 of 1

Getting nagios logs through socket to other server

Posted: Thu Apr 05, 2018 8:03 am
by ragu6ds
Dear experts,


i installed nagios core and getting logs into file.

but i need to send these logs to other system through socket,

Please advice..

i have tested by modifying the source code of xpddefault.c

by opening tcp socket and pointed that output buffer data and getting now.

this method gives me some defaculties.

is there any other option ..without modifying the code ?is there any plugin to send logs to socket..

please help me in this regard

Thanks
Ragu

Re: Getting nagios logs through socket to other server

Posted: Thu Apr 05, 2018 1:00 pm
by scottwilkerson
This is well outside the scope of our usual forum topics, but I will provide a couple things to consider, have you tried using something exterior such as socat or netcat?

Re: Getting nagios logs through socket to other server

Posted: Thu Apr 05, 2018 1:02 pm
by scottwilkerson
Or even better yet, it may be helpful for us to understand what you all want written, because it may be better handled in a global event handler

Re: Getting nagios logs through socket to other server

Posted: Fri Apr 06, 2018 1:29 am
by ragu6ds
dear scottwilkerson


Currently monitoring devices , while writing into the file space got filled (getting huge volume of records) and facing some memory issue.

to overcome this thought of sending these logs through socket direct streaming to other server through TCP or UDP which will overcome this rule.

Please let me know your thoughts

Re: Getting nagios logs through socket to other server

Posted: Fri Apr 06, 2018 8:46 am
by scottwilkerson
I think it makes more sense to increase the drive space, and maybe rsync some as backups. you are going to drastically slow down your monitoring system waiting for every log message to send across the network.

Re: Getting nagios logs through socket to other server

Posted: Sun Apr 29, 2018 11:38 pm
by ragu6ds
Dear scottwilkerson ,

please help me in this regard,

in nagios core clustering is possible , please share the document.

Thanks
Ragu

Re: Getting nagios logs through socket to other server

Posted: Mon Apr 30, 2018 2:54 pm
by scottwilkerson
ragu6ds wrote:Dear scottwilkerson ,

please help me in this regard,

in nagios core clustering is possible , please share the document.

Thanks
Ragu
Nagios Core does not have native clustering.