Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

tcpip set service /log(file:dsk:[dir]filename.ext,all) does not work

SOLVED
Go to solution
bgr
Occasional Advisor

tcpip set service /log(file:dsk:[dir]filename.ext,all) does not work

I'm working on getting Nagios NRPE working on OpenVMS 8.31h1, tcpip 5.6 eco 2, IA64 and have it working, but when I define the service:

$ tcpip set service NRPED /port=5666 /protocol=tcp -
/user=nrpe /process_name=nrped/flag=listen -
/file=nrpe$:nrpe.com /limit=50 -
/log=(file:nrpe$:nodename_nrped_run.log,all)
The service doesn't log to the file but rather to sys$login:nrpe.log. I've checked privs, etc.

$ tcpip show service nrped/full

Service: NRPED
State: Enabled
Port: 5666 Protocol: TCP Address: 0.0.0.0
Inactivity: 5 User_name: NRPE Process: NRPED
Limit: 50 Active: 0 Peak: 1

File: NRPE$:NRPE.COM
Flags: Listen

Socket Opts: Rcheck Scheck
Receive: 0 Send: 0

Log Opts: Acpt Actv Dactv Conn Error Exit Logi Logo Mdfy Rjct TimO Addr
File: NRPE$:OMEGA1_NRPED_RUN.LOG

Security
Reject msg: not defined
Accept host: 0.0.0.0
Accept netw: 0.0.0.0

Does anyone have any suggestions?
8 REPLIES
marsh_1
Honored Contributor

Re: tcpip set service /log(file:dsk:[dir]filename.ext,all) does not work

hi,

have you stopped and restarted the service ?

bgr
Occasional Advisor

Re: tcpip set service /log(file:dsk:[dir]filename.ext,all) does not work

I have done:
TCPIP> disable service nrped
TCPIP> enable service nrped
this seems to have no effect.
EdgarZamora_1
Respected Contributor

Re: tcpip set service /log(file:dsk:[dir]filename.ext,all) does not work

instead of just using a logical (NRPE$), try it with a "device:[dir]filename.log" specification.
bgr
Occasional Advisor

Re: tcpip set service /log(file:dsk:[dir]filename.ext,all) does not work

NRPE$ logical is correctly defined or it would not run the .com file to begin with. However, I did try with no logicals and had the same results.
Hoff
Honored Contributor
Solution

Re: tcpip set service /log(file:dsk:[dir]filename.ext,all) does not work

As for the general sequence, have you seen http://nrpevms.dbaalacarte.com/ and the details there?

If you are familiar with that stuff, apologies; I don't recognize the initials, so I don't know what your particular experience level with this stuff might be . Nor what version of or pieces and parts of nrpe you're working with here.

Also see the recent thread:

http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=1344931

As the log stuff may or may not be relevant; widgets are free to ignore same. Looks like nrpe ignores it, too.
Hoff
Honored Contributor

Re: tcpip set service /log(file:dsk:[dir]filename.ext,all) does not work

I tool a look at the 2.0a code again. The output I/O model is quite simple; the code writes to nrpe$log:nrpe.log, and there's no consideration of the TCP/IP Services settings or most anything else. If you want to tweak that destination, have a look at nrpe.com.
bgr
Occasional Advisor

Re: tcpip set service /log(file:dsk:[dir]filename.ext,all) does not work

Thanks everyone for your help! I believe this issue has been resolved.

I've been administrating/working on/with VMS since 1985, but I'm certainly a neophyte when it comes to TCP/IP services. The thread mentioned led me to the solution, but was not exactly correct with my testing. From my testing it appears that a system level logical defined with the same name as the .com file in the service definition will control the log file creation and naming e.g.

$ define /system nrpe nl: !-- send to nul
$ ! -or- (in our case, make node specific)
$ define/system nrpe utilia64 [NRPE.COMMON.LOG]OMEGA1_NRPE.LOG
$ tcpip set service NRPED /port=5666 /protocol=tcp -
/user=nrpe /process_name=nrped/flag=listen -
/file=nrpe$:nrpe.com /limit=50 -
/log=(file:nrpe$:'node'_nrped_run.log,all)

This above logical basically allows redirection of the same type of output that you get with a /log option on a batch job. So, if as mentioned earlier sys$output, sys$error, or other output is redefined, that type of output will go to the appropriate locations, BUT, the 'OMEGA1_NRPE.LOG' is still created with the process info. e.g.

$ Set NoOn
$ VERIFY = F$VERIFY(F$TRNLNM("SYLOGIN_VERIFY"))
NRPE job terminated at 19-JUN-2009 09:21:33.36

Accounting information:
Buffered I/O count: 1646 Peak working set size: 7888
Direct I/O count: 39 Peak virtual size: 181152
Page faults: 651 Mounted volumes: 0
Charged CPU time: 0 00:00:00.11 Elapsed time: 0 00:00:02.44
Brent Weaver_1
Occasional Advisor

Re: tcpip set service /log(file:dsk:[dir]filename.ext,all) does not work

Hey there. I am working on getting this running on an Integrity server. Would you be willing to share the image files with me as I cannot find my c compiler for VMS.