Skip to content

Instantly share code, notes, and snippets.

View williamsjj's full-sized avatar

Jason J. W. Williams williamsjj

View GitHub Profile
January 25, 2012 04:56:37 PM UTC
Log info 0x31140000 received for target 13.
scsi_status=0x0, ioc_status=0x8048, scsi_state=0xc
Jan 25 16:31:58 node4-datacluster3 kernel: scsi: [ID 365881 kern.info] /pci@0,0/pci8086,3410@9/pci1000,3020@0 (mpt_sas1):
Log info 0x31140000 received for target 13.
scsi_status=0x0, ioc_status=0x8048, scsi_state=0xc
Jan 25 16:31:58 node4-datacluster3 kernel: scsi: [ID 365881 kern.info] /pci@0,0/pci8086,3410@9/pci1000,3020@0 (mpt_sas1):
Log info 0x31140000 received for target 13.
scsi_status=0x0, ioc_status=0x8048, scsi_state=0xc
Jan 25 16:31:58 node4-datacluster3 kernel: scsi: [ID 365881 kern.info] /pci@0,0/pci8086,3410@9/pci1000,3020@0 (mpt_sas1):
bash-4.0# cfgadm -c unconfigure c15::dsk/c15t5000C5002C686829
cfgadm: Attachment point not found
bash-4.0# cfgadm -a
Ap_Id Type Receptacle Occupant Condition
c4 scsi-sas connected configured unknown
c4::dsk/c4t5000C5002C67AED5d0 disk connected configured unknown
c5 scsi-sas connected configured unknown
c5::dsk/c5t5000C5001AEE57B9d0 disk connected configured unknown
c8 scsi-sas connected configured unknown
c8::dsk/c8t5000C5001AEC3CCDd0 disk connected configured unknown
c9 scsi-sas connected configured unknown
c9::dsk/c9t5000C5002C67F08Dd0 disk connected configured unknown
#!/usr/bin/python
# -*- coding: utf-8-*-
####################################################################
# FILENAME: check_smart_attr.py
# PROJECT: Misc Scripts
# DESCRIPTION: Nagios health check to monitor a SMART attribute
# and alert against it.
#
#
# $Id$
root@ubuntu:/etc/init.d# /usr/sbin/named -u bind -f -g -d 100
28-Sep-2011 05:31:54.836 starting BIND 9.7.0-P1 -u bind -f -g -d 100
28-Sep-2011 05:31:54.836 built with '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--sysconfdir=/etc/bind' '--localstatedir=/var' '--enable-threads' '--enable-largefile' '--with-libtool' '--enable-shared' '--enable-static' '--with-openssl=/usr' '--with-gssapi=/usr' '--with-gnu-ld' '--with-dlz-postgres=no' '--with-dlz-mysql=no' '--with-dlz-bdb=yes' '--with-dlz-filesystem=yes' '--with-dlz-ldap=yes' '--with-dlz-stub=yes' '--with-geoip=/usr' '--enable-ipv6' 'CFLAGS=-fno-strict-aliasing -DDIG_SIGCHASE -O2' 'LDFLAGS=-Wl,-Bsymbolic-functions' 'CPPFLAGS='
28-Sep-2011 05:31:54.836 adjusted limit on open files from 1024 to 1048576
28-Sep-2011 05:31:54.836 found 1 CPU, using 1 worker thread
28-Sep-2011 05:31:54.836 using up to 4096 sockets
28-Sep-2011 05:31:54.836 Registering DLZ_stub driver.
28-Sep-2011 05:31:54.836 Registering SDLZ driver 'dlz_stub'
28-Sep-2011 05:3
root@ubuntu:/etc/init.d# /usr/sbin/named -f -g -d 100
28-Sep-2011 05:22:41.106 starting BIND 9.7.0-P1 -f -g -d 100
28-Sep-2011 05:22:41.106 built with '--prefix=/usr' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--sysconfdir=/etc/bind' '--localstatedir=/var' '--enable-threads' '--enable-largefile' '--with-libtool' '--enable-shared' '--enable-static' '--with-openssl=/usr' '--with-gssapi=/usr' '--with-gnu-ld' '--with-dlz-postgres=no' '--with-dlz-mysql=no' '--with-dlz-bdb=yes' '--with-dlz-filesystem=yes' '--with-dlz-ldap=yes' '--with-dlz-stub=yes' '--with-geoip=/usr' '--enable-ipv6' 'CFLAGS=-fno-strict-aliasing -DDIG_SIGCHASE -O2' 'LDFLAGS=-Wl,-Bsymbolic-functions' 'CPPFLAGS='
28-Sep-2011 05:22:41.106 adjusted limit on open files from 1024 to 1048576
28-Sep-2011 05:22:41.106 found 1 CPU, using 1 worker thread
28-Sep-2011 05:22:41.106 using up to 4096 sockets
28-Sep-2011 05:22:41.106 Registering DLZ_stub driver.
28-Sep-2011 05:22:41.106 Registering SDLZ driver 'dlz_stub'
28-Sep-2011 05:22:41.106 Regist
Error executing API call (500): <html><head><title>500 Internal Server Error</title></head><body><h1>Internal Server Error</h1>The server encountered an error while processing this request:<br><pre>{exit,{aborted,{no_exists,[rabbit_user,<<"guest">>]}},
[{mnesia,abort,1},
{rabbit_misc,dirty_read,1},
{rabbit_auth_backend_internal,internal_check_user_login,2},
{rabbit_access_control,'-check_user_login/2-fun-0-',4},
{lists,foldl,3},
{rabbit_mgmt_util,is_authorized,3},
{webmachine_resource,resource_call,3},
{webmachine_resource,do,3}]}</pre><P><HR><ADDRESS>mochiweb+webmachine web server</ADDRESS></body></html>
Jul 28 20:33:46 openindiana PLATFORM: VMware-Virtual-Platform, CSN: VMware-56-4d-17-cf-7c-58-b4-cb-fe-ef-19-c2-39-f2-fd-b1, HOSTNAME: openindiana
Jul 28 20:33:46 openindiana SOURCE: software-diagnosis, REV: 0.1
Jul 28 20:33:46 openindiana EVENT-ID: 5e2fe3c2-ca9a-cf76-89eb-b26bca39e92a
Jul 28 20:33:46 openindiana DESC: A service failed - a start, stop or refresh method failed.
Jul 28 20:33:46 openindiana Refer to http://sun.com/msg/SMF-8000-YX for more information.
Jul 28 20:33:46 openindiana AUTO-RESPONSE: The service has been placed into the maintenance state.
Jul 28 20:33:46 openindiana IMPACT: svc:/network/ntp:default is unavailable.
Jul 28 20:33:46 openindiana REC-ACTION: Run 'svcs -xv svc:/network/ntp:default' to determine the generic reason why the service failed, the location of any logfiles, and a list of other services impacted.
#
# Author:: Jason Williams (<[email protected]>)
# Copyright:: Copyright (c) 2011 Opscode, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Author:: Jason J. W. Williams (<[email protected]>)
# Copyright:: Copyright (c) 2011 Opscode, Inc.
# License:: Apache License, Version 2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0