Connecting Tech Pros Worldwide Help | Site Map

SNMP OID's for CPU usage,Temperature and Hard Disk Status

Newbie
 
Join Date: Oct 2009
Location: Bangalore, India
Posts: 4
#1: Oct 13 '09
Hi All,
I am developing a web site using PHP.I am fetching the data using snmpget function to display data in the site . Anybody tell me the common OID’s for CPU usage Temperature an HD status of system, I require OID’s for LINUX and WINDOWS system. Thanks guys

Thanks,
Raghav
Dormilich's Avatar
Moderator
 
Join Date: Aug 2008
Location: Leipzig, Germany
Posts: 3,629
#2: Oct 13 '09

re: SNMP OID's for CPU usage,Temperature and Hard Disk Status


PHP has nothing to do with the client machine. those status values you need to fetch by a client side application.
Newbie
 
Join Date: Oct 2009
Location: Bangalore, India
Posts: 4
#3: Oct 14 '09

re: SNMP OID's for CPU usage,Temperature and Hard Disk Status


Thanks for the replay,
right now I am fetching some values like system name, up-time of the system and displaying on the page by using "snmpget" method in PHP, for example SNMP OID of System name is "1.3.6.1.2.1.1.5.0" similarly is there any SNMP OID for CPU usage, temperature and HD status which is generally common for all computers
code green's Avatar
Expert
 
Join Date: Mar 2007
Location: England
Posts: 1,076
#4: Oct 14 '09

re: SNMP OID's for CPU usage,Temperature and Hard Disk Status


Quote:
right now I am fetching some values like system name, up-time of the system
Thats fine. SNMP is a system management tool. PHP can do similar things
But you are talking about getting information from a client machine.
Entirely different. May I suggest you read about the Server-Client relationship and how that fits into the the OSI model.
Then you will know what Dormilich means by
Quote:
PHP has nothing to do with the client machine. those status values you need to fetch by a client side application
So it is a case of a client application passing the info via the system to a server side application.
An interesting project.
Newbie
 
Join Date: Oct 2009
Location: Bangalore, India
Posts: 4
#5: Oct 14 '09

re: SNMP OID's for CPU usage,Temperature and Hard Disk Status


Thanks,
Let me explain my project and what i did till now. I have a database of clients whose details will be stored in it(like name,ip address,etc) all my clients have SNMP enable systems.When administrator logs to site(he will get the details from DB), he can view the status of the system (Internal process is like, if the system response for 2 pings status is green if not status is red and also some info like up-time,system name etc).I am getting the details of those clients by SNMP communication so, there is no need of any client side scripting (i am thinking so , tell me if anything wrong).I just require proper SNMP OID's for CPU usage to display them in the table.Please check the image which is a part of the screen, it consists of up-time and ping response(red n green indication).
Attached Thumbnails
sysstatus.jpg  
code green's Avatar
Expert
 
Join Date: Mar 2007
Location: England
Posts: 1,076
#6: Oct 14 '09

re: SNMP OID's for CPU usage,Temperature and Hard Disk Status


I'm sorry. You are referring to the CPU usage of the network hardware.
Well I don't know, but I quickly googled "SNMP OID CPU usage" which brought up a lot of articles where the answer probably lies.
I will politely bow out as I am no SNMP expert.
Newbie
 
Join Date: Oct 2009
Location: Bangalore, India
Posts: 4
#7: Oct 15 '09

re: SNMP OID's for CPU usage,Temperature and Hard Disk Status


Hi thanks guys for your suggestions,After almost 48 hours googling I got the solution, hope it may use for other people. Please find the link http://www.satsignal.eu/mrtg/performance_howto.php
Reply