Linux Partitions

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
fixit2999
Posts: 3
Joined: Mon May 08, 2006 7:21 pm

Linux Partitions

Post by fixit2999 »

When trying to monitor disk usage on a Fedora Core 4 server the snmp query within cacti only see's /dev/sda1 and /dev/sda3 partitions even though the server has other partitions on it. This happens for all FC4 boxes we are trying to monitor. How can we force cacti to see and graph the other partitions.
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

Hi

can you post your /etc/snmp/snmpd.conf ?

Also, what do you get when running this :

Code: Select all

$ snmpwalk -v 1 -c yourcommunity yourhost dsktable
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
fixit2999
Posts: 3
Joined: Mon May 08, 2006 7:21 pm

Re: Linux Partitions

Post by fixit2999 »

here is the verbose query of cacti provides for Unix - Get mounted partitions

+ Running data query [6].
+ Found type = '4 '[script query].
+ Found data query XML file at '/usr/share/cacti/resource/script_queries/unix_disk.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'perl /usr/share/cacti/scripts/query_unix_partitions.pl index'
+ Executing script query 'perl /usr/share/cacti/scripts/query_unix_partitions.pl query device'
+ Found item [dskDevice='/dev/sda3'] index: /dev/sda3
+ Found item [dskDevice='/dev/sda1'] index: /dev/sda1
+ Executing script query 'perl /usr/share/cacti/scripts/query_unix_partitions.pl query mount'
+ Found item [dskMount='/'] index: /dev/sda3
+ Found item [dskMount='/boot'] index: /dev/sda1
+ Found data query XML file at '/usr/share/cacti/resource/script_queries/unix_disk.xml'
+ Found data query XML file at '/usr/share/cacti/resource/script_queries/unix_disk.xml'
+ Found data query XML file at '/usr/share/cacti/resource/script_queries/unix_disk.xml'
+ Found data query XML file at '/usr/share/cacti/resource/script_queries/unix_disk.xml'
+ Found data query XML file at '/usr/share/cacti/resource/script_queries/unix_disk.xml'
+ Found data query XML file at '/usr/share/cacti/resource/script_queries/unix_disk.xml'

when doing the snmpwalk command the only results I get are:
END of MIB

Here is the df -h of the system
/dev/sda3 9.7G 6.1G 3.1G 67% /
/dev/sda1 487M 30M 432M 7% /boot
none 2.0G 0 2.0G 0% /dev/shm
/dev/sda6 76G 52G 21G 72% /home
/dev/sda2 15G 8.7G 5.1G 63% /var
User avatar
fmangeant
Cacti Guru User
Posts: 2345
Joined: Fri Sep 19, 2003 8:36 am
Location: Sophia-Antipolis, France
Contact:

Post by fmangeant »

IMO you should use the "ucd/net" data queries and graph templates.

Modify /etc/snmp/snmpd.conf like this :

Code: Select all

rocommunity public
includeAllDisks
You then will be able to graph CPU, filesystems, network, load average, etc.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
fixit2999
Posts: 3
Joined: Mon May 08, 2006 7:21 pm

Re: Linux Partitions

Post by fixit2999 »

All set! Thank you!
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest