Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
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.
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...
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?
+ 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.
/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.