How well does it scale? strange udp sync setup.
Mattias Ryrlén
mattias.ryrlen at op5.com
Tue Nov 4 16:36:30 CET 2008
Hi,
I have a strange solution setup for a Master/Poller setup. was wondering
if someone can see any performance issue with this setup.
You are only allowed to poll one-way udp, so i thought.. why not use
syslog/logger to send the data.
using centos syslog (not syslog-ng).
******** Scripts ********
- sync_udp_parser.sh (can be obtained, reading from the pipe and copy to
nagios pipe)
- sync_udp_send.sh (can be obtained, more or less using logger with
preformatted nagios PASSIVE HOST/SERVICE format)
******** ServerA (Poller) ********
The server doing the actual polling.
******** Config ********
* Place sync_udp_send.sh to passive directory
/opt/monitor/op5/passive/
** nagios.cfg
- obsess_over_services=1
- obsess_over_hosts=1
- ocsp_command=sync_send_udp_service
- ochp_command=sync_send_udp_host
(you may also need to verify that you have obsess_over_[services/hosts]
enabled in your specific templates)
** misccommands.cfg
# command 'sync_send_udp_host'
define command{
command_name sync_send_udp_host
command_line /opt/monitor/op5/passive/sync_udp_send.sh
host $TIMET$ $HOSTNAME$ $HOSTSTATE$ '$HOSTOUTPUT$'
}
# command 'sync_send_udp_service'
define command{
command_name sync_send_udp_service
command_line /opt/monitor/op5/passive/sync_udp_send.sh
service $TIMET$ $HOSTNAME$ $SERVICESTATE$ '$SERVICEOUTPUT$' '$SERVICEDES
C$'
}
* syslogd
edit /etc/syslog.conf
local6.* @<ip of ServerB>
service monitor configtest
if everything went ok.
service monitor reload
******** ServerB (Master) ********
The server that recive the passive result
******** Config ********
* Create pipe for passive syslog udp messages.
mknod /opt/monitor/op5/passive/sync_udp.pipe p
chmod 600 /opt/monitor/op5/passive/sync_udp.pipe
* Place pipe parser (sync_udp_parser.sh) to passive directory
/opt/monitor/op5/passive/
* Start parser
/opt/monitor/op5/passive/sync_udp_parser.sh
< /opt/monitor/op5/passive/sync_udp.pipe &
* syslogd
edit /etc/syslog.conf
local6.* |/opt/monitor/op5/passive/sync_udp.pipe
--
Vänliga hälsningar / Best Regards
Mattias Ryrlén
__________________________
op5 AB
Första Långgatan 19
SE-413 27 Göteborg
Mobil: +46 735-17 70 99
Support: +46 31-774 09 24
www.op5.com
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list