Getting nagios logs through socket to other server

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
ragu6ds
Posts: 13
Joined: Wed Apr 04, 2018 4:53 am

Getting nagios logs through socket to other server

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

Re: Getting nagios logs through socket to other server

Post 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?
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Getting nagios logs through socket to other server

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
ragu6ds
Posts: 13
Joined: Wed Apr 04, 2018 4:53 am

Re: Getting nagios logs through socket to other server

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

Re: Getting nagios logs through socket to other server

Post 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.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
ragu6ds
Posts: 13
Joined: Wed Apr 04, 2018 4:53 am

Re: Getting nagios logs through socket to other server

Post by ragu6ds »

Dear scottwilkerson ,

please help me in this regard,

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

Thanks
Ragu
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Getting nagios logs through socket to other server

Post 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.
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked