Check file age
Posted: Tue Mar 08, 2016 11:57 am
I am trying to get this check so that it is alright but goes critical if it gets modified. I want to monitor our DNS named.conf file and if it gets changed Nagios sends out a critical alert.
command[check_file_named]=/usr/local/nagios/libexec/check_file_age -f /etc/named.conf -w ? -c ? I have been playing with different values but cannot for the life of me get this to work. Is there a different or better check?
It seems easier enough. This file shouldn't change, if it does then Nagios send out alerts.
3957 Sep 8 14:03 named.conf
command[check_file_named]=/usr/local/nagios/libexec/check_file_age -f /etc/named.conf -w ? -c ? I have been playing with different values but cannot for the life of me get this to work. Is there a different or better check?
It seems easier enough. This file shouldn't change, if it does then Nagios send out alerts.
3957 Sep 8 14:03 named.conf