Pages

Bài đăng phổ biến

Saturday, October 6, 2012

Solved Linux extended iostat template problem


Problem:
+ Running data query [11].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/iostat.xml'
+ XML file parsed ok.
+ Invalid field <index_order>ioDescr:ioName:ioIndex</index_order>
+ Must contain <direction>input</direction> fields only

Solved:
Edit file <path_cacti>/resource/snmp_queries/iostat.xml

<interface>
        <name>Get IOSTAT Devices</name>
        <description>Queries a host for a list of monitorable devices from iostat</description>
        <oid_index>.1.3.6.1.3.1</oid_index>
        <index_order>ioDescr:ioName:ioIndex</index_order>
Change this line: <index_order>ioDescr:ioName:ioIndex</index_order>
to : <index_order>ioDescr:ioIndex</index_order>
Done
Nguyen Si Nhan

Tuesday, September 18, 2012

Directadmin : Restore httpd.conf custom

echo "action=rewrite&value=httpd" >> /usr/local/directadmin/data/task.queue

That's all.

Nguyen Si Nhan

Sunday, August 12, 2012

Fixed : Premature end of script headers: graphite.wsgi

If you see this error ,you should disable mod_python after that restart httpd.
This problem usually happen when you use mod_python and mod_wsgi same time.

Nguyen Si Nhan