Hi there.
We use CactiEZ (Version 0.8.8a )
Everything works fine, but I've got a little problem.
I add a Windows 2012 server into Cacti and everything looks fine.
But I miss one disk in Cacti (V:\). This is a iSCSI volume, connected to a QNAP.
When I verbose the query Get Mounted Partition, I get this:
Data Query Debug Information
+ Running data query [1].
+ Found type = '6' [Script Query - Script Server].
+ Found data query XML file at '/var/www/html/resource/script_server/host_disk.xml'
+ XML file parsed ok.
+ <arg_num_indexes> missing in XML file, 'Index Count Changed' not supported
+ Executing script for list of indexes '"/usr/bin/php" -q /var/www/html/scripts/ss_host_disk.php 10.238.220.104 2:161:500:L33sd1t33rst:::::: 35 index' Index Count: 5
+ Found index: 1
+ Found index: 2
+ Found index: 3
+ Found index: 4
+ Found index: 5
+ Executing script query '"/usr/bin/php" -q /var/www/html/scripts/ss_host_disk.php 10.238.220.104 2:161:500:L33sd1t33rst:::::: 35 query index'
+ Found item [hrStorageIndex='1'] index: 1
+ Found item [hrStorageIndex='2'] index: 2
+ Found item [hrStorageIndex='4'] index: 4
+ Found item [hrStorageIndex='5'] index: 5
+ Executing script query '"/usr/bin/php" -q /var/www/html/scripts/ss_host_disk.php 10.238.220.104 2:161:500:L33sd1t33rst:::::: 35 query description'
+ Found item [hrStorageDescr='C: Label: Serial Number 8c60c8f5'] index: 1
+ Found item [hrStorageDescr='D: Label: Serial Number 844aadfd'] index: 2
+ Found item [hrStorageDescr='Virtual Memory'] index: 4
+ Found item [hrStorageDescr='Physical Memory'] index: 5
+ Executing script query '"/usr/bin/php" -q /var/www/html/scripts/ss_host_disk.php 10.238.220.104 2:161:500:L33sd1t33rst:::::: 35 query sau'
+ Found item [hrStorageAllocationUnits='4096 Bytes'] index: 1
+ Found item [hrStorageAllocationUnits='4096 Bytes'] index: 2
+ Found item [hrStorageAllocationUnits='65536 Bytes'] index: 4
+ Found item [hrStorageAllocationUnits='65536 Bytes'] index: 5
+ Executing script query '"/usr/bin/php" -q /var/www/html/scripts/ss_host_disk.php 10.238.220.104 2:161:500:L33sd1t33rst:::::: 35 query total'
+ Found item [hrStorageTotalCache='26124543'] index: 1
+ Found item [hrStorageTotalCache='47019263'] index: 2
+ Found item [hrStorageTotalCache='298455'] index: 4
+ Found item [hrStorageTotalCache='261591'] index: 5
I see that the Index is correct:
Index 1 is C:
Index 2 is D:
Index 3 is V:
Index 4 is Physical mem
Index 5 is Virtual Mem
But when Cacti executing script query, index 3 doesn't work.
When I do a SNMP walk on the Windows 2012 server, I get:
iso.3.6.1.2.1.25.2.3.1.1.1 = INTEGER: 1
iso.3.6.1.2.1.25.2.3.1.1.2 = INTEGER: 2
iso.3.6.1.2.1.25.2.3.1.1.3 = INTEGER: 3
iso.3.6.1.2.1.25.2.3.1.1.4 = INTEGER: 4
iso.3.6.1.2.1.25.2.3.1.1.5 = INTEGER: 5
iso.3.6.1.2.1.25.2.3.1.2.1 = OID: iso.3.6.1.2.1.25.2.1.4
iso.3.6.1.2.1.25.2.3.1.2.2 = OID: iso.3.6.1.2.1.25.2.1.4
iso.3.6.1.2.1.25.2.3.1.2.3 = OID: iso.3.6.1.2.1.25.2.1.4
iso.3.6.1.2.1.25.2.3.1.2.4 = OID: iso.3.6.1.2.1.25.2.1.3
iso.3.6.1.2.1.25.2.3.1.2.5 = OID: iso.3.6.1.2.1.25.2.1.2
iso.3.6.1.2.1.25.2.3.1.3.1 = STRING: "C:\\ Label: Serial Number 8c60c8f5"
iso.3.6.1.2.1.25.2.3.1.3.2 = STRING: "D:\\ Label: Serial Number 844aadfd"
iso.3.6.1.2.1.25.2.3.1.3.3 = STRING: "V:\\ Label:Veeam Serial Number c9a462b"
iso.3.6.1.2.1.25.2.3.1.3.4 = STRING: "Virtual Memory"
iso.3.6.1.2.1.25.2.3.1.3.5 = STRING: "Physical Memory"
iso.3.6.1.2.1.25.2.3.1.4.1 = INTEGER: 4096
iso.3.6.1.2.1.25.2.3.1.4.2 = INTEGER: 4096
iso.3.6.1.2.1.25.2.3.1.4.3 = INTEGER: 4096
iso.3.6.1.2.1.25.2.3.1.4.4 = INTEGER: 65536
iso.3.6.1.2.1.25.2.3.1.4.5 = INTEGER: 65536
iso.3.6.1.2.1.25.2.3.1.5.1 = INTEGER: 26124543
iso.3.6.1.2.1.25.2.3.1.5.2 = INTEGER: 47019263
iso.3.6.1.2.1.25.2.3.1.5.3 = INTEGER: -1687978753
iso.3.6.1.2.1.25.2.3.1.5.4 = INTEGER: 298455
iso.3.6.1.2.1.25.2.3.1.5.5 = INTEGER: 261591
iso.3.6.1.2.1.25.2.3.1.6.1 = INTEGER: 5963916
iso.3.6.1.2.1.25.2.3.1.6.2 = INTEGER: 113621
iso.3.6.1.2.1.25.2.3.1.6.3 = INTEGER: 433779980
iso.3.6.1.2.1.25.2.3.1.6.4 = INTEGER: 52883
iso.3.6.1.2.1.25.2.3.1.6.5 = INTEGER: 47187
iso.3.6.1.2.1.25.2.3.1.7.1 = Counter32: 0
iso.3.6.1.2.1.25.2.3.1.7.2 = Counter32: 0
iso.3.6.1.2.1.25.2.3.1.7.3 = Counter32: 0
iso.3.6.1.2.1.25.2.3.1.7.4 = Counter32: 0
iso.3.6.1.2.1.25.2.3.1.7.5 = Counter32: 0
So I think the problem is that I get a - result on oid .3 (iso.3.6.1.2.1.25.2.3.1.5.3 = INTEGER: -1687978753)
The disk is +/- 10 TB big.
Can anybody help me?
Thanks in advance.
Windows 2012 with iscsi volume doesn't appear in Cacti
Moderators: Developers, Moderators
- phalek
- Developer
- Posts: 2838
- Joined: Thu Jan 31, 2008 6:39 am
- Location: Kressbronn, Germany
- Contact:
Re: Windows 2012 with iscsi volume doesn't appear in Cacti
You're issue is with SNMP not being able to handle the large intenger numbers required for the 10 TB disk. You may want to check out the WMI stuff available her in the forum to monitor disk spaces via WMI.
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
Re: Windows 2012 with iscsi volume doesn't appear in Cacti
two problems.
1) ss_host_disk.php isnt even displaying Index 3 in the output.
2) Windows still using 32bit counters which are not large enough and thus, display negative results.
Googling one finds this has been a long standing problem http://forums.cacti.net/viewtopic.php?f=21&t=28713 which in theory was resolved in 0.8.7g per http://bugs.cacti.net/view.php?id=1292. Looks like only the GET command takes into account the negative values, not the QUERY commands.
can you validate by manually running the ss_poller and ss_host_disk script the get command functions properly with index 3?
Once thats done, would be worthwhile creating another bug so the QUERY command also is fixed. make sure to reference either this or the original threads in the bug.
1) ss_host_disk.php isnt even displaying Index 3 in the output.
2) Windows still using 32bit counters which are not large enough and thus, display negative results.
Googling one finds this has been a long standing problem http://forums.cacti.net/viewtopic.php?f=21&t=28713 which in theory was resolved in 0.8.7g per http://bugs.cacti.net/view.php?id=1292. Looks like only the GET command takes into account the negative values, not the QUERY commands.
can you validate by manually running the ss_poller and ss_host_disk script the get command functions properly with index 3?
Once thats done, would be worthwhile creating another bug so the QUERY command also is fixed. make sure to reference either this or the original threads in the bug.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
Re: Windows 2012 with iscsi volume doesn't appear in Cacti
[root@localhost bin]# php -q /var/www/html/scripts/ss_host_disk.php 10.X.X.X 2:161:500:public:::::: 35 index
1
2
3
4
5
[root@localhost bin]# php -q /var/www/html/scripts/ss_host_disk.php 10.X.X.X 2:161:500:public:::::: 35 query index
1!1
2!2
4!4
5!5
I hope this is the informatie you need?
1
2
3
4
5
[root@localhost bin]# php -q /var/www/html/scripts/ss_host_disk.php 10.X.X.X 2:161:500:public:::::: 35 query index
1!1
2!2
4!4
5!5
I hope this is the informatie you need?
-
- Cacti User
- Posts: 141
- Joined: Thu Apr 10, 2008 6:52 pm
Re: Windows 2012 with iscsi volume doesn't appear in Cacti
My large disk seems to work:
Dell PowerEdge R720xd Windows Server 2012
*note: my cacti install might have some tweaks/hacks. it has been around for a while.
Dell PowerEdge R720xd Windows Server 2012
*note: my cacti install might have some tweaks/hacks. it has been around for a while.
Cacti Version - 0.8.7i
Plugin Architecture - 3.1
Poller Type - Cactid v
Server Info - Linux 2.6.9-78.0.13.plus.c4smp
Web Server - Apache/2.0.63 (CentOS)
PHP - 5.1.6
PHP Extensions - libxml, xml, wddx, tokenizer, sysvshm, sysvsem, sysvmsg, standard, SimpleXML, sockets, SPL, shmop, session, Reflection, pspell, posix, mime_magic, iconv, hash, gmp, gettext, ftp, exif, date, curl, ctype, calendar, bz2, zlib, pcre, openssl, apache2handler, gd, ldap, mysql, mysqli, PDO, pdo_mysql, pdo_sqlite, snmp, eAccelerator
MySQL - 5.0.68
RRDTool - 1.2.23
SNMP - 5.1.2
Plugins
- PHP Network Weathermap (weathermap - v0.97a)
Create Aggregate Graphs (aggregate - v0.63)
Large Site Performane Booster for Cacti (boost - v1.5)
RRD Cleaner (rrdclean - v1.1)
Update Checker (update - v0.4)
Host Info (hostinfo - v0.2)
Who is online
Users browsing this forum: No registered users and 3 guests