Forum: Cfengine Help Subject: Mailing alerts from tripwire Author: eblack Link to topic: https://cfengine.com/forum/read.php?3,17146,17146#msg-17146
Hi, I am using the community edition v 3.0.4 and I can't figure out how to get the alerts from a trip wire change detection to be sent in the report alerts but it the alerts are there if I run "cf-agent -v": cf3 !! File /etc/nagios/nrpe.cfg was not in md5 database - new file found cf3 I: Report relates to a promise with handle "" cf3 I: Made in version 'not specified' of '/var/cfengine/inputs/run-always.cf' near line 29 cf3 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! cf3 ALERT: Last modified time for /etc/nagios/nrpe.cfg changed Tue May 11 11:38:41 2010 -> Tue May 11 12:13:36 2010 cf3 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! cf3 -> File permissions on /etc/nagios/nrpe.cfg as promised cf3 -> Handling file existence constraints on /etc/nagios/nrpe.cfg cf3 -> File permissions on /etc/nagios/nrpe.cfg as promised This is my agent: bundle agent check_nagios_files { vars: "command_file" string => "/etc/nagios/command.cfg"; "nrpe_file" string => "/etc/nagios/nrpe.cfg"; classes: "etc_nagios_command_cfg_exists" expression => fileexists("${command_file}"); "etc_nagios_nrpe_cfg_exists" expression => fileexists("${nrpe_file}"); files: etc_nagios_command_cfg_exists:: "${command_file}" perms => p("root","root","644"), changes => lay_trip_wire; etc_nagios_nrpe_cfg_exists:: "${nrpe_file}" perms => p("root","root","644"), changes => lay_trip_wire; reports: !etc_nagios_command_cfg_exists:: "WARNING: ${command_file} doesn't exist!"; !etc_nagios_nrpe_cfg_exists:: "WARNING: ${nrpe_file} doesn't exist!"; etc_nagios_command_cfg_exists:: "Checking ${command_file}"; etc_nagios_nrpe_cfg_exists:: "Checking ${nrpe_file}"; } Any guidance would be greatly appreciated. Thanks _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine