Jérôme Fenal | 14 Sep 2003 16:21
Favicon

RE : [cacti-user] Howto change SNMP community string

It is available in 'Polling hosts' settings under Cacti 0.8+.
It was a per-data-source setting before.

HTH,

Jérôme

	-------- Message d'origine-------- 
	De: Mike Pilkington [mailto:MPilkington <at> lgc.com] 
	Date: sam. 9/13/2003 00:00 
	À: 'cacti-user <at> lists.sourceforge.net' 
	Cc: 
	Objet: [cacti-user] Howto change SNMP community string
	
	

	Sorry if this has been addressed in previous posts.  I did a quick search but couldn't find anything on it.  

	 

	I would like to know how to change the SNMP community string for a host.  I don't see a way to do it from the web
interface (I went to Console > SNMP Interfaces and I see the current community string listed, but no way to
edit it.).  Is there a file I can edit to update one of my hosts with a new string?
	
	Thanks for your help!

	-Mike

This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain
proprietary material, confidential information and/or be subject to legal privilege. It should not be
(Continue reading)

Oliver Zimmermann | 14 Sep 2003 22:55
Picon
Favicon

.rrd not generated - prob with $path_cacti ?

Hi  <at>  all,

I'm new to the list and need some help with generating my first rrd's.
Cacti is installed on Debian/Gnu Linux Sid. After struggling some time
with a buggy postinst-script of the distribution, I can start it now on
http://localhost/cacti.

But something seems to be wrong with the cacti-webroot directory.
For example the cronjob only finds related files when I previously cd to
the cacti-dir like this:

*/5 * * * * www-data cd /usr/share/cacti && php4 cmd.php

It does not with the Debian default entry:

*/5 * * * * www-data php4 /usr/share/cacti/cmd.php

...resulting in root-mails beginning with warnings like:

Warning: rrdtool_function_create(include/functions.php): failed to open
stream: No such file or directory in
/usr/share/cacti/include/rrd_functions.php on line 87
...

I suppose there is a relation to my main problem - initial rrd-files
can't be generated from the window "rrdtool Data Source
Configuration". On top is a red warning "CANNOT FIND DATA SOURCE:
/usr/share/cacti/rra/ping_uunet_phi.rrd" for example. When I toggle
"Update .rrd File" an klick "save" the former rrd is not generated.

(Continue reading)

Ian Berry | 15 Sep 2003 01:49

Re: Data-Source "ucd/net snmp - monitored partitions"

I overlooked something fairly obvious from your first message. Your
snmpwalk output appears to come from disks monitored using the host MIB,
not ucd/net SNMP's MIB. To see these partitions in Cacti, you need to
add the "SNMP - Get Mounted Partitions" data query to your host.

> BTW: with debian cacti depends hard on apache 1.3. But it shouldn't. It
> should depend alone on PHP. Leaving it up to PHP to build the dependency
> for http-servers --- PHP runs with apache 1.3, apache 2.x, roxen
> challenger, and others.

The .deb for Cacti is completely 3rd party. I suppose the maintainer for
that needs to be contacted to update the dependences.

Ian

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
Thomas Schweikle | 15 Sep 2003 22:09
Picon
Favicon

Re: Data-Source "ucd/net snmp - monitored partitions"

Hi!

> I overlooked something fairly obvious from your first
> message. Your snmpwalk output appears to come from
> disks monitored using the host MIB, not ucd/net SNMP's
> MIB. To see these partitions in Cacti, you need to
> add the "SNMP - Get Mounted Partitions" data query to
> your host.

No, this does not lead to display partitions mounted (even after clicking 
on the green ring). No display.

Here is what I can question using snmpwalk:
xch4008 <at> xcnlm01s:~> snmpwalk -c public xcnlm00s 
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.1 = "/"
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.2 = "/boot"
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.3 = "/srv/www"
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.4 = 
"/opt/rmserver/Content"
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.5 = 
"/opt/rmserver/Content/extern"
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.6 = 
"/opt/rmserver/Content/intern"
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.7 = "/export"
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.8 = 
"/export/share/images"
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.9 = "/srv/ftp"
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.10 = 
"/srv/ftp/pub/os/gentoo"
(Continue reading)

Thomas Schweikle | 15 Sep 2003 22:12
Picon
Favicon

Re: Data-Source "ucd/net snmp - monitored partitions"

Hi!

> I overlooked something fairly obvious from your first
> message. Your snmpwalk output appears to come from
> disks monitored using the host MIB, not ucd/net SNMP's
> MIB. To see these partitions in Cacti, you need to
> add the "SNMP - Get Mounted Partitions" data query to
> your host.

No, this does not lead to display partitions mounted (even after clicking 
on the green ring). No display.

Here is what I can question using snmpwalk:
xch4008 <at> xcnlm01s:~> snmpwalk -c public xcnlm00s 
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.1 = "/"
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.2 = "/boot"
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.3 = "/srv/www"
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.4 = 
"/opt/rmserver/Content"
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.5 = 
"/opt/rmserver/Content/extern"
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.6 = 
"/opt/rmserver/Content/intern"
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.7 = "/export"
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.8 = 
"/export/share/images"
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.9 = "/srv/ftp"
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.10 = 
"/srv/ftp/pub/os/gentoo"
(Continue reading)

Thomas Schweikle | 15 Sep 2003 22:27
Picon
Favicon

Re: Data-Source "ucd/net snmp - monitored partitions"

Hi!

> I overlooked something fairly obvious from your first
> message. Your snmpwalk output appears to come from
> disks monitored using the host MIB, not ucd/net SNMP's
> MIB. To see these partitions in Cacti, you need to
> add the "SNMP - Get Mounted Partitions" data query to
> your host.

[...]

Think I've found what's wrong:
xch4008 <at> xcnlm01s:/opt/cacti/scripts> php query_host_partitions.php 
10.2.107.200 public index
Content-type: text/html
X-Powered-By: PHP/4.3.1

1
2
3
4
5
6
7
8
9
1
1
1
1
(Continue reading)

Thomas Schweikle | 15 Sep 2003 22:32
Picon
Favicon

Re: Data-Source "ucd/net snmp - monitored partitions"

Hi!

> I overlooked something fairly obvious from your first
> message. Your snmpwalk output appears to come from
> disks monitored using the host MIB, not ucd/net SNMP's
> MIB. To see these partitions in Cacti, you need to
> add the "SNMP - Get Mounted Partitions" data query to
> your host.

No, this does not lead to display partitions mounted (even after clicking 
on the green ring). No display.

Here is what I can question using snmpwalk:
xch4008 <at> xcnlm01s:~> snmpwalk -c public xcnlm00s 
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.1 = "/"
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.2 = "/boot"
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.3 = "/srv/www"
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.4 = 
"/opt/rmserver/Content"
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.5 = 
"/opt/rmserver/Content/extern"
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.6 = 
"/opt/rmserver/Content/intern"
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.7 = "/export"
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.8 = 
"/export/share/images"
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.9 = "/srv/ftp"
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.10 = 
"/srv/ftp/pub/os/gentoo"
(Continue reading)

Thomas Schweikle | 15 Sep 2003 22:32
Picon
Favicon

Re: Data-Source "ucd/net snmp - monitored partitions"

Hi!

> I overlooked something fairly obvious from your first
> message. Your snmpwalk output appears to come from
> disks monitored using the host MIB, not ucd/net SNMP's
> MIB. To see these partitions in Cacti, you need to
> add the "SNMP - Get Mounted Partitions" data query to
> your host.

[...]

Think I've found what's wrong:
xch4008 <at> xcnlm01s:/opt/cacti/scripts> php query_host_partitions.php 
10.2.107.200 public index
Content-type: text/html
X-Powered-By: PHP/4.3.1

1
2
3
4
5
6
7
8
9
1
1
1
1
(Continue reading)

Thomas Schweikle | 15 Sep 2003 22:32
Picon
Favicon

Re: Data-Source "ucd/net snmp - monitored partitions"

Hi!

> I overlooked something fairly obvious from your first
> message. Your snmpwalk output appears to come from
> disks monitored using the host MIB, not ucd/net SNMP's
> MIB. To see these partitions in Cacti, you need to
> add the "SNMP - Get Mounted Partitions" data query to
> your host.

No, this does not lead to display partitions mounted (even after clicking 
on the green ring). No display.

Here is what I can question using snmpwalk:
xch4008 <at> xcnlm01s:~> snmpwalk -c public xcnlm00s 
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.1 = "/"
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.2 = "/boot"
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.3 = "/srv/www"
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.4 = 
"/opt/rmserver/Content"
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.5 = 
"/opt/rmserver/Content/extern"
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.6 = 
"/opt/rmserver/Content/intern"
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.7 = "/export"
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.8 = 
"/export/share/images"
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.9 = "/srv/ftp"
host.hrDevice.hrFSTable.hrFSEntry.hrFSMountPoint.10 = 
"/srv/ftp/pub/os/gentoo"
(Continue reading)

Ian Berry | 16 Sep 2003 01:20

Re: Data-Source "ucd/net snmp - monitored partitions"

On Mon, 2003-09-15 at 16:32, Thomas Schweikle wrote:
> Think I've found what's wrong:

I think I've got the fix. Open up 'scripts/query_host_partitions.php' in
a text editor and scroll to line 23. Now change:

print $return_arr[$i]["value"] . "\n";

to:

print $return_arr[$i] . "\n";

Ian

-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf

Gmane