Hi Adeel,
   You can send the manifests execution reports to puppet master. For the 
execution report files refer /var/lib/puppet/reports directory. 

For that you have to add report=true in /etc/puppet/puppet.conf file 
# 
# /etc/puppet/puppet.conf file
# 
[agent]
report =true

>From the reports .yml files you can  extract the messages you need.
Refer http://docs.puppetlabs.com/guides/reporting.html for details about 
report mechanism in puppet.

Thanks and Regards,
Rahul Khengare
NTT DATA OSS Center, Pune, India.


On Monday, September 16, 2013 5:48:24 PM UTC+5:30, Adeel Bhatti wrote:
>
> It adds the entry in the log file but locally, I want to have agent's 
> entry on the puppet server's log file !!
> is it possible ?
>
> Adeel
>
>
> On Monday, September 16, 2013 2:08:28 PM UTC+2, Sneha More wrote:
>>
>> Hi,
>>   You can get response from puppet, depend upon what you want to achieve.
>> *1st case* : if you want to log the output of command "nginx -t", you 
>> can use attribute
>>
>>        logoutput => "true" or "false"
>> of exec resource
>> Please refer http://www.puppetcookbook.com/posts/exec-output-logging.html 
>> for deatailed description.
>>
>> *2nd case* : if you want to execute something after finding file containing 
>> configuration error 
>>
>> then you can use attribute
>>
>> onlyif => "<command>" 
>> of exec resource
>>
>> Please refer http://www.puppetcookbook.com/posts/exec-onlyif.html for 
>> deatiled description
>>
>> Thanks & Regards,
>> Sneha More,
>> NTT DATA GTS, OSS Center India, (Pune).
>>  
>>
>>
>> On Monday, September 16, 2013 11:57:12 AM UTC+5:30, Adeel Bhatti wrote:
>>>
>>> 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 emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To post to this group, send email to puppet-users@googlegroups.com.
Visit this group at http://groups.google.com/group/puppet-users.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to