Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


SNMP Get mounted partitions

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific
Author Message
andrei_lr



Joined: 30 Jul 2008
Posts: 2

PostPosted: Wed Jul 30, 2008 10:19 am    Post subject: SNMP Get mounted partitions Reply with quote

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:

/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]
Back to top
TheWitness
Developer


Joined: 14 May 2002
Posts: 9671
Location: MI, USA

PostPosted: Wed Jul 30, 2008 10:00 pm    Post subject: Reply with quote

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
Back to top
andrei_lr



Joined: 30 Jul 2008
Posts: 2

PostPosted: Thu Jul 31, 2008 8:22 am    Post subject: Reply with quote

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:

+ 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:
/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.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group