karmi / monittr

Ruby and web interface for Monit statistics
http://ephemera.karmi.cz/post/1714578431/monittr-ruby-and-web-interface-for-multiple-monits
MIT License
237 stars 33 forks source link

how about add child processes information #3

Open lidaobing opened 13 years ago

lidaobing commented 13 years ago

one sample service info as follows, how about add the //children //mermory/percenttotal //cpu/percenttotal info?

thanks

    <service type="3">
            <collected_sec>1292484038</collected_sec>
            <collected_usec>76458</collected_usec>
            <name>php-fpm</name>
            <status>0</status>
            <status_hint>0</status_hint>
            <monitor>1</monitor>
            <monitormode>0</monitormode>
            <pendingaction>0</pendingaction>
            <group></group>
            <pid>14509</pid>
            <ppid>1</ppid>
            <uptime>769741</uptime>
            <children>35</children>
            <memory>
                    <percent>0.0</percent>
                    <percenttotal>10.4</percenttotal>
                    <kilobyte>1984</kilobyte>
                    <kilobytetotal>423472</kilobytetotal>
            </memory>
            <cpu>
                    <percent>0.0</percent>
                    <percenttotal>3.5</percenttotal>
            </cpu>
            <port>
                    <hostname>127.0.0.1</hostname>
                    <portnumber>9000</portnumber>
                    <request></request>
                    <protocol>DEFAULT</protocol>
                    <type>TCP</type>
                    <responsetime>0.000</responsetime>
            </port>
    </service>