<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How do i get current cpu and memory utilization in linux using the c programming in Operating System - Linux</title>
    <link>https://community.hpe.com/t5/operating-system-linux/how-do-i-get-current-cpu-and-memory-utilization-in-linux-using/m-p/3674420#M20675</link>
    <description>You can call external commands to get utilization info (say vmstat) from your program, get the output in and parse it.&lt;BR /&gt;&lt;BR /&gt;If you need an snmp agent to monitor cpu and mem util just use net-snmp. Once installed you can set your thresholds in snmpd.conf.&lt;BR /&gt;&lt;BR /&gt;-Ross</description>
    <pubDate>Fri, 18 Nov 2005 02:30:10 GMT</pubDate>
    <dc:creator>Ross Minkov</dc:creator>
    <dc:date>2005-11-18T02:30:10Z</dc:date>
    <item>
      <title>How do i get current cpu and memory utilization in linux using the c programming</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-do-i-get-current-cpu-and-memory-utilization-in-linux-using/m-p/3674419#M20674</link>
      <description>I am writting the snmp agent for one device fo r that i need to send the traps when cpu and memory utilization execded the set thresholds for this i want know how do i get the current cpu and memory utilization using the c programs. If you have any progrmas please forward to me.&lt;BR /&gt;&lt;BR /&gt;Thanks in advance&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Thanks and Regards&lt;BR /&gt;Nataraju K R</description>
      <pubDate>Thu, 17 Nov 2005 23:45:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-do-i-get-current-cpu-and-memory-utilization-in-linux-using/m-p/3674419#M20674</guid>
      <dc:creator>nataraju K R_1</dc:creator>
      <dc:date>2005-11-17T23:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get current cpu and memory utilization in linux using the c programming</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-do-i-get-current-cpu-and-memory-utilization-in-linux-using/m-p/3674420#M20675</link>
      <description>You can call external commands to get utilization info (say vmstat) from your program, get the output in and parse it.&lt;BR /&gt;&lt;BR /&gt;If you need an snmp agent to monitor cpu and mem util just use net-snmp. Once installed you can set your thresholds in snmpd.conf.&lt;BR /&gt;&lt;BR /&gt;-Ross</description>
      <pubDate>Fri, 18 Nov 2005 02:30:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-do-i-get-current-cpu-and-memory-utilization-in-linux-using/m-p/3674420#M20675</guid>
      <dc:creator>Ross Minkov</dc:creator>
      <dc:date>2005-11-18T02:30:10Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get current cpu and memory utilization in linux using the c programming</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-do-i-get-current-cpu-and-memory-utilization-in-linux-using/m-p/3674421#M20676</link>
      <description>Check the code for uptime, and free.&lt;BR /&gt;Both are minimal programs accessing the &lt;BR /&gt;appropriate data from the kernel.</description>
      <pubDate>Fri, 18 Nov 2005 12:31:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-do-i-get-current-cpu-and-memory-utilization-in-linux-using/m-p/3674421#M20676</guid>
      <dc:creator>Bill Thorsteinson</dc:creator>
      <dc:date>2005-11-18T12:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do i get current cpu and memory utilization in linux using the c programming</title>
      <link>https://community.hpe.com/t5/operating-system-linux/how-do-i-get-current-cpu-and-memory-utilization-in-linux-using/m-p/3674422#M20677</link>
      <description>&lt;BR /&gt;I am sure there are dozens of agents written that already do what you are going to invent, and a lot more, and a lot more secure.&lt;BR /&gt;Maybe look at places like: &lt;A href="http://net-snmp.sourceforge.net/" target="_blank"&gt;http://net-snmp.sourceforge.net/&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Still, of you want to only partially reinvent this wheel, check out sources for sar/top/vmstat.&lt;BR /&gt;For example:&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://cvs.sourceforge.net/viewcvs.py/*checkout*/procps/procps/vmstat.c?rev=1.30" target="_blank"&gt;http://cvs.sourceforge.net/viewcvs.py/*checkout*/procps/procps/vmstat.c?rev=1.30&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;fwiw,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 20 Nov 2005 13:33:34 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-linux/how-do-i-get-current-cpu-and-memory-utilization-in-linux-using/m-p/3674422#M20677</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2005-11-20T13:33:34Z</dc:date>
    </item>
  </channel>
</rss>

