I am monitoring a number of hosts using Netwatch, I would like to be able to write the up and down events to the log file
There are two possible areas that I believe may need tweeking to get it working properly.
The script
':log message="Host A down!"'
in the down section for example. Is this correct ?
System > Logging
Under what ‘Topic’ would the events being noticed on the netwatch be categorized, i’ve tried a number of options e.g event, info but the information I am looking for does not write to log file
Command is
:log <info|error|debug|warning> “Message Here"So in your case
:log info “Host A Down"If you wanted to allow that to be logged either allow info, or allow “netwatch,info”.
So
set 0 action=memory disabled=no prefix=”” topics=infoor
add action=memory disabled=no prefix=“” topics=netwatch,infoEtc…