SNMP Get mounted partitions

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

Moderators: Developers, Moderators

Post Reply
andrei_lr
Posts: 2
Joined: Wed Jul 30, 2008 10:04 am

SNMP Get mounted partitions

Post by andrei_lr »

Hi,

I'm striving to generate graphs for mounted partitions and memory/swap with cacti 0.8.7b on a FC3 with php 5.0.3.
Unfortunately cacti ignores those graphs. I don't see in pooler cache any entry to run ss_host_disk.php. Cacti successfully located xml config file for SNMP get mounted partitions in data queries, but I'm not getting any graphs or rrds created.
What should I check to figure out what is wrong?

This is the ouput when I'm running manually the ss_host_disk script.

Code: Select all

/usr/local/bin/php /usr/local/apache2/htdocs/cacti/scripts/ss_host_disk.php 10.98.53.32 38 1:161:500:public:::MD5::DES: index
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
Operating System: Linux FC3 2.6.9 (selinux is disabled)
Webserver: apache 2.0.53
Cacti: 0.8.7b
Spine: N/A
MySQL: 4.1
PHP: 5.0.3
RRDTool : 1.0.49
Net-SNMP: 5.2.1[/code]
User avatar
TheWitness
Developer
Posts: 17007
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

Show the entire "verbose output" from the Data Query screen. Do you see any entries in the Poller Cache? Have you attempted the Script Server Test Procedure documented in the How-To's section?

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
andrei_lr
Posts: 2
Joined: Wed Jul 30, 2008 10:04 am

Post by andrei_lr »

TheWitness wrote:Show the entire "verbose output" from the Data Query screen. Do you see any entries in the Poller Cache? Have you attempted the Script Server Test Procedure documented in the How-To's section?

TheWitness

Code: Select all

+ Running data query [8].
+ Found type = '4 '[script query].
+ Found data query XML file at '/usr/local/apache2/htdocs/cacti/resource/script_server/host_disk.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/local/bin/php -q /usr/local/apache2/htdocs/cacti/scripts/ss_host_disk.php 10.98.53.32 38 1:161:500:public:admin::MD5::DES: index'
+ Executing script query '/usr/local/bin/php -q /usr/local/apache2/htdocs/cacti/scripts/ss_host_disk.php 10.98.53.32 38 1:161:500:public:admin::MD5::DES: query index'
+ Found item [hrStorageIndex='1'] index: 1
+ Found item [hrStorageIndex='2'] index: 2
+ Found item [hrStorageIndex='3'] index: 3
+ Found item [hrStorageIndex='4'] index: 4
+ Found item [hrStorageIndex='5'] index: 5
+ Found item [hrStorageIndex='6'] index: 6
+ Found item [hrStorageIndex='7'] index: 7
+ Found item [hrStorageIndex='8'] index: 8
+ Found item [hrStorageIndex='9'] index: 9
+ Found item [hrStorageIndex='10'] index: 10
+ Found item [hrStorageIndex='11'] index: 11
+ Found item [hrStorageIndex='12'] index: 12
+ Found item [hrStorageIndex='13'] index: 13
+ Found item [hrStorageIndex='14'] index: 14
+ Found item [hrStorageIndex='15'] index: 15
+ Found item [hrStorageIndex='16'] index: 16
+ Found item [hrStorageIndex='17'] index: 17
+ Executing script query '/usr/local/bin/php -q /usr/local/apache2/htdocs/cacti/scripts/ss_host_disk.php 10.98.53.32 38 1:161:500:public:admin::MD5::DES: query description'
+ Found item [hrStorageDescr='Memory Buffers'] index: 1
+ Found item [hrStorageDescr='Real Memory'] index: 2
+ Found item [hrStorageDescr='Swap Space'] index: 3
+ Found item [hrStorageDescr='/'] index: 4
+ Found item [hrStorageDescr='/sys'] index: 5
+ Found item [hrStorageDescr='/proc/bus/usb'] index: 6
+ Found item [hrStorageDescr='/boot'] index: 7
+ Found item [hrStorageDescr='/data'] index: 8
+ Found item [hrStorageDescr='/home'] index: 9
+ Found item [hrStorageDescr='/usr'] index: 10
+ Found item [hrStorageDescr='/var'] index: 11
+ Found item [hrStorageDescr='/proc/sys/fs/binfmt_misc'] index: 12
+ Found item [hrStorageDescr='/var/lib/nfs/rpc_pipefs'] index: 13
+ Found item [hrStorageDescr='/home/shared'] index: 14
+ Found item [hrStorageDescr='/data/XML_LOGS'] index: 15
+ Found item [hrStorageDescr='/data/BACKUPS'] index: 16
+ Found item [hrStorageDescr='/proc/fs/nfsd'] index: 17
+ Executing script query '/usr/local/bin/php -q /usr/local/apache2/htdocs/cacti/scripts/ss_host_disk.php 10.98.53.32 38 1:161:500:public:admin::MD5::DES: query sau'
+ Found item [hrStorageAllocationUnits='1024 Bytes'] index: 1
+ Found item [hrStorageAllocationUnits='1024 Bytes'] index: 2
+ Found item [hrStorageAllocationUnits='1024 Bytes'] index: 3
+ Found item [hrStorageAllocationUnits='4096 Bytes'] index: 4
+ Found item [hrStorageAllocationUnits='4096 Bytes'] index: 5
+ Found item [hrStorageAllocationUnits='4096 Bytes'] index: 6
+ Found item [hrStorageAllocationUnits='1024 Bytes'] index: 7
+ Found item [hrStorageAllocationUnits='4096 Bytes'] index: 8
+ Found item [hrStorageAllocationUnits='4096 Bytes'] index: 9
+ Found item [hrStorageAllocationUnits='4096 Bytes'] index: 10
+ Found item [hrStorageAllocationUnits='4096 Bytes'] index: 11
+ Found item [hrStorageAllocationUnits='4096 Bytes'] index: 12
+ Found item [hrStorageAllocationUnits='4096 Bytes'] index: 13
+ Found item [hrStorageAllocationUnits='4096 Bytes'] index: 14
+ Found item [hrStorageAllocationUnits='4096 Bytes'] index: 15
+ Found item [hrStorageAllocationUnits='4096 Bytes'] index: 16
+ Found item [hrStorageAllocationUnits='4096 Bytes'] index: 17
+ Found data query XML file at '/usr/local/apache2/htdocs/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at '/usr/local/apache2/htdocs/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at '/usr/local/apache2/htdocs/cacti/resource/script_server/host_disk.xml'
+ Found data query XML file at '/usr/local/apache2/htdocs/cacti/resource/script_server/host_disk.xml'
I don't have any entries in poller cache regarding ss_host_disk.php, but I do have entries for monitoring CPU usage, load aveage, memory and eth0 traffic.

Code: Select all

/usr/local/php/bin/php script_server.php 
PHP Script Server has Started - Parent is cmd
/usr/local/apache2/htdocs/cacti/scripts/ss_host_disk.php ss_host_disk 10.98.53.32 38 1:161:500:F0rt1va:::MD5::DES: get index
U
Above is the script server test procedure output. The result should be a number or an array I suppose.
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests