<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.0.3" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Cacti on OS X: Part 2</title>
	<link>http://benjaminrossi.com/blog/2006/07/22/cacti-on-os-x-part-2/</link>
	<description>Digital pimpery</description>
	<pubDate>Thu, 09 Sep 2010 07:08:00 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.0.3</generator>

	<item>
		<title>by: =.= 街喵人生 &#187; 以Cacti監測OSX主機效能</title>
		<link>http://benjaminrossi.com/blog/2006/07/22/cacti-on-os-x-part-2/#comment-4918</link>
		<pubDate>Sat, 20 Feb 2010 07:22:44 +0000</pubDate>
		<guid>http://benjaminrossi.com/blog/2006/07/22/cacti-on-os-x-part-2/#comment-4918</guid>
					<description>[...] 安裝Cacti的過程就不用多提了，不外就是先把MySQL、Apache2、SNMP的設定先弄好，而RRDTool與Cacti都可以直接透過PORT來安裝。不過Cacti所內附與效能監測相關的script與template，都是給Linux用的，在OSX上多半會有問題，畢竟指令與所帶參數都有不小的差異。所幸OSX可用的script，已經有善心人士寫好了，下載與安裝可以參考這裡跟這裡。  唯一要注意的一點是關於啟動Cacti用來汲取資料的那支Poller.php程式，以及實際產生監測資料的script。一般的方法是在/etc/crontab裡加上： */5 * * * * root&amp;#160; &amp;#160; /opt/net-snmp/scripts/cacti.bash */5 * * * * cactiuser php /var/www/cacti/poller.php &amp;#62; /dev/null 2&amp;#62;&amp;#38;1 [...]</description>
		<content:encoded><![CDATA[<p>[&#8230;] 安裝Cacti的過程就不用多提了，不外就是先把MySQL、Apache2、SNMP的設定先弄好，而RRDTool與Cacti都可以直接透過PORT來安裝。不過Cacti所內附與效能監測相關的script與template，都是給Linux用的，在OSX上多半會有問題，畢竟指令與所帶參數都有不小的差異。所幸OSX可用的script，已經有善心人士寫好了，下載與安裝可以參考這裡跟這裡。  唯一要注意的一點是關於啟動Cacti用來汲取資料的那支Poller.php程式，以及實際產生監測資料的script。一般的方法是在/etc/crontab裡加上： */5 * * * * root&nbsp; &nbsp; /opt/net-snmp/scripts/cacti.bash */5 * * * * cactiuser php /var/www/cacti/poller.php &gt; /dev/null 2&gt;&amp;1 [&#8230;]
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: LePtiFilou</title>
		<link>http://benjaminrossi.com/blog/2006/07/22/cacti-on-os-x-part-2/#comment-303</link>
		<pubDate>Fri, 13 Jul 2007 18:23:17 +0000</pubDate>
		<guid>http://benjaminrossi.com/blog/2006/07/22/cacti-on-os-x-part-2/#comment-303</guid>
					<description>Issue solved while reinstalling net-snmp 5.4</description>
		<content:encoded><![CDATA[<p>Issue solved while reinstalling net-snmp 5.4
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: LePtiFilou</title>
		<link>http://benjaminrossi.com/blog/2006/07/22/cacti-on-os-x-part-2/#comment-294</link>
		<pubDate>Mon, 09 Jul 2007 16:21:24 +0000</pubDate>
		<guid>http://benjaminrossi.com/blog/2006/07/22/cacti-on-os-x-part-2/#comment-294</guid>
					<description>Hello

everything is working fine for me with cacti but these scripts. I'm on a Macbook Pro 10.4.10 and it is not working fine with this 'exec' thing.
I'm getting this:
leptifilou:~/Sites/cacti/rra LePtiFilou$ snmpd -H 
No log handling enabled - turning on stderr logging 
/etc/snmpd.conf: line 204: Warning: Unknown token: exec. 
/etc/snmpd.conf: line 205: Warning: Unknown token: exec. 
/etc/snmpd.conf: line 206: Warning: Unknown token: exec. 
/etc/snmpd.conf: line 207: Warning: Unknown token: exec.

Here's the part of my /etc/snmpd.conf:
exec 1.3.6.1.4.1.2021.8.1.101 cpu /bin/cat /opt/net-snmp/data/cpu 
exec 1.3.6.1.4.1.2021.8.2.101 temp /bin/cat /opt/net-snmp/data/temp 
exec 1.3.6.1.4.1.2021.8.3.101 disk /bin/cat /opt/net-snmp/data/disk 
exec 1.3.6.1.4.1.2021.8.4.101 mem /bin/cat /opt/net-snmp/data/mem 

With this:
leptifilou:~/Sites/cacti/rra LePtiFilou$ snmpd -v 
NET-SNMP version:  5.2.1 

I'm stuck and it is very annoying :(
Common disk usage, processes, logged users... are working fine, but everything with this 'exec' thing is not. On top of that, data are gathered into /opt/net-snmp/data but it looks like my snmpd agent is not willing to pick them up and put into an OID with 'exec' as it is unrecognized.

I'd appreciate your help :) Your advices were useful to install everything, I hope the saga will continue.</description>
		<content:encoded><![CDATA[<p>Hello</p>
<p>everything is working fine for me with cacti but these scripts. I&#8217;m on a Macbook Pro 10.4.10 and it is not working fine with this &#8216;exec&#8217; thing.<br />
I&#8217;m getting this:<br />
leptifilou:~/Sites/cacti/rra LePtiFilou$ snmpd -H<br />
No log handling enabled - turning on stderr logging<br />
/etc/snmpd.conf: line 204: Warning: Unknown token: exec.<br />
/etc/snmpd.conf: line 205: Warning: Unknown token: exec.<br />
/etc/snmpd.conf: line 206: Warning: Unknown token: exec.<br />
/etc/snmpd.conf: line 207: Warning: Unknown token: exec.</p>
<p>Here&#8217;s the part of my /etc/snmpd.conf:<br />
exec 1.3.6.1.4.1.2021.8.1.101 cpu /bin/cat /opt/net-snmp/data/cpu<br />
exec 1.3.6.1.4.1.2021.8.2.101 temp /bin/cat /opt/net-snmp/data/temp<br />
exec 1.3.6.1.4.1.2021.8.3.101 disk /bin/cat /opt/net-snmp/data/disk<br />
exec 1.3.6.1.4.1.2021.8.4.101 mem /bin/cat /opt/net-snmp/data/mem </p>
<p>With this:<br />
leptifilou:~/Sites/cacti/rra LePtiFilou$ snmpd -v<br />
NET-SNMP version:  5.2.1 </p>
<p>I&#8217;m stuck and it is very annoying <img src='http://benjaminrossi.com/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /><br />
Common disk usage, processes, logged users&#8230; are working fine, but everything with this &#8216;exec&#8217; thing is not. On top of that, data are gathered into /opt/net-snmp/data but it looks like my snmpd agent is not willing to pick them up and put into an OID with &#8216;exec&#8217; as it is unrecognized.</p>
<p>I&#8217;d appreciate your help <img src='http://benjaminrossi.com/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  Your advices were useful to install everything, I hope the saga will continue.
</p>
]]></content:encoded>
				</item>
	<item>
		<title>by: Martin Capella</title>
		<link>http://benjaminrossi.com/blog/2006/07/22/cacti-on-os-x-part-2/#comment-18</link>
		<pubDate>Fri, 26 Jan 2007 23:35:39 +0000</pubDate>
		<guid>http://benjaminrossi.com/blog/2006/07/22/cacti-on-os-x-part-2/#comment-18</guid>
					<description>This is a great solution for monitoring OS X servers. There is another script floating around with templates of os x as well, but the cpumon.pl for instance, is by far more acurate. 

Thank you.</description>
		<content:encoded><![CDATA[<p>This is a great solution for monitoring OS X servers. There is another script floating around with templates of os x as well, but the cpumon.pl for instance, is by far more acurate. </p>
<p>Thank you.
</p>
]]></content:encoded>
				</item>
</channel>
</rss>
