[omd-users] send_nsca

Oliver Klein o.klein at fh-muenster.de
Wed Jun 1 14:12:34 CEST 2011


Hi

i want to use send_nsca and i have a problem to find the right config. I
didn´t find a docu for
nsca with omd. This is what i did

create send_nsca.cfg under
/opt/omd/sites/dvz1/etc/nsca/send_nsca.cfg

with password and encryption_method

send_nsca is in the right directory /opt/omd/versions/0.48/bin/send_nsca

create command in the commands.cfg

define command{

command_name submit_check_result
command_line
/opt/omd/versions/0.48/lib/nagios/plugins/eventhandlers/submit_check_result
$HOSTNAME$ '$SERVICEDESC$' $SERVICESTATE$ '$SERVICEOUTPUT$'

}

and create the submit_check_result command

and finally add this into nagios.cfg under
/opt/omd/sites/dvz1/etc/nagios/nagios.cfg

ocsp_command=submit_check_result
obsess_over_services=1

so when i try to send a test everthing works fine

/bin/echo 'localhost;TEST;0;Nur ein Test' |
/opt/omd/sites/dvz1/bin/send_nsca -H 'localhost' -d ';' -c
'/opt/omd/sites/dvz1/etc/nsca/send_nsca.cfg'
1 data packet(s) sent to host successfully.

/bin/echo 'localhost;TEST;0;Nur ein Test' |
/opt/omd/sites/dvz1/bin/send_nsca -H 'nagios-master' -d ';' -c
'/opt/omd/sites/dvz1/etc/nsca/send_nsca.cfg'
1 data packet(s) sent to host successfully.

Maybe the problem are the oscp_command and obsess_over_services in the
nagios.cfg or should i set these in the main.mk? And how?
Hope anyone can help me in this issue!


Kind regards
Olly

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 6492 bytes
Desc: S/MIME Cryptographic Signature
URL: <http://lists.mathias-kettner.de/pipermail/omd-users/attachments/20110601/385e9a89/attachment.bin>


More information about the omd-users mailing list