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
Getting nagios logs through socket to other server
-
- 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
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?
-
- 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
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
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
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
-
- 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
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
Dear scottwilkerson ,
please help me in this regard,
in nagios core clustering is possible , please share the document.
Thanks
Ragu
please help me in this regard,
in nagios core clustering is possible , please share the document.
Thanks
Ragu
-
- 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
Nagios Core does not have native clustering.ragu6ds wrote:Dear scottwilkerson ,
please help me in this regard,
in nagios core clustering is possible , please share the document.
Thanks
Ragu