NSCLIENT++ log

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

NSCLIENT++ log

Post by raamardhani7 »

Hi Team,

We have installed NSCLIENT++ on remote windows servers and now the log file size is increasing drastically, can someone help me how can I reduce it. is there any settings that I need to update?
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: NSCLIENT++ log

Post by hsmith »

Can you look at the log and see what kind of messages are filling it?
Former Nagios Employee.
me.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: NSCLIENT++ log

Post by tgriep »

If you are running NSClient 0.4.x ot newer, edit the nsclient.ini file and add the following.

Code: Select all

[/settings/log/file]
; MAXIMUM FILE SIZE - When file size reaches this it will be truncated to 50% if set to 0 (default) truncation will be disabled
max size = 2048000
Save the ini file and restart the NSClient service. This will truncate the file for you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Re: NSCLIENT++ log

Post by raamardhani7 »

tgriep wrote:If you are running NSClient 0.4.x ot newer, edit the nsclient.ini file and add the following.

Code: Select all

[/settings/log/file]
; MAXIMUM FILE SIZE - When file size reaches this it will be truncated to 50% if set to 0 (default) truncation will be disabled
max size = 2048000
Save the ini file and restart the NSClient service. This will truncate the file for you.

Hi Tom,

This worked for me, please close this thread. thanks.
Locked