that always seems to redirect me to 'login' (even though I am passing the -u username:password)
Craig On Oct 10, 2011, at 6:32 AM, Ohad Levy wrote: > On Mon, Oct 10, 2011 at 2:05 PM, Jonathan Gazeley > <jonathan.gaze...@bristol.ac.uk> wrote: >> On 08/10/11 21:22, Chris Phillips wrote: >>> >>> What better way to monitor the puppet runs than by executing that run as >>> part of the check? >> >> I assume your Nagios plugin execution timeout must be insanely long? :) >> >> In the past I have considered using Nagios for things other than monitoring, >> and likewise using Puppet for things other than configuration. On both >> counts I decided it was probably best to set a boundary and not wilfully >> abuse these tools, since it's likely to go wrong sooner or later! In my >> organisation we use Nagios only to monitor, and Puppet only to configure. >> >> Have fun! >> >> Jonathan > > If you are using foreman, its very easy to query the last puppet > report state, e.g. > > curl -k -u $user:$pass https://foreman/hosts/`hostname > -f`/reports/last?format=json |prettify_json.rb > { > "report": { > "reported_at": "2011-10-10T13:03:02Z", > "metrics": { > "time": { > "group": 0.001799, > "class": 0.002389, > "config_retrieval": 2.4686119556427, > "cron": 0.00056, > "schedule": 0.002556, > "service": 0.702501, > "yumrepo": 0.081921, > "total": 4.6954209556427, > "mailalias": 0.000351, > "package": 0.012924, > "exec": 0.336481, > "file": 1.079741, > "filebucket": 0.000226, > "user": 0.00536 > }, > "events": { > "total": 0 > }, > "resources": { > "total": 212 > }, > "changes": { > "total": 0 > } > }, > "id": 269755, > "summary": "Success", > "host": "super.tlv.redhat.com", > "logs": [ > > ], > "status": { > "failed": 0, > "restarted": 0, > "applied": 0, > "skipped": 0, > "failed_restarts": 0 > } > } > } > > > Ohad >> >> -- >> 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 >> puppet-users+unsubscr...@googlegroups.com. >> For more options, visit this group at >> http://groups.google.com/group/puppet-users?hl=en. >> >> > > -- > 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 > puppet-users+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/puppet-users?hl=en. > -- Craig White ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ craig.wh...@ttiltd.com 1.800.869.6908 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ www.ttiassessments.com Need help communicating between generations at work to achieve your desired success? Let us help! -- 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 puppet-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.