in my enviroment we get nagios logs reported. these are like this:
Sep 4 16:38:36 nxsdxq03 xinetd: START: nrpe pid=9420 from=10.40.111.152
Sep 4 16:38:36 nxsdxq03 nrpe: INFO: SSL/TLS initialized. All network traffic will be encrypted.
Sep 4 16:38:36 nxsdxq03 xinetd: EXIT: nrpe status=0 pid=9420 duration=0( sec)
Sep 4 16:44:46 nxinfp04 nrpe: Unknown option specified in config file '/usr/local/nagios/etc/nrpe.cfg' - Line 222
We want to get rid of INFO, START and EXIT logs.
for START and EXIT logs I know I can do one of these things:
• Add the line “log_on_success = “ in /etc/xinetd.d/nrpe file
• Commenting “log_on_success = PID HOST DURATION EXIT” line in /etc/xinetd.conf file.
for INFO logs I am not sure what we can do and really want your help.
I dont want any INFO, START or EXIT log in my messages file but I want all other nrpe logs.
I know about adding "use_syslog=0” in “/usr/local/nagios/etc/nrpe.cfg” file. but that would stop all the nrpe logs.
any way to just stop the INFO logs???