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 try to create graphs for a Windows 2000/XP host where SNMP is reachable on UDP port 10161. CPU, Users, Processes and Traffic is no problem. However beneath 'Data Query [SNMP - Get Mounted Partitions]' it says :
'This data query returned 0 rows, perhaps there was a problem executing this data query. You can run this data query in debug mode to get more information.'
Running debug mode says the following (real IP and Community changed):
+ Running data query [8].
+ Found type = '6 '[script query].
+ Found data query XML file at '/var/www/html/resource/script_server/host_disk.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /var/www/html/scripts/ss_host_disk.php 1.1.1.1 public 2 7 index'
+ Executing script query '/usr/bin/php -q /var/www/html/scripts/ss_host_disk.php 1.1.1.1 public 2 7 query index'
+ Executing script query '/usr/bin/php -q /var/www/html/scripts/ss_host_disk.php 1.1.1.1 public 2 7 query description'
+ Executing script query '/usr/bin/php -q /var/www/html/scripts/ss_host_disk.php 1.1.1.1 public 2 7 query sau'
+ Executing script query '/usr/bin/php -q /var/www/html/scripts/ss_host_disk.php 1.1.1.1 public 2 7 query total'
+ Found data query XML file at '/var/www/html/resource/script_server/host_disk.xml'
+ Found data query XML file at '/var/www/html/resource/script_server/host_disk.xml'
+ Found data query XML file at '/var/www/html/resource/script_server/host_disk.xml'
I see no reference in this debug to my non-standard SNMP-port 10161, how can I correct this ?
Thanks, Ronald
BTW [Win Services] also seems to have the same problem, no reference in the debug to port 10161 :
+ Running data query [10].
+ Found type = '6 '[script query].
+ Found data query XML file at '/var/www/html/resource/script_server/win_services.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /var/www/html/scripts/win_services.php 1.1.1.1 public 2 6 index'
+ Executing script query '/usr/bin/php -q /var/www/html/scripts/win_services.php 1.1.1.1 public 2 6 query index'
+ Found data query XML file at '/var/www/html/resource/script_server/win_services.xml'
+ Found data query XML file at '/var/www/html/resource/script_server/win_services.xml'
+ Found data query XML file at '/var/www/html/resource/script_server/win_services.xml'
I'm quite sure, that this query includes port 161 as a fixed string. You may use my templates at http://forums.cacti.net/viewtopic.php?t=11647 instead or change the script's code
Reinhard
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
+ Running data query [8].
+ Found type = '6 '[script query].
+ Found data query XML file at '/var/www/html/resource/script_server/host_disk.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /var/www/html/scripts/ss_host_disk.php 1.1.1.1 6 2:10161:1000:public:::MD5::[None] index'
+ Executing script query '/usr/bin/php -q /var/www/html/scripts/ss_host_disk.php 1.1.1.1 6 2:10161:1000:public:::MD5::[None] 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
+ Executing script query '/usr/bin/php -q /var/www/html/scripts/ss_host_disk.php 1.1.1.1 6 2:10161:1000:public:::MD5::[None] query description'
+ Found item [hrStorageDescr='A:'] index: 1
+ Found item [hrStorageDescr='C: Label:SYSTEEM Serial Number bc10fc59'] index: 2
+ Found item [hrStorageDescr='D: Label:DATA Serial Number 8ae80dbe'] index: 3
+ Found item [hrStorageDescr='E:'] index: 4
+ Found item [hrStorageDescr='Virtual Memory'] index: 5
+ Found item [hrStorageDescr='Physical Memory'] index: 6
+ Executing script query '/usr/bin/php -q /var/www/html/scripts/ss_host_disk.php 1.1.1.1 6 2:10161:1000:public:::MD5::[None] query sau'
+ Found item [hrStorageAllocationUnits='0 Bytes'] index: 1
+ Found item [hrStorageAllocationUnits='4096 Bytes'] index: 2
+ Found item [hrStorageAllocationUnits='16384 Bytes'] index: 3
+ Found item [hrStorageAllocationUnits='0 Bytes'] index: 4
+ Found item [hrStorageAllocationUnits='65536 Bytes'] index: 5
+ Found item [hrStorageAllocationUnits='65536 Bytes'] index: 6
+ Found data query XML file at '/var/www/html/resource/script_server/host_disk.xml'
+ Found data query XML file at '/var/www/html/resource/script_server/host_disk.xml'
+ Found data query XML file at '/var/www/html/resource/script_server/host_disk.xml'
+ Found data query XML file at '/var/www/html/resource/script_server/host_disk.xml'
+ Found data query XML file at '/var/www/html/resource/script_server/host_disk.xml'
+ Found data query XML file at '/var/www/html/resource/script_server/host_disk.xml'
+ Found data query XML file at '/var/www/html/resource/script_server/host_disk.xml'
Indeed I now see references to my non-standard SNMP-port 10161.
However I still have the problem with Win Services, it seems those scripts were not updated in 0.8.6j.
At least it seems these modifications didn't break things. Win_services on host with SNMP port 161 still work. But hosts with non-standard SNMP port 10161 are still not working. Can anyone assist in getting this to work?
Ronald
Cacti Version - 0.8.6j Plugin Architecture - 1.1 Poller Type - Cactid v0.8.6i Server Info - Linux 2.6.9-42.0.8.ELsmp Web Server - Apache/2.0.52 (CentOS) PHP - 4.3.9 PHP Extensions - yp, xml, wddx, tokenizer, sysvshm, sysvsem, standard, sockets, shmop, session, pspell, posix, pcre, overload, mime_magic, iconv, gmp, gettext, ftp, exif, dio, dbx, dba, curl, ctype, calendar, bz2, bcmath, zlib, openssl, apache2handler, gd, mysql, snmp, eAccelerator MySQL - 4.1.20 RRDTool - 1.2.15 SNMP - 5.1.2 Plugins
Please remember my first post. I tried to tell you exactly this. Again, I'd like to advertise my pure SNMP method which is faster and should work with latest cactid (at least, it works for me)
Reinhard
+ Running data query [12].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/html/resource/snmp_queries/svSvcTable.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.77.1.2.3.1.1'
+ Located input field 'svSvcName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.77.1.2.3.1.1'
+ Found item [svSvcName='Server'] index: 114 [from value]
+ Found item [svSvcName='HTTP SSL'] index: 76 [from value]
+ Found item [svSvcName='Event Log'] index: 103 [from value]
+ Found item [svSvcName='Net Logon'] index: 110 [from value]
+ Found item [svSvcName='Telephony'] index: 121 [from value]
+ Found item [svSvcName='DNS Client'] index: 116 [from value]
+ Found item [svSvcName='DNS Server'] index: 114 [from value]
+ Found item [svSvcName='DHCP Client'] index: 116 [from value]
+ Found item [svSvcName='DHCP Server'] index: 114 [from value]
+ Found item [svSvcName='PDScheduler'] index: 114 [from value]
+ Found item [svSvcName='Workstation'] index: 110 [from value]
+ Found item [svSvcName='SNMP Service'] index: 101 [from value]
+ Found item [svSvcName='Windows Time'] index: 101 [from value]
+ Found item [svSvcName='Plug and Play'] index: 121 [from value]
+ Found item [svSvcName='Print Spooler'] index: 114 [from value]
+ Found item [svSvcName='Windows Audio'] index: 111 [from value]
+ Found item [svSvcName='IPSEC Services'] index: 115 [from value]
+ Found item [svSvcName='Task Scheduler'] index: 114 [from value]
+ Found item [svSvcName='Event Log Watch'] index: 104 [from value]
+ Found item [svSvcName='Remote Registry'] index: 121 [from value]
+ Found item [svSvcName='Secondary Logon'] index: 110 [from value]
+ Found item [svSvcName='Computer Browser'] index: 114 [from value]
+ Found item [svSvcName='Help and Support'] index: 116 [from value]
+ Found item [svSvcName='Automatic Updates'] index: 115 [from value]
+ Found item [svSvcName='COM+ Event System'] index: 109 [from value]
+ Found item [svSvcName='IIS Admin Service'] index: 101 [from value]
+ Found item [svSvcName='Protected Storage'] index: 101 [from value]
+ Found item [svSvcName='Terminal Services'] index: 115 [from value]
+ Found item [svSvcName='Intersite Messaging'] index: 103 [from value]
+ Found item [svSvcName='Network Connections'] index: 115 [from value]
+ Found item [svSvcName='Acronis Group Server'] index: 114 [from value]
+ Found item [svSvcName='Acronis Remote Agent'] index: 116 [from value]
+ Found item [svSvcName='Acronis VSS Provider'] index: 114 [from value]
+ Found item [svSvcName='Certificate Services'] index: 115 [from value]
+ Found item [svSvcName='Logical Disk Manager'] index: 114 [from value]
+ Found item [svSvcName='TCP/IP NetBIOS Helper'] index: 114 [from value]
+ Found item [svSvcName='Cryptographic Services'] index: 115 [from value]
+ Found item [svSvcName='Wireless Configuration'] index: 110 [from value]
+ Found item [svSvcName='COM+ System Application'] index: 110 [from value]
+ Found item [svSvcName='Distributed File System'] index: 109 [from value]
+ Found item [svSvcName='Error Reporting Service'] index: 101 [from value]
+ Found item [svSvcName='File Replication Service'] index: 101 [from value]
+ Found item [svSvcName='McAfee Framework Service'] index: 101 [from value]
+ Found item [svSvcName='Shell Hardware Detection'] index: 110 [from value]
+ Found item [svSvcName='Security Accounts Manager'] index: 114 [from value]
+ Found item [svSvcName='System Event Notification'] index: 110 [from value]
+ Found item [svSvcName='Terminal Server Licensing'] index: 103 [from value]
+ Found item [svSvcName='User Profile Hive Cleanup'] index: 112 [from value]
+ Found item [svSvcName='Acronis Scheduler2 Service'] index: 101 [from value]
+ Found item [svSvcName='Network Associates McShield'] index: 100 [from value]
+ Found item [svSvcName='Remote Procedure Call (RPC)'] index: 41 [from value]
+ Found item [svSvcName='DCOM Server Process Launcher'] index: 114 [from value]
+ Found item [svSvcName='Acronis Backup Server Service'] index: 101 [from value]
+ Found item [svSvcName='CA BrightStor Universal Agent'] index: 116 [from value]
+ Found item [svSvcName='HP System Management Homepage'] index: 101 [from value]
+ Found item [svSvcName='Microsoft Exchange Management'] index: 116 [from value]
+ Found item [svSvcName='CA Backup Agent for Open Files'] index: 115 [from value]
+ Found item [svSvcName='CA BrightStor Discovery Service'] index: 101 [from value]
+ Found item [svSvcName='Internet Authentication Service'] index: 101 [from value]
+ Found item [svSvcName='NT LM Security Support Provider'] index: 114 [from value]
+ Found item [svSvcName='Network Associates Task Manager'] index: 114 [from value]
+ Found item [svSvcName='Kerberos Key Distribution Center'] index: 114 [from value]
+ Found item [svSvcName='Network Location Awareness (NLA)'] index: 41 [from value]
+ Found item [svSvcName='Remote Access Connection Manager'] index: 114 [from value]
+ Found item [svSvcName='Application Layer Gateway Service'] index: 101 [from value]
+ Found item [svSvcName='World Wide Web Publishing Service'] index: 101 [from value]
+ Found item [svSvcName='HP ProLiant Remote Monitor Service'] index: 101 [from value]
+ Found item [svSvcName='Windows Management Instrumentation'] index: 110 [from value]
+ Found item [svSvcName='Distributed Transaction Coordinator'] index: 114 [from value]
+ Found item [svSvcName='HP ProLiant System Shutdown Service'] index: 101 [from value]
+ Found item [svSvcName='Windows Internet Name Service (WINS)'] index: 41 [from value]
+ Found item [svSvcName='Application Experience Lookup Service'] index: 101 [from value]
+ Found item [svSvcName='Windows Firewall/Internet Connection Sharing (ICS)'] index: 41 [from value]
+ Located input field 'svSvcOperatingState' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.77.1.2.3.1.3'
+ Found item [svSvcOperatingState='1'] index: 114 [from value]
+ Found item [svSvcOperatingState='1'] index: 76 [from value]
+ Found item [svSvcOperatingState='1'] index: 103 [from value]
+ Found item [svSvcOperatingState='1'] index: 110 [from value]
+ Found item [svSvcOperatingState='1'] index: 121 [from value]
+ Found item [svSvcOperatingState='1'] index: 116 [from value]
+ Found item [svSvcOperatingState='1'] index: 114 [from value]
+ Found item [svSvcOperatingState='1'] index: 116 [from value]
+ Found item [svSvcOperatingState='1'] index: 114 [from value]
+ Found item [svSvcOperatingState='1'] index: 114 [from value]
+ Found item [svSvcOperatingState='1'] index: 110 [from value]
+ Found item [svSvcOperatingState='1'] index: 101 [from value]
+ Found item [svSvcOperatingState='1'] index: 101 [from value]
+ Found item [svSvcOperatingState='1'] index: 121 [from value]
+ Found item [svSvcOperatingState='1'] index: 114 [from value]
+ Found item [svSvcOperatingState='1'] index: 111 [from value]
+ Found item [svSvcOperatingState='1'] index: 115 [from value]
+ Found item [svSvcOperatingState='1'] index: 114 [from value]
+ Found item [svSvcOperatingState='1'] index: 104 [from value]
+ Found item [svSvcOperatingState='1'] index: 121 [from value]
+ Found item [svSvcOperatingState='1'] index: 110 [from value]
+ Found item [svSvcOperatingState='1'] index: 114 [from value]
+ Found item [svSvcOperatingState='1'] index: 116 [from value]
+ Found item [svSvcOperatingState='1'] index: 115 [from value]
+ Found item [svSvcOperatingState='1'] index: 109 [from value]
+ Found item [svSvcOperatingState='1'] index: 101 [from value]
+ Found item [svSvcOperatingState='1'] index: 101 [from value]
+ Found item [svSvcOperatingState='1'] index: 115 [from value]
+ Found item [svSvcOperatingState='1'] index: 103 [from value]
+ Found item [svSvcOperatingState='1'] index: 115 [from value]
+ Found item [svSvcOperatingState='1'] index: 114 [from value]
+ Found item [svSvcOperatingState='1'] index: 116 [from value]
+ Found item [svSvcOperatingState='1'] index: 114 [from value]
+ Found item [svSvcOperatingState='1'] index: 115 [from value]
+ Found item [svSvcOperatingState='1'] index: 114 [from value]
+ Found item [svSvcOperatingState='1'] index: 114 [from value]
+ Found item [svSvcOperatingState='1'] index: 115 [from value]
+ Found item [svSvcOperatingState='1'] index: 110 [from value]
+ Found item [svSvcOperatingState='1'] index: 110 [from value]
+ Found item [svSvcOperatingState='1'] index: 109 [from value]
+ Found item [svSvcOperatingState='1'] index: 101 [from value]
+ Found item [svSvcOperatingState='1'] index: 101 [from value]
+ Found item [svSvcOperatingState='1'] index: 101 [from value]
+ Found item [svSvcOperatingState='1'] index: 110 [from value]
+ Found item [svSvcOperatingState='1'] index: 114 [from value]
+ Found item [svSvcOperatingState='1'] index: 110 [from value]
+ Found item [svSvcOperatingState='1'] index: 103 [from value]
+ Found item [svSvcOperatingState='1'] index: 112 [from value]
+ Found item [svSvcOperatingState='1'] index: 101 [from value]
+ Found item [svSvcOperatingState='1'] index: 100 [from value]
+ Found item [svSvcOperatingState='1'] index: 41 [from value]
+ Found item [svSvcOperatingState='1'] index: 114 [from value]
+ Found item [svSvcOperatingState='1'] index: 101 [from value]
+ Found item [svSvcOperatingState='1'] index: 116 [from value]
+ Found item [svSvcOperatingState='1'] index: 101 [from value]
+ Found item [svSvcOperatingState='1'] index: 116 [from value]
+ Found item [svSvcOperatingState='1'] index: 115 [from value]
+ Found item [svSvcOperatingState='1'] index: 101 [from value]
+ Found item [svSvcOperatingState='1'] index: 101 [from value]
+ Found item [svSvcOperatingState='1'] index: 114 [from value]
+ Found item [svSvcOperatingState='1'] index: 114 [from value]
+ Found item [svSvcOperatingState='1'] index: 114 [from value]
+ Found item [svSvcOperatingState='1'] index: 41 [from value]
+ Found item [svSvcOperatingState='1'] index: 114 [from value]
+ Found item [svSvcOperatingState='1'] index: 101 [from value]
+ Found item [svSvcOperatingState='1'] index: 101 [from value]
+ Found item [svSvcOperatingState='1'] index: 101 [from value]
+ Found item [svSvcOperatingState='1'] index: 110 [from value]
+ Found item [svSvcOperatingState='1'] index: 114 [from value]
+ Found item [svSvcOperatingState='1'] index: 101 [from value]
+ Found item [svSvcOperatingState='1'] index: 41 [from value]
+ Found item [svSvcOperatingState='1'] index: 101 [from value]
+ Found item [svSvcOperatingState='1'] index: 41 [from value]
+ Found data query XML file at '/var/www/html/resource/snmp_queries/svSvcTable.xml'
+ Found data query XML file at '/var/www/html/resource/snmp_queries/svSvcTable.xml'
+ Found data query XML file at '/var/www/html/resource/snmp_queries/svSvcTable.xml'
At least I see all services, but I also see duplicate index numbers ? (f.e. 41 ? )
When I click Create Graphs for this host I only see 14 services (text dump of page below) ?
Data Query [SNMP - svSvcTable]
Name Operating State
Windows Firewall/Internet Connection Sharing (ICS) 1
HTTP SSL 1
Network Associates McShield 1
Application Experience Lookup Service 1
Terminal Server Licensing 1
Event Log Watch 1
Distributed File System 1
Windows Management Instrumentation 1
Windows Audio 1
User Profile Hive Cleanup 1
Distributed Transaction Coordinator 1
CA Backup Agent for Open Files 1
Microsoft Exchange Management 1
Remote Registry 1
It seems something is wrong in my XML, but I don't see it.
Ahh, sorry, missed the reference to the win services.
Can you please perform an snmpwalk for those OIDs? Are there any duplicates as well? If yes: SNMP agent is buggy; if no: your script is buggy
Reinhard
Ok, fine. But what are you going to retrieve? Please remember, that cacti is used to graph some numbers stored in rrd files? What numbers do you want to store? Services up/down status? Please elaborate
Reinhard
This is NASTY NASTY. You need to use OID Index parse on this. The service name is the primary key. What you are seeing is a series of HEX values that when converted to ASCII spell the name of the service. The only way to fix this is with OID INDEX PARSE.
There are several examples around the forum on how to use it.
TheWitness
True understanding begins only when we realize how little we truly understand...
+ Running data query [10].
+ Found type = '6 '[script query].
+ Found data query XML file at '/var/www/html/resource/script_server/win_services.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /var/www/html/scripts/win_services.php x.x.x.x public 1 10 index'
+ Executing script query '/usr/bin/php -q /var/www/html/scripts/win_services.php x.x.x.x public 1 10 query index'
+ Executing script query '/usr/bin/php -q /var/www/html/scripts/win_services.php x.x.x.x public 1 10 query status'
+ Found data query XML file at '/var/www/html/resource/script_server/win_services.xml'
+ Found data query XML file at '/var/www/html/resource/script_server/win_services.xml'
+ Found data query XML file at '/var/www/html/resource/script_server/win_services.xml'
This data query returned 0 rows, perhaps there was a problem executing this data query. You can run this data query in debug mode to get more information.
On the default 161 port it's all working fine, internal LAN, external hosts, thresholds work nicely etc etc.
I can't imagine there isn't an easy fix after 2 years, I searched till I dropped..