- Community Home
- >
- Software
- >
- HPE OneView
- >
- How to integration HP OneView with Nagios.
-
-
Forums
- Products
- Servers and Operating Systems
- Storage
- Software
- Services
- HPE GreenLake
- Company
- Events
- Webinars
- Partner Solutions and Certifications
- Local Language
- China - 简体中文
- Japan - 日本語
- Korea - 한국어
- Taiwan - 繁體中文
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Blog, Poland
-
Blogs
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Blog, Latin America
- HPE Blog, Middle East
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
-
Information
- Community
- Welcome
- Getting Started
- FAQ
- Ranking Overview
- Rules of Participation
- Tips and Tricks
- Resources
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- Other HPE Sites
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
Forums
-
Forums
-
Blogs
-
Information
-
English
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2019 08:00 AM
03-07-2019 08:00 AM
How to integration HP OneView with Nagios.
Need to monitor HP OneView server hardware components.
I have 160 plus servers to monitor for HP OneView. I created plugin to monitor all servers, I am reading all server from HP OneView and putting into list and iterating the list and adding check for that but after first server check it will exist from script. Please refer the below python script(plugin):
res = requests.request("GET", server_details_url, headers=headers, verify=False)
serverList = res.json()['members']
for server in serverList:
uuid = server['uuid']
url = base_url + '/server-hardware/'"%s"%uuid+'/utilization?fields=CpuUtilization'
res = requests.request("GET", url, headers=headers, verify=False)
if res.status_code != 200:
print 'Status Code:'+str(res.status_code)
sys.exit(status['WARNING'])
metricList = res.json()['metricList']
hpOneView_CpuUtil = metricList[0]['metricSamples'][0][1]
hpOneView_CpuUtil_Float = float(hpOneView_CpuUtil)
hpOneView_CpuUtil_display = ("%.1f" % hpOneView_CpuUtil_Float)
critical_value = 90.0
warning_value = 80.0
if hpOneView_CpuUtil_Float >= critical_value:
print "CPU last min avg at " + hpOneView_CpuUtil_display + '% CRITICAL'
sys.exit(status['CRITICAL'])
elif hpOneView_CpuUtil_Float >= warning_value:
print "CPU last min avg at " + hpOneView_CpuUtil_display + '% WARNING'
sys.exit(status['WARNING'])
elif hpOneView_CpuUtil_Float < warning_value:
print "CPU last min avg at " + hpOneView_CpuUtil_display + '% OK'
sys.exit(status['OK'])
else:
print 'Script error near line 66'
sys.exit(status['UNKNOWN'])
Is it possible to check all severs using single plugin? -If yes, so how can we pass all server to single plugin. -If no, means we need to create 2 plugin 1st for reading the server and 2nd for pass single sever and monitor, then how to add both file in Nagios for monitor.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-11-2019 01:49 AM
03-11-2019 01:49 AM
Re: How to integration HP OneView with Nagios.
Greetings,
Please refer below link with regards to Nagios Plug-in for iLO Agentless Management (HPE ProLiant Server).
Also you can use python scripts to integrate HP OneView with Nagios.
https://github.com/HewlettPackard/python-hpOneView

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-08-2021 11:01 AM
07-08-2021 11:01 AM
Re: How to integration HP OneView with Nagios.
Hello,
After a long time looking at how to monitor synergy and / or oneview. I have decided to do it through the api. I share my Github repository https://github.com/Rakka-source/Nagios-Oneview-PythonRakka-source/Nagios-Oneview-Python: Monitoring onview /synergy using api (github.com).
I did it in a simple and easy way to integrate. Please give me stars on github
I look forward to feedback, I would appreciate.
Greetings
Hewlett Packard Enterprise International
- Communities
- HPE Blogs and Forum
© Copyright 2022 Hewlett Packard Enterprise Development LP