question about logging

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
s.ferretti
Posts: 1
Joined: Thu Oct 02, 2014 9:47 am

question about logging

Post by s.ferretti »

Hi. i've a question about logging. i need to put a cronjob every morning to scan the log file, search for warning and send a SMS notification... ok not hard but i've a problem, i need to scan the log for some specific hosts and not other. it's possible disable log for specific hosts and services?

thank you
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: question about logging

Post by tmcdonald »

You could just grep the specific names in your log searching scripts. I don't believe it is possible to disable logging on a case-by-case basis.
Former Nagios employee
Locked