[omd-users] [SOLVED] send_nsca

Oliver Klein o.klein at fh-muenster.de
Wed Jun 1 15:43:30 CEST 2011


Hi

ok problem solved it was a mistake in the submit_check_result.

regards olly


Am 01.06.11 14:12, schrieb Oliver Klein:
> 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
>
>
>
> _______________________________________________
> omd-users mailing list
> omd-users at lists.mathias-kettner.de
> http://lists.mathias-kettner.de/mailman/listinfo/omd-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mathias-kettner.de/pipermail/omd-users/attachments/20110601/966a3372/attachment-0001.htm>
-------------- 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/966a3372/attachment-0001.bin>


More information about the omd-users mailing list