Get Mounted Partitions
Moderators: Developers, Moderators
Get Mounted Partitions
I am working on a brand new installation.. i setup a remote host to poll, so i can pull stats like the NIC, CPU, memory, and hard drive space.
on every host i attempt, i see 0 on mounted partitions.. im dizzy from staring at config files and such.. anyone got any ideas?
on every host i attempt, i see 0 on mounted partitions.. im dizzy from staring at config files and such.. anyone got any ideas?
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Get Mounted Partitions
Add the following to your snmpd.conf
disk /
disk /tmp
disk /blah
Restart snmpd and the re-index.
disk /
disk /tmp
disk /blah
Restart snmpd and the re-index.
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?
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?
Re: Get Mounted Partitions
forgot to mention, i think.. my cacti runs on windows.
Re: Get Mounted Partitions
FYI my verbose running of the "get mounted partitions" gives me this as a result
Total: 0.000000, Delta: 0.000000, Found data query XML file at 'C:/inetpub/wwwroot/cacti/resource/script_server/host_disk.xml'
Total: 0.000000, Delta: 0.000000, Running Data Query [9].
Total: 0.000000, Delta: 0.000000, Found Type = '6' [Script Query - Script Server].
Total: 0.000000, Delta: 0.000000, XML file parsed ok.
Total: 0.260000, Delta: 0.260000, Executing script for num of indexes '"c:\php\php.exe" -q C:\inetpub\wwwroot\cacti\scripts\ss_host_disk.php "10.2.2.2" "35" "1:161:500:1:10:public::::::" "num_indexes"'
Total: 0.260000, Delta: 0.000000, Found number of indexes: 0
Total: 0.490000, Delta: 0.220000, ERROR: Data Query returned no indexes.
Total: 0.000000, Delta: 0.000000, Found data query XML file at 'C:/inetpub/wwwroot/cacti/resource/script_server/host_disk.xml'
Total: 0.000000, Delta: 0.000000, Running Data Query [9].
Total: 0.000000, Delta: 0.000000, Found Type = '6' [Script Query - Script Server].
Total: 0.000000, Delta: 0.000000, XML file parsed ok.
Total: 0.260000, Delta: 0.260000, Executing script for num of indexes '"c:\php\php.exe" -q C:\inetpub\wwwroot\cacti\scripts\ss_host_disk.php "10.2.2.2" "35" "1:161:500:1:10:public::::::" "num_indexes"'
Total: 0.260000, Delta: 0.000000, Found number of indexes: 0
Total: 0.490000, Delta: 0.220000, ERROR: Data Query returned no indexes.
- TheWitness
- Developer
- Posts: 17007
- Joined: Tue May 14, 2002 5:08 pm
- Location: MI, USA
- Contact:
Re: Get Mounted Partitions
Run that script by hand, and get off windows.
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?
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?
Re: Get Mounted Partitions
Wait, you said this
"so i can pull stats like the NIC, CPU, memory, and hard drive space" but then you showed that you can't pull hard drive space (mounted partitions). So which is it?
"so i can pull stats like the NIC, CPU, memory, and hard drive space" but then you showed that you can't pull hard drive space (mounted partitions). So which is it?
Re: Get Mounted Partitions
i did an SNMP walk using the OIDs in the ss host disk php file, and i got results.
i dont know how to run that PHP script at the command line itself. ill keep digging.
i dont know how to run that PHP script at the command line itself. ill keep digging.
Re: Get Mounted Partitions
cig.. sorry i can pull those stats, EXCEPT hard drive partitions via this version of cacti.. on my previous installation, i had zero problems doing so.
only major difference between my old cacti system and this one.. the only system was win 7, this is win 10.
only major difference between my old cacti system and this one.. the only system was win 7, this is win 10.
Re: Get Mounted Partitions
I think I know where my issue MIGHT be....
I THINK its NET-SNMP being a bugger.. i can run SNMPWALK with OIDs, but not with the scripts in CACTI itself.
That said, i started looking at NET-SNMP to see if i could pinpoint a problem there.
I sometimes take a step back and read someone else's "getting started guide". that said, i was looking at this
http://shallwelearn.com/blog/set-up-net ... n-windows/
and in one of his first steps, he has you run
snmpconf –i
and then continue on with the setup.. etc etc.
this is where i stopped, as i see the error you see below:
Warning: Perl module Win32::Registry is not installed. This module is required to read the SNMPSHAREPATH and SNMPCONFPATH values from the registry. To use snmpconf without the module you need to
define SNMPSHAREPATH and SNMPCONFPATH as environment variables
or use the -c and -I command line options.
anyone here think this might be related to my issue? I tried to find a newer version of NET-SNMP but there isn't a 64 bit installer above 5.50 that i can find.
I THINK its NET-SNMP being a bugger.. i can run SNMPWALK with OIDs, but not with the scripts in CACTI itself.
That said, i started looking at NET-SNMP to see if i could pinpoint a problem there.
I sometimes take a step back and read someone else's "getting started guide". that said, i was looking at this
http://shallwelearn.com/blog/set-up-net ... n-windows/
and in one of his first steps, he has you run
snmpconf –i
and then continue on with the setup.. etc etc.
this is where i stopped, as i see the error you see below:
Warning: Perl module Win32::Registry is not installed. This module is required to read the SNMPSHAREPATH and SNMPCONFPATH values from the registry. To use snmpconf without the module you need to
define SNMPSHAREPATH and SNMPCONFPATH as environment variables
or use the -c and -I command line options.
anyone here think this might be related to my issue? I tried to find a newer version of NET-SNMP but there isn't a 64 bit installer above 5.50 that i can find.
Re: Get Mounted Partitions
I would just install the perl module since net-snmp wants it.
Cacti Developer & Release Manager
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
The Cacti Group
Director
BV IT Solutions Ltd
+--------------------------------------------------------------------------+
Cacti Resources:
Cacti Website (including releases)
Cacti Issues
Cacti Development Releases
Cacti Development Documentation
Re: Get Mounted Partitions
ive been trying to figure out how to do exactly that.
Re: Get Mounted Partitions
ive been trying to figure out how to do exactly that.
Re: Get Mounted Partitions
i went out to activestate.. i didnt see you can add packages like the net-snmp part to it. i didnt have to do that before. creatings that package now
Re: Get Mounted Partitions
i got the perl module installed for net-snmp.
still no joy on trying to get info on the partitions. the verbose query shows:
Total: 0.000000, Delta: 0.000000, Found data query XML file at 'C:/inetpub/wwwroot/cacti/resource/script_server/host_disk.xml'
Total: 0.000000, Delta: 0.000000, Running Data Query [9].
Total: 0.000000, Delta: 0.000000, Found Type = '6' [Script Query - Script Server].
Total: 0.000000, Delta: 0.000000, XML file parsed ok.
Total: 0.220000, Delta: 0.220000, Executing script for num of indexes '"c:\php\php.exe" -q C:\inetpub\wwwroot\cacti\scripts\ss_host_disk.php "server" "8" "1:161:500:1:10:public::::::" "num_indexes"'
Total: 0.220000, Delta: 0.000000, Found number of indexes: 0
Total: 0.470000, Delta: 0.240000, ERROR: Data Query returned no indexes.
If i run SNMPWALK against that host, it returns this.. and that OID i took from the ss_host_disk.php file
smpwalk -v 1 -c public 10.1.2.2 .1.3.6.1.2.1.25.2.3.1 .5
HOST-RESOURCES-MIB::hrStorageSize.1 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageSize.2 = INTEGER: 363991039
HOST-RESOURCES-MIB::hrStorageSize.3 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageSize.4 = INTEGER: 196562
HOST-RESOURCES-MIB::hrStorageSize.5 = INTEGER: 98295
still no joy on trying to get info on the partitions. the verbose query shows:
Total: 0.000000, Delta: 0.000000, Found data query XML file at 'C:/inetpub/wwwroot/cacti/resource/script_server/host_disk.xml'
Total: 0.000000, Delta: 0.000000, Running Data Query [9].
Total: 0.000000, Delta: 0.000000, Found Type = '6' [Script Query - Script Server].
Total: 0.000000, Delta: 0.000000, XML file parsed ok.
Total: 0.220000, Delta: 0.220000, Executing script for num of indexes '"c:\php\php.exe" -q C:\inetpub\wwwroot\cacti\scripts\ss_host_disk.php "server" "8" "1:161:500:1:10:public::::::" "num_indexes"'
Total: 0.220000, Delta: 0.000000, Found number of indexes: 0
Total: 0.470000, Delta: 0.240000, ERROR: Data Query returned no indexes.
If i run SNMPWALK against that host, it returns this.. and that OID i took from the ss_host_disk.php file
smpwalk -v 1 -c public 10.1.2.2 .1.3.6.1.2.1.25.2.3.1 .5
HOST-RESOURCES-MIB::hrStorageSize.1 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageSize.2 = INTEGER: 363991039
HOST-RESOURCES-MIB::hrStorageSize.3 = INTEGER: 0
HOST-RESOURCES-MIB::hrStorageSize.4 = INTEGER: 196562
HOST-RESOURCES-MIB::hrStorageSize.5 = INTEGER: 98295
Re: Get Mounted Partitions
Why does your output say this
"c:\php\php.exe" -q C:\inetpub\wwwroot\cacti\scripts\ss_host_disk.php "server" "8" "1:161:500:1:10:public::::::" "num_indexes"'
That should be an ip address or a resolvable name. Do you have the hostname set correctly in Cacti?
"c:\php\php.exe" -q C:\inetpub\wwwroot\cacti\scripts\ss_host_disk.php "server" "8" "1:161:500:1:10:public::::::" "num_indexes"'
That should be an ip address or a resolvable name. Do you have the hostname set correctly in Cacti?
Who is online
Users browsing this forum: No registered users and 0 guests