SlideShare a Scribd company logo
1 of 4
Tel 91 020 66018100
UIN 611977845
BoaT ID PADHIYN
Email nikunj.padhiyar@bt.com
UIN 611434799
BoaT ID TODIMX
Email mayank.todi@bt.com
dyl09079app12
execute.sh
********************************************************************************
********************************************************************************
**************
Mike cmd for Load error:
find / -name notifications -type d
logs then come:
find: `/usr/lib/ocf': Permission denied
find: `/usr/lost+found': Permission denied
find: `/usr/lib64/audit': Permission denied
find: `/etc/polkit-1/localauthority': Permission denied
find: `/etc/opt/quest/sudo/sudoers.d': Permission denied
find: `/etc/ntp/crypto': Permission denied
find: `/etc/lvm/archive': Permission denied
find: `/etc/lvm/cache': Permission denied
find: `/etc/lvm/backup': Permission denied
find: `/etc/pki/CA/private': Permission denied
find: `/etc/pki/rsyslog': Permission denied
find: `/etc/chef': Permission denied
find: `/etc/dhcp': Permission denied
find: `/etc/raddb/sql': Permission denied
find: `/etc/raddb/sites-available': Permission denied
find: `/etc/raddb/certs': Permission denied
find: `/etc/raddb/modules': Permission denied
find: `/etc/raddb/sites-enabled': Permission denied
find: `/etc/puppet/ssl': Permission denied
find: `/etc/selinux/targeted/modules/active': Permission denied
find: `/etc/audit': Permission denied
find: `/etc/audisp': Permission denied
$ls -la /opt/omd/sites/e2eslave1/local/share/check_mk/notifications
logs then:
total 16
drwxr-xr-x. 2 e2eslave1 e2eslave1 4096 Dec 23 2015 ./
drwxr-xr-x. 10 e2eslave1 e2eslave1 4096 Oct 1 2014 ../
-rwxr-xr-x. 1 e2eslave1 root 3006 Dec 23 2015 omnibus_trap*
-rwxrwxr-x. 1 e2eslave1 e2eslave1 2717 Dec 10 2015 smarts_trap*
$ ls -la /opt/omd/versions/1.20/skel/local/share/check_mk/notifications
$ ls -la /opt/omd/versions/1.20/share/check_mk/notifications
OMD[e2eslave1]:/$ ls -la
/opt/omd/versions/1.20/skel/local/share/check_mk/notifications
total 8
drwxr-xr-x. 2 root root 4096 Aug 20 2014 ./
drwxr-xr-x. 10 root root 4096 Oct 1 2014 ../
$cat /opt/omd/sites/e2eslave1/local/share/check_mk/notifications/omnibus_trap
#!/bin/sh
#Send Omnibus / AutoClarify Trap (Bridge Queue, Priority)
#Send different commands if the Source of the notification is from a Service
Check or a Host Check
if [ "$NOTIFY_WHAT" == "SERVICE" ]; then
#Passing the arguments into a seperate variable, then passing to command
as an Array (otherwise some variables weren't escaping properly)
ARGS1=(-v 2c -c public 62.239.184.46 '' NAGIOS-NOTIFY-MIB::nSvcEvent
nSvcHostname s "$NOTIFY_HOSTNAME" nSvcHostStateID i $NOTIFY_HOSTSTATEID nSvcDesc
s "$NOTIFY_SERVICEDESC" nSvcStateID i $NOTIFY_SERVICESTATEID nSvcAttempt i
$NOTIFY_SERVICEATTEMPT nSvcDurationSec i $NOTIFY_SERVICEDURATIONSEC
nSvcGroupName s "$NOTIFY_SERVICEGROUPNAME" nSvcLastCheck i
$NOTIFY_LASTSERVICECHECK nSvcLastChange i $NOTIFY_LASTSERVICESTATECHANGE
nSvcOutput s "$NOTIFY_SERVICEOUTPUT" nSvcHostAlias s "AUTOCLARIFY:
$NOTIFY_PARAMETER_1:$NOTIFY_PARAMETER_2")
ARGS2=(-v 2c -c public 62.239.187.23 '' NAGIOS-NOTIFY-MIB::nSvcEvent
nSvcHostname s "$NOTIFY_HOSTNAME" nSvcHostStateID i $NOTIFY_HOSTSTATEID nSvcDesc
s "$NOTIFY_SERVICEDESC" nSvcStateID i $NOTIFY_SERVICESTATEID nSvcAttempt i
$NOTIFY_SERVICEATTEMPT nSvcDurationSec i $NOTIFY_SERVICEDURATIONSEC
nSvcGroupName s "$NOTIFY_SERVICEGROUPNAME" nSvcLastCheck i
$NOTIFY_LASTSERVICECHECK nSvcLastChange i $NOTIFY_LASTSERVICESTATECHANGE
nSvcOutput s "$NOTIFY_SERVICEOUTPUT" nSvcHostAlias s "AUTOCLARIFY:
$NOTIFY_PARAMETER_1:$NOTIFY_PARAMETER_2")
/usr/bin/snmptrap "${ARGS1[@]}"
/usr/bin/snmptrap "${ARGS2[@]}"
elif [ "$NOTIFY_WHAT" == "HOST" ]; then
if [ "$NOTIFY_HOSTSTATETYPE" == "HARD" ]; then
HOSTSTATETYPE=0
else
HOSTSTATETYPE=1
fi
#Passing the arguments into a seperate variable, then passing to command
as an Array (otherwise some variables weren't escaping properly)
ARGS1=(-v 2c -c public 62.239.184.46 '' NAGIOS-NOTIFY-MIB::nHostEvent
nHostname s "$NOTIFY_HOSTNAME" nHostStateID i $NOTIFY_HOSTSTATEID nHostStateType
i $HOSTSTATETYPE nHostAttempt i $NOTIFY_HOSTATTEMPT nHostDurationSec i
$NOTIFY_HOSTDURATIONSEC nHostGroupName s "$NOTIFY_HOSTGROUPNAME" nHostLastCheck
i $NOTIFY_LASTHOSTCHECK nHostLastChange i $NOTIFY_LASTHOSTSTATECHANGE
nHostOutput s "$NOTIFY_HOSTOUTPUT" nHostAlias s "AUTOCLARIFY:
$NOTIFY_PARAMETER_1:$NOTIFY_PARAMETER_2")
ARGS2=(-v 2c -c public 62.239.187.23 '' NAGIOS-NOTIFY-MIB::nHostEvent
nHostname s "$NOTIFY_HOSTNAME" nHostStateID i $NOTIFY_HOSTSTATEID nHostStateType
i $HOSTSTATETYPE nHostAttempt i $NOTIFY_HOSTATTEMPT nHostDurationSec i
$NOTIFY_HOSTDURATIONSEC nHostGroupName s "$NOTIFY_HOSTGROUPNAME" nHostLastCheck
i $NOTIFY_LASTHOSTCHECK nHostLastChange i $NOTIFY_LASTHOSTSTATECHANGE
nHostOutput s "$NOTIFY_HOSTOUTPUT" nHostAlias s "AUTOCLARIFY:
$NOTIFY_PARAMETER_1:$NOTIFY_PARAMETER_2")
/usr/bin/snmptrap "${ARGS1[@]}"
/usr/bin/snmptrap "${ARGS2[@]}"
echo "${ARGS1[@]}" >> /tmp/logout
else
echo "ERROR: Invalid Check Type Passed" >> /tmp/logout
********************************************************************************
********************************************************************************
**************
1ambchops
F[k70Ux!
blt11127001 10.54.148.54 E2ESlave1 b6&D9vq!
root password: F[k70Ux!
******************************
10.54.148.55
$cp -r ruby rubybackup
******************************
root password: muD9$5!G
there might be an unpacked version of Ruby in /tmp
as root run gem list
wget https://rubygems.org/gems/net-ssh
For Current net-ssh releases require Ruby 2.0 or later,So anyhow we have to
install Ruby 2.0
*****************************
10.54.148.55
su - e2eslave1
/usr/local/lib/ruby/gems/2.1.0
/usr/lib/ruby/gems/2.1.0/gems/chef-11.12.8/spec/unit/knife/client_create_spec.rb
/usr/bin/ruby
[root@blt11127001 usr]# cd uname -a
bash: cd: uname: No such file or directory
[root@blt11127001 usr]# uname -a
Linux blt11127001 2.6.39-400.24.1.el6uek.x86_64 #1 SMP Wed May 15 11:46:52 PDT
2013 x86_64 x86_64 x86_64 GNU/Linux
[root@blt11127001 usr]#
[root@blt11127001 usr]#
[root@blt11127001 usr]#
[root@blt11127001 usr]# ruby -v
ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux]
[root@blt11127001 usr]#
[root@blt11127001 usr]#
[root@blt11127001 usr]#
[root@blt11127001 gems]# gem install chef-helpers
ERROR: http://rubygems.org/ does not appear to be a repository
ERROR: Could not find a valid gem 'chef-helpers' (>= 0) in any repository
[root@blt11127001 gems]#
This may be automatically included in the Chef build in the future, but at the
moment is still a manual step.
Due to the new way we monitor Windows Services, we connect via SSH and use a
small Netcat EXE to connect to the Check_MK Service locally. Unfortunately using
the standard SSH Commands using this method seems to return a "chunked"
response, where half the output of the agent doesn't get sent over correctly.
The solution to this was to wrap up the Datasoruce call into a Ruby script,
which waits until the entire response is recieved before passing it on. The
script has also been extended to query any kind of OS by passing the IP + OS
into the script.
It should be placed in the OMD Sites Home Directory, and test that the Site User
can call it correctly.
It is available on SVN in the Chef Repo (under Misc)
/var/chef/backup/opt/omd/sites/e2eslave1/local/share/check_mk/checkman/.svn
/var/chef/backup/opt/omd/sites/e2eslave1/local/share/check_mk/checks/.svn
/var/chef/backup/opt/omd/sites/e2eslave1/local/share/check_mk/pnp-templates/.svn
/var/chef/cache/cookbooks/Nagios-OMD/files/default/Base/extra_checkman/.svn
/var/chef/cache/cookbooks/Nagios-OMD/files/default/Base/extra_checks/.svn
/var/chef/cache/cookbooks/Nagios-OMD/files/default/Base/extra_pnptemplates/.svn
Example to wget:
/var/chef/backup/opt/omd/sites/e2eslave1/local/share/check_mk/checkman/.svn
/var/chef/backup/opt/omd/sites/e2eslave1/local/share/check_mk/checks/.svn
/var/chef/backup/opt/omd/sites/e2eslave1/local/share/check_mk/pnp-templates/.svn
/var/chef/cache/cookbooks/Nagios-OMD/files/default/Base/extra_checkman/.svn
/var/chef/cache/cookbooks/Nagios-OMD/files/default/Base/extra_checks/.svn
/var/chef/cache/cookbooks/Nagios-OMD/files/default/Base/extra_pnptemplates/.svn

More Related Content

What's hot

Introduction to the new official C# Driver developed by 10gen
Introduction to the new official C# Driver developed by 10genIntroduction to the new official C# Driver developed by 10gen
Introduction to the new official C# Driver developed by 10genMongoDB
 
Cleaner, Leaner, Meaner: Refactoring your jQuery
Cleaner, Leaner, Meaner: Refactoring your jQueryCleaner, Leaner, Meaner: Refactoring your jQuery
Cleaner, Leaner, Meaner: Refactoring your jQueryRebecca Murphey
 
Add edit delete in Codeigniter in PHP
Add edit delete in Codeigniter in PHPAdd edit delete in Codeigniter in PHP
Add edit delete in Codeigniter in PHPVineet Kumar Saini
 
Tag Joz
Tag JozTag Joz
Tag JozAi Tsf
 
mdpress(MarkDown Press)を使ったプレゼンテーション作成
mdpress(MarkDown Press)を使ったプレゼンテーション作成mdpress(MarkDown Press)を使ったプレゼンテーション作成
mdpress(MarkDown Press)を使ったプレゼンテーション作成達郎 植田
 
Country State City Dropdown in PHP
Country State City Dropdown in PHPCountry State City Dropdown in PHP
Country State City Dropdown in PHPVineet Kumar Saini
 
How to build a pure evil Magento module
How to build a pure evil Magento moduleHow to build a pure evil Magento module
How to build a pure evil Magento moduleAOE
 
smartdc by Ruby
smartdc by Rubysmartdc by Ruby
smartdc by Rubyogom_
 
PythonでJWT生成からボット作成、投稿までやってみた
PythonでJWT生成からボット作成、投稿までやってみたPythonでJWT生成からボット作成、投稿までやってみた
PythonでJWT生成からボット作成、投稿までやってみたitoxdev
 
How to work with legacy code PHPers Rzeszow #2
How to work with legacy code PHPers Rzeszow #2How to work with legacy code PHPers Rzeszow #2
How to work with legacy code PHPers Rzeszow #2Michał Kruczek
 
How to work with legacy code
How to work with legacy codeHow to work with legacy code
How to work with legacy codeMichał Kruczek
 
Magento2&java script (2)
Magento2&java script (2)Magento2&java script (2)
Magento2&java script (2)EvgeniyKapelko1
 
Yuriy Voziy "Fantastic Template Strings and Where to Use Them"
Yuriy Voziy "Fantastic Template Strings and Where to Use Them"Yuriy Voziy "Fantastic Template Strings and Where to Use Them"
Yuriy Voziy "Fantastic Template Strings and Where to Use Them"LogeekNightUkraine
 
Keep It Simple Security (Symfony cafe 28-01-2016)
Keep It Simple Security (Symfony cafe 28-01-2016)Keep It Simple Security (Symfony cafe 28-01-2016)
Keep It Simple Security (Symfony cafe 28-01-2016)Oleg Zinchenko
 
Implementing JMS Integration Solutions with WSO2 ESB
Implementing JMS Integration Solutions with WSO2 ESBImplementing JMS Integration Solutions with WSO2 ESB
Implementing JMS Integration Solutions with WSO2 ESBWSO2
 
Windows Phone 8 Sensors
Windows Phone 8 SensorsWindows Phone 8 Sensors
Windows Phone 8 SensorsDavid Isbitski
 
Php update and delet operation
Php update and delet operationPhp update and delet operation
Php update and delet operationsyeda zoya mehdi
 

What's hot (20)

Introduction to the new official C# Driver developed by 10gen
Introduction to the new official C# Driver developed by 10genIntroduction to the new official C# Driver developed by 10gen
Introduction to the new official C# Driver developed by 10gen
 
Cleaner, Leaner, Meaner: Refactoring your jQuery
Cleaner, Leaner, Meaner: Refactoring your jQueryCleaner, Leaner, Meaner: Refactoring your jQuery
Cleaner, Leaner, Meaner: Refactoring your jQuery
 
Add edit delete in Codeigniter in PHP
Add edit delete in Codeigniter in PHPAdd edit delete in Codeigniter in PHP
Add edit delete in Codeigniter in PHP
 
Tag Joz
Tag JozTag Joz
Tag Joz
 
Mongo db for c# developers
Mongo db for c# developersMongo db for c# developers
Mongo db for c# developers
 
mdpress(MarkDown Press)を使ったプレゼンテーション作成
mdpress(MarkDown Press)を使ったプレゼンテーション作成mdpress(MarkDown Press)を使ったプレゼンテーション作成
mdpress(MarkDown Press)を使ったプレゼンテーション作成
 
Country State City Dropdown in PHP
Country State City Dropdown in PHPCountry State City Dropdown in PHP
Country State City Dropdown in PHP
 
FP512 Cookies sessions
FP512 Cookies sessionsFP512 Cookies sessions
FP512 Cookies sessions
 
How to build a pure evil Magento module
How to build a pure evil Magento moduleHow to build a pure evil Magento module
How to build a pure evil Magento module
 
smartdc by Ruby
smartdc by Rubysmartdc by Ruby
smartdc by Ruby
 
Coding website
Coding websiteCoding website
Coding website
 
PythonでJWT生成からボット作成、投稿までやってみた
PythonでJWT生成からボット作成、投稿までやってみたPythonでJWT生成からボット作成、投稿までやってみた
PythonでJWT生成からボット作成、投稿までやってみた
 
How to work with legacy code PHPers Rzeszow #2
How to work with legacy code PHPers Rzeszow #2How to work with legacy code PHPers Rzeszow #2
How to work with legacy code PHPers Rzeszow #2
 
How to work with legacy code
How to work with legacy codeHow to work with legacy code
How to work with legacy code
 
Magento2&java script (2)
Magento2&java script (2)Magento2&java script (2)
Magento2&java script (2)
 
Yuriy Voziy "Fantastic Template Strings and Where to Use Them"
Yuriy Voziy "Fantastic Template Strings and Where to Use Them"Yuriy Voziy "Fantastic Template Strings and Where to Use Them"
Yuriy Voziy "Fantastic Template Strings and Where to Use Them"
 
Keep It Simple Security (Symfony cafe 28-01-2016)
Keep It Simple Security (Symfony cafe 28-01-2016)Keep It Simple Security (Symfony cafe 28-01-2016)
Keep It Simple Security (Symfony cafe 28-01-2016)
 
Implementing JMS Integration Solutions with WSO2 ESB
Implementing JMS Integration Solutions with WSO2 ESBImplementing JMS Integration Solutions with WSO2 ESB
Implementing JMS Integration Solutions with WSO2 ESB
 
Windows Phone 8 Sensors
Windows Phone 8 SensorsWindows Phone 8 Sensors
Windows Phone 8 Sensors
 
Php update and delet operation
Php update and delet operationPhp update and delet operation
Php update and delet operation
 

Similar to load errorcmd

PFIセミナー資料 H27.10.22
PFIセミナー資料 H27.10.22PFIセミナー資料 H27.10.22
PFIセミナー資料 H27.10.22Yuya Takei
 
Love The Terminal
Love The TerminalLove The Terminal
Love The TerminalMike West
 
Keep it simple web development stack
Keep it simple web development stackKeep it simple web development stack
Keep it simple web development stackEric Ahn
 
Kubernetes Tutorial
Kubernetes TutorialKubernetes Tutorial
Kubernetes TutorialCi Jie Li
 
glance replicator
glance replicatorglance replicator
glance replicatoririx_jp
 
Designing Opeation Oriented Web Applications / YAPC::Asia Tokyo 2011
Designing Opeation Oriented Web Applications / YAPC::Asia Tokyo 2011Designing Opeation Oriented Web Applications / YAPC::Asia Tokyo 2011
Designing Opeation Oriented Web Applications / YAPC::Asia Tokyo 2011Masahiro Nagano
 
Openstack 101
Openstack 101Openstack 101
Openstack 101POSSCON
 
Redmine on amazon ec2
Redmine on amazon ec2Redmine on amazon ec2
Redmine on amazon ec2Ikuru Kanuma
 
Drizzle to MySQL, Stress Free Migration
Drizzle to MySQL, Stress Free MigrationDrizzle to MySQL, Stress Free Migration
Drizzle to MySQL, Stress Free MigrationAndrew Hutchings
 
Windows Attacks AT is the new black
Windows Attacks   AT is the new blackWindows Attacks   AT is the new black
Windows Attacks AT is the new blackRob Fuller
 
Windows attacks - AT is the new black
Windows attacks - AT is the new blackWindows attacks - AT is the new black
Windows attacks - AT is the new blackChris Gates
 
Perl web app 테스트전략
Perl web app 테스트전략Perl web app 테스트전략
Perl web app 테스트전략Jeen Lee
 
MySQL 8.0.18 - New Features Summary
MySQL 8.0.18 - New Features SummaryMySQL 8.0.18 - New Features Summary
MySQL 8.0.18 - New Features SummaryOlivier DASINI
 
파이썬 개발환경 구성하기의 끝판왕 - Docker Compose
파이썬 개발환경 구성하기의 끝판왕 - Docker Compose파이썬 개발환경 구성하기의 끝판왕 - Docker Compose
파이썬 개발환경 구성하기의 끝판왕 - Docker Composeraccoony
 
Build your own private openstack cloud
Build your own private openstack cloudBuild your own private openstack cloud
Build your own private openstack cloudNUTC, imac
 

Similar to load errorcmd (20)

PFIセミナー資料 H27.10.22
PFIセミナー資料 H27.10.22PFIセミナー資料 H27.10.22
PFIセミナー資料 H27.10.22
 
Ubic
UbicUbic
Ubic
 
Ubic-public
Ubic-publicUbic-public
Ubic-public
 
Love The Terminal
Love The TerminalLove The Terminal
Love The Terminal
 
Keep it simple web development stack
Keep it simple web development stackKeep it simple web development stack
Keep it simple web development stack
 
Operation outbreak
Operation outbreakOperation outbreak
Operation outbreak
 
Kubernetes Tutorial
Kubernetes TutorialKubernetes Tutorial
Kubernetes Tutorial
 
glance replicator
glance replicatorglance replicator
glance replicator
 
Designing Opeation Oriented Web Applications / YAPC::Asia Tokyo 2011
Designing Opeation Oriented Web Applications / YAPC::Asia Tokyo 2011Designing Opeation Oriented Web Applications / YAPC::Asia Tokyo 2011
Designing Opeation Oriented Web Applications / YAPC::Asia Tokyo 2011
 
Openstack 101
Openstack 101Openstack 101
Openstack 101
 
Redmine on amazon ec2
Redmine on amazon ec2Redmine on amazon ec2
Redmine on amazon ec2
 
Drizzle to MySQL, Stress Free Migration
Drizzle to MySQL, Stress Free MigrationDrizzle to MySQL, Stress Free Migration
Drizzle to MySQL, Stress Free Migration
 
Windows Attacks AT is the new black
Windows Attacks   AT is the new blackWindows Attacks   AT is the new black
Windows Attacks AT is the new black
 
Windows attacks - AT is the new black
Windows attacks - AT is the new blackWindows attacks - AT is the new black
Windows attacks - AT is the new black
 
Perl web app 테스트전략
Perl web app 테스트전략Perl web app 테스트전략
Perl web app 테스트전략
 
MySQL 8.0.18 - New Features Summary
MySQL 8.0.18 - New Features SummaryMySQL 8.0.18 - New Features Summary
MySQL 8.0.18 - New Features Summary
 
파이썬 개발환경 구성하기의 끝판왕 - Docker Compose
파이썬 개발환경 구성하기의 끝판왕 - Docker Compose파이썬 개발환경 구성하기의 끝판왕 - Docker Compose
파이썬 개발환경 구성하기의 끝판왕 - Docker Compose
 
Backups
BackupsBackups
Backups
 
Malcon2017
Malcon2017Malcon2017
Malcon2017
 
Build your own private openstack cloud
Build your own private openstack cloudBuild your own private openstack cloud
Build your own private openstack cloud
 

More from ♛Kumar Aneesh♛ (19)

Introduction about Kubernates Cluster
Introduction about Kubernates ClusterIntroduction about Kubernates Cluster
Introduction about Kubernates Cluster
 
Live issues resolution on Kubernates Cluster
Live issues resolution on Kubernates ClusterLive issues resolution on Kubernates Cluster
Live issues resolution on Kubernates Cluster
 
Nagios
NagiosNagios
Nagios
 
My onboarding
My onboardingMy onboarding
My onboarding
 
Monitor it accesspending
Monitor it accesspendingMonitor it accesspending
Monitor it accesspending
 
Monitor it access
Monitor it accessMonitor it access
Monitor it access
 
Missing on both stacks
Missing on both stacksMissing on both stacks
Missing on both stacks
 
Kibana
KibanaKibana
Kibana
 
tp smarts_onboarding
 tp smarts_onboarding tp smarts_onboarding
tp smarts_onboarding
 
derby onboarding (1)
derby onboarding (1)derby onboarding (1)
derby onboarding (1)
 
Issues chmk (1)
Issues chmk (1)Issues chmk (1)
Issues chmk (1)
 
Invoke
InvokeInvoke
Invoke
 
Inventory after onboarding
Inventory after onboardingInventory after onboarding
Inventory after onboarding
 
Implementation c100229805
Implementation c100229805Implementation c100229805
Implementation c100229805
 
Icmp s outh
Icmp s outhIcmp s outh
Icmp s outh
 
Hws&reigate south fitzoy
Hws&reigate south fitzoyHws&reigate south fitzoy
Hws&reigate south fitzoy
 
Hempoint
HempointHempoint
Hempoint
 
Dmctl cmd
Dmctl cmdDmctl cmd
Dmctl cmd
 
Asg dashboard usage_guide_v1
Asg dashboard usage_guide_v1Asg dashboard usage_guide_v1
Asg dashboard usage_guide_v1
 

Recently uploaded

"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...Fwdays
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostZilliz
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek SchlawackFwdays
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxhariprasad279825
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 3652toLead Limited
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxNavinnSomaal
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr BaganFwdays
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsMiki Katsuragi
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity PlanDatabarracks
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024Lonnie McRorey
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteDianaGray10
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024BookNet Canada
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DaySri Ambati
 

Recently uploaded (20)

"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks..."LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
"LLMs for Python Engineers: Advanced Data Analysis and Semantic Kernel",Oleks...
 
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage CostLeverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
Leverage Zilliz Serverless - Up to 50X Saving for Your Vector Storage Cost
 
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
"Subclassing and Composition – A Pythonic Tour of Trade-Offs", Hynek Schlawack
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Artificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptxArtificial intelligence in cctv survelliance.pptx
Artificial intelligence in cctv survelliance.pptx
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365Ensuring Technical Readiness For Copilot in Microsoft 365
Ensuring Technical Readiness For Copilot in Microsoft 365
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
SAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptxSAP Build Work Zone - Overview L2-L3.pptx
SAP Build Work Zone - Overview L2-L3.pptx
 
"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan"ML in Production",Oleksandr Bagan
"ML in Production",Oleksandr Bagan
 
Vertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering TipsVertex AI Gemini Prompt Engineering Tips
Vertex AI Gemini Prompt Engineering Tips
 
How to write a Business Continuity Plan
How to write a Business Continuity PlanHow to write a Business Continuity Plan
How to write a Business Continuity Plan
 
TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024TeamStation AI System Report LATAM IT Salaries 2024
TeamStation AI System Report LATAM IT Salaries 2024
 
Take control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test SuiteTake control of your SAP testing with UiPath Test Suite
Take control of your SAP testing with UiPath Test Suite
 
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
Transcript: New from BookNet Canada for 2024: BNC CataList - Tech Forum 2024
 
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 

load errorcmd

  • 1. Tel 91 020 66018100 UIN 611977845 BoaT ID PADHIYN Email nikunj.padhiyar@bt.com UIN 611434799 BoaT ID TODIMX Email mayank.todi@bt.com dyl09079app12 execute.sh ******************************************************************************** ******************************************************************************** ************** Mike cmd for Load error: find / -name notifications -type d logs then come: find: `/usr/lib/ocf': Permission denied find: `/usr/lost+found': Permission denied find: `/usr/lib64/audit': Permission denied find: `/etc/polkit-1/localauthority': Permission denied find: `/etc/opt/quest/sudo/sudoers.d': Permission denied find: `/etc/ntp/crypto': Permission denied find: `/etc/lvm/archive': Permission denied find: `/etc/lvm/cache': Permission denied find: `/etc/lvm/backup': Permission denied find: `/etc/pki/CA/private': Permission denied find: `/etc/pki/rsyslog': Permission denied find: `/etc/chef': Permission denied find: `/etc/dhcp': Permission denied find: `/etc/raddb/sql': Permission denied find: `/etc/raddb/sites-available': Permission denied find: `/etc/raddb/certs': Permission denied find: `/etc/raddb/modules': Permission denied find: `/etc/raddb/sites-enabled': Permission denied find: `/etc/puppet/ssl': Permission denied find: `/etc/selinux/targeted/modules/active': Permission denied find: `/etc/audit': Permission denied find: `/etc/audisp': Permission denied $ls -la /opt/omd/sites/e2eslave1/local/share/check_mk/notifications logs then: total 16 drwxr-xr-x. 2 e2eslave1 e2eslave1 4096 Dec 23 2015 ./ drwxr-xr-x. 10 e2eslave1 e2eslave1 4096 Oct 1 2014 ../ -rwxr-xr-x. 1 e2eslave1 root 3006 Dec 23 2015 omnibus_trap* -rwxrwxr-x. 1 e2eslave1 e2eslave1 2717 Dec 10 2015 smarts_trap* $ ls -la /opt/omd/versions/1.20/skel/local/share/check_mk/notifications $ ls -la /opt/omd/versions/1.20/share/check_mk/notifications OMD[e2eslave1]:/$ ls -la
  • 2. /opt/omd/versions/1.20/skel/local/share/check_mk/notifications total 8 drwxr-xr-x. 2 root root 4096 Aug 20 2014 ./ drwxr-xr-x. 10 root root 4096 Oct 1 2014 ../ $cat /opt/omd/sites/e2eslave1/local/share/check_mk/notifications/omnibus_trap #!/bin/sh #Send Omnibus / AutoClarify Trap (Bridge Queue, Priority) #Send different commands if the Source of the notification is from a Service Check or a Host Check if [ "$NOTIFY_WHAT" == "SERVICE" ]; then #Passing the arguments into a seperate variable, then passing to command as an Array (otherwise some variables weren't escaping properly) ARGS1=(-v 2c -c public 62.239.184.46 '' NAGIOS-NOTIFY-MIB::nSvcEvent nSvcHostname s "$NOTIFY_HOSTNAME" nSvcHostStateID i $NOTIFY_HOSTSTATEID nSvcDesc s "$NOTIFY_SERVICEDESC" nSvcStateID i $NOTIFY_SERVICESTATEID nSvcAttempt i $NOTIFY_SERVICEATTEMPT nSvcDurationSec i $NOTIFY_SERVICEDURATIONSEC nSvcGroupName s "$NOTIFY_SERVICEGROUPNAME" nSvcLastCheck i $NOTIFY_LASTSERVICECHECK nSvcLastChange i $NOTIFY_LASTSERVICESTATECHANGE nSvcOutput s "$NOTIFY_SERVICEOUTPUT" nSvcHostAlias s "AUTOCLARIFY: $NOTIFY_PARAMETER_1:$NOTIFY_PARAMETER_2") ARGS2=(-v 2c -c public 62.239.187.23 '' NAGIOS-NOTIFY-MIB::nSvcEvent nSvcHostname s "$NOTIFY_HOSTNAME" nSvcHostStateID i $NOTIFY_HOSTSTATEID nSvcDesc s "$NOTIFY_SERVICEDESC" nSvcStateID i $NOTIFY_SERVICESTATEID nSvcAttempt i $NOTIFY_SERVICEATTEMPT nSvcDurationSec i $NOTIFY_SERVICEDURATIONSEC nSvcGroupName s "$NOTIFY_SERVICEGROUPNAME" nSvcLastCheck i $NOTIFY_LASTSERVICECHECK nSvcLastChange i $NOTIFY_LASTSERVICESTATECHANGE nSvcOutput s "$NOTIFY_SERVICEOUTPUT" nSvcHostAlias s "AUTOCLARIFY: $NOTIFY_PARAMETER_1:$NOTIFY_PARAMETER_2") /usr/bin/snmptrap "${ARGS1[@]}" /usr/bin/snmptrap "${ARGS2[@]}" elif [ "$NOTIFY_WHAT" == "HOST" ]; then if [ "$NOTIFY_HOSTSTATETYPE" == "HARD" ]; then HOSTSTATETYPE=0 else HOSTSTATETYPE=1 fi #Passing the arguments into a seperate variable, then passing to command as an Array (otherwise some variables weren't escaping properly) ARGS1=(-v 2c -c public 62.239.184.46 '' NAGIOS-NOTIFY-MIB::nHostEvent nHostname s "$NOTIFY_HOSTNAME" nHostStateID i $NOTIFY_HOSTSTATEID nHostStateType i $HOSTSTATETYPE nHostAttempt i $NOTIFY_HOSTATTEMPT nHostDurationSec i $NOTIFY_HOSTDURATIONSEC nHostGroupName s "$NOTIFY_HOSTGROUPNAME" nHostLastCheck i $NOTIFY_LASTHOSTCHECK nHostLastChange i $NOTIFY_LASTHOSTSTATECHANGE nHostOutput s "$NOTIFY_HOSTOUTPUT" nHostAlias s "AUTOCLARIFY: $NOTIFY_PARAMETER_1:$NOTIFY_PARAMETER_2") ARGS2=(-v 2c -c public 62.239.187.23 '' NAGIOS-NOTIFY-MIB::nHostEvent nHostname s "$NOTIFY_HOSTNAME" nHostStateID i $NOTIFY_HOSTSTATEID nHostStateType i $HOSTSTATETYPE nHostAttempt i $NOTIFY_HOSTATTEMPT nHostDurationSec i $NOTIFY_HOSTDURATIONSEC nHostGroupName s "$NOTIFY_HOSTGROUPNAME" nHostLastCheck i $NOTIFY_LASTHOSTCHECK nHostLastChange i $NOTIFY_LASTHOSTSTATECHANGE nHostOutput s "$NOTIFY_HOSTOUTPUT" nHostAlias s "AUTOCLARIFY: $NOTIFY_PARAMETER_1:$NOTIFY_PARAMETER_2") /usr/bin/snmptrap "${ARGS1[@]}" /usr/bin/snmptrap "${ARGS2[@]}" echo "${ARGS1[@]}" >> /tmp/logout else echo "ERROR: Invalid Check Type Passed" >> /tmp/logout ********************************************************************************
  • 3. ******************************************************************************** ************** 1ambchops F[k70Ux! blt11127001 10.54.148.54 E2ESlave1 b6&D9vq! root password: F[k70Ux! ****************************** 10.54.148.55 $cp -r ruby rubybackup ****************************** root password: muD9$5!G there might be an unpacked version of Ruby in /tmp as root run gem list wget https://rubygems.org/gems/net-ssh For Current net-ssh releases require Ruby 2.0 or later,So anyhow we have to install Ruby 2.0 ***************************** 10.54.148.55 su - e2eslave1 /usr/local/lib/ruby/gems/2.1.0 /usr/lib/ruby/gems/2.1.0/gems/chef-11.12.8/spec/unit/knife/client_create_spec.rb /usr/bin/ruby [root@blt11127001 usr]# cd uname -a bash: cd: uname: No such file or directory [root@blt11127001 usr]# uname -a Linux blt11127001 2.6.39-400.24.1.el6uek.x86_64 #1 SMP Wed May 15 11:46:52 PDT 2013 x86_64 x86_64 x86_64 GNU/Linux [root@blt11127001 usr]# [root@blt11127001 usr]# [root@blt11127001 usr]# [root@blt11127001 usr]# ruby -v ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux] [root@blt11127001 usr]# [root@blt11127001 usr]# [root@blt11127001 usr]# [root@blt11127001 gems]# gem install chef-helpers ERROR: http://rubygems.org/ does not appear to be a repository ERROR: Could not find a valid gem 'chef-helpers' (>= 0) in any repository
  • 4. [root@blt11127001 gems]# This may be automatically included in the Chef build in the future, but at the moment is still a manual step. Due to the new way we monitor Windows Services, we connect via SSH and use a small Netcat EXE to connect to the Check_MK Service locally. Unfortunately using the standard SSH Commands using this method seems to return a "chunked" response, where half the output of the agent doesn't get sent over correctly. The solution to this was to wrap up the Datasoruce call into a Ruby script, which waits until the entire response is recieved before passing it on. The script has also been extended to query any kind of OS by passing the IP + OS into the script. It should be placed in the OMD Sites Home Directory, and test that the Site User can call it correctly. It is available on SVN in the Chef Repo (under Misc) /var/chef/backup/opt/omd/sites/e2eslave1/local/share/check_mk/checkman/.svn /var/chef/backup/opt/omd/sites/e2eslave1/local/share/check_mk/checks/.svn /var/chef/backup/opt/omd/sites/e2eslave1/local/share/check_mk/pnp-templates/.svn /var/chef/cache/cookbooks/Nagios-OMD/files/default/Base/extra_checkman/.svn /var/chef/cache/cookbooks/Nagios-OMD/files/default/Base/extra_checks/.svn /var/chef/cache/cookbooks/Nagios-OMD/files/default/Base/extra_pnptemplates/.svn Example to wget: /var/chef/backup/opt/omd/sites/e2eslave1/local/share/check_mk/checkman/.svn /var/chef/backup/opt/omd/sites/e2eslave1/local/share/check_mk/checks/.svn /var/chef/backup/opt/omd/sites/e2eslave1/local/share/check_mk/pnp-templates/.svn /var/chef/cache/cookbooks/Nagios-OMD/files/default/Base/extra_checkman/.svn /var/chef/cache/cookbooks/Nagios-OMD/files/default/Base/extra_checks/.svn /var/chef/cache/cookbooks/Nagios-OMD/files/default/Base/extra_pnptemplates/.svn