Just need a quick clarification

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Just need a quick clarification

Post by benhank »

SO, here I am uncafinated and I am about to configure two IIS servers to send a specific log file to the NLS.
I read the the instructions and again UNcaffinated, I read:

Code: Select all

You will need to rename iis_log1 to the name of the file you desire to monitor. This must be unique.
and well, on both servers the file has the same name which is WEBsitelog.log.
I am UNcafinatedly assuming that on both servers I can change iis_log1 to say WEBsitelog.log on server one and W3SVC2 on server two?
Or, can I just rename the iis_log1 to W3SVC1on both servers?

in otherwords if I added the following on both servers would NLS have a problem?

Code: Select all

# Watch your IIS log files
<Input iis_log1>
    Module   im_file
    File     'C:\inetpub\logs\LogFiles\W3SVC2\WEBsitelog.log'
    SavePos  TRUE
    Exec     $Message = $raw_event;
</Input>


<Route 1>
    Path internal, eventlog, WEBsitelog => out
</Route>
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Just need a quick clarification

Post by scottwilkerson »

Basically, you need to look in C:\inetpub\logs\LogFiles\ and see what the directories and files are called, then you can add the appropriate path to the File directive.

Also, see how the input has a name of iis_log1

Code: Select all

<Input iis_log1>
This needs to be added to the Route command, such as

Code: Select all

<Route 1>
    Path internal, eventlog, iis_log1 => out
</Route>
Now, get some coffee before making any changes
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: Just need a quick clarification

Post by benhank »

ah i see
last question
Can the config files be identical on two separate servers?
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Just need a quick clarification

Post by scottwilkerson »

benhank wrote:Can the config files be identical on two separate servers?
Yes.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
User avatar
benhank
Posts: 1264
Joined: Tue Apr 12, 2011 12:29 pm

Re: Just need a quick clarification

Post by benhank »

Thanks you can lock it up
Proudly running:
NagiosXI 5.4.12 2 node Prod Env 2500 hosts, 13,000 services
Nagiosxi 5.5.7(test env) 2500 hosts, 13,000 services
Nagios Logserver 2 node Prod Env 500 objects sending
Nagios Network Analyser
Nagios Fusion
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Just need a quick clarification

Post by scottwilkerson »

benhank wrote:Thanks you can lock it up
Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked