|
|
| Author |
Message |
Lalbee99
Joined: 03 Mar 2008 Posts: 6
|
Posted: Fri May 09, 2008 2:37 pm Post subject: Yet another template with issues |
|
|
I have downloaded & imported the win services templates with no problems. I attempted to create graphs and although I see my query in cacti runs succesfully there are no graphs created.
Data Query Debug Information
+ Running data query [20].
+ Found type = '6 '[script query].
+ Found data query XML file at '/data/htdocs/cacti/resource/script_server/win_services.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/bin/php -q /data/htdocs/cacti/scripts/win_services.php timber.tch.harvard.edu 1:161:500:public:::MD5::DES: index'
+ Executing script query '/bin/php -q /data/htdocs/cacti/scripts/win_services.php timber.tch.harvard.edu 1:161:500:public:::MD5::DES: query index'
+ Found item [ServiceIndex='Server'] index: 6.83.101.114.118.101.114
+ Found item [ServiceIndex='Event Log'] index: 9.69.118.101.110.116.32.76.111.103
+ Found item [ServiceIndex='Net Logon'] index: 9.78.101.116.32.76.111.103.111.110
+ Found item [ServiceIndex='Telephony'] index: 9.84.101.108.101.112.104.111.110.121
+ Found item [ServiceIndex='DNS Client'] index: 10.68.78.83.32.67.108.105.101.110.116
+ Found item [ServiceIndex='DHCP Client'] index: 11.68.72.67.80.32.67.108.105.101.110.116
+ Found item [ServiceIndex='Workstation'] index: 11.87.111.114.107.115.116.97.116.105.111.110
+ Found item [ServiceIndex='GEARSecurity'] index: 12.71.69.65.82.83.101.99.117.114.105.116.121
+ Found item [ServiceIndex='SNMP Service'] index: 12.83.78.77.80.32.83.101.114.118.105.99.101
+ Found item [ServiceIndex='Windows Time'] index: 12.87.105.110.100.111.119.115.32.84.105.109.101
+ Found item [ServiceIndex='Plug and Play'] index: 13.80.108.117.103.32.97.110.100.32.80.108.97.121
+ Found item [ServiceIndex='Print Spooler'] index: 13.80.114.105.110.116.32.83.112.111.111.108.101.114
+ Found item [ServiceIndex='Windows Audio'] index: 13.87.105.110.100.111.119.115.32.65.117.100.105.111
+ Found item [ServiceIndex='IPSEC Services'] index: 14.73.80.83.69.67.32.83.101.114.118.105.99.101.115
+ Found item [ServiceIndex='Task Scheduler'] index: 14.84.97.115.107.32.83.99.104.101.100.117.108.101.114
+ Found item [ServiceIndex='Remote Registry'] index: 15.82.101.109.111.116.101.32.82.101.103.105.115.116.114.121
+ Found item [ServiceIndex='Secondary Logon'] index: 15.83.101.99.111.110.100.97.114.121.32.76.111.103.111.110
+ Found item [ServiceIndex='Computer Browser'] index: 16.67.111.109.112.117.116.101.114.32.66.114.111.119.115.101.114
+ Found item [ServiceIndex='Help and Support'] index: 16.72.101.108.112.32.97.110.100.32.83.117.112.112.111.114.116
+ Found item [ServiceIndex='Pml Driver HPZ12'] index: 16.80.109.108.32.68.114.105.118.101.114.32.72.80.90.49.50
+ Found item [ServiceIndex='Automatic Updates'] index: 17.65.117.116.111.109.97.116.105.99.32.85.112.100.97.116.101.115
+ Found item [ServiceIndex='COM+ Event System'] index: 17.67.79.77.43.32.69.118.101.110.116.32.83.121.115.116.101.109
+ Found item [ServiceIndex='Protected Storage'] index: 17.80.114.111.116.101.99.116.101.100.32.83.116.111.114.97.103.101
+ Found item [ServiceIndex='Terminal Services'] index: 17.84.101.114.109.105.110.97.108.32.83.101.114.118.105.99.101.115
+ Found item [ServiceIndex='Network Connections'] index: 19.78.101.116.119.111.114.107.32.67.111.110.110.101.99.116.105.111.110.115
+ Found item [ServiceIndex='HP Insight NIC Agent'] index: 20.72.80.32.73.110.115.105.103.104.116.32.78.73.67.32.65.103.101.110.116
+ Found item [ServiceIndex='Logical Disk Manager'] index: 20.76.111.103.105.99.97.108.32.68.105.115.107.32.77.97.110.97.103.101.114
+ Found item [ServiceIndex='OpsMgr Health Service'] index: 21.79.112.115.77.103.114.32.72.101.97.108.116.104.32.83.101.114.118.105.99.101
+ Found item [ServiceIndex='TCP/IP NetBIOS Helper'] index: 21.84.67.80.47.73.80.32.78.101.116.66.73.79.83.32.72.101.108.112.101.114
+ Found item [ServiceIndex='Cryptographic Services'] index: 22.67.114.121.112.116.111.103.114.97.112.104.105.99.32.83.101.114.118.105.99.101.115
+ Found item [ServiceIndex='Wireless Configuration'] index: 22.87.105.114.101.108.101.115.115.32.67.111.110.102.105.103.117.114.97.116.105.111.110
+ Found item [ServiceIndex='Error Reporting Service'] index: 23.69.114.114.111.114.32.82.101.112.111.114.116.105.110.103.32.83.101.114.118.105.99.101
+ Found item [ServiceIndex='HP Insight Server Agents'] index: 24.72.80.32.73.110.115.105.103.104.116.32.83.101.114.118.101.114.32.65.103.101.110.116.115
+ Found item [ServiceIndex='HP Version Control Agent'] index: 24.72.80.32.86.101.114.115.105.111.110.32.67.111.110.116.114.111.108.32.65.103.101.110.116
+ Found item [ServiceIndex='McAfee Framework Service'] index: 24.77.99.65.102.101.101.32.70.114.97.109.101.119.111.114.107.32.83.101.114.118.105.99.101
+ Found item [ServiceIndex='NetBackup Client Service'] index: 24.78.101.116.66.97.99.107.117.112.32.67.108.105.101.110.116.32.83.101.114.118.105.99.101
+ Found item [ServiceIndex='Shell Hardware Detection'] index: 24.83.104.101.108.108.32.72.97.114.100.119.97.114.101.32.68.101.116.101.99.116.105.111.110
+ Found item [ServiceIndex='HP Insight Storage Agents'] index: 25.72.80.32.73.110.115.105.103.104.116.32.83.116.111.114.97.103.101.32.65.103.101.110.116.115
+ Found item [ServiceIndex='Security Accounts Manager'] index: 25.83.101.99.117.114.105.116.121.32.65.99.99.111.117.110.116.115.32.77.97.110.97.103.101.114
+ Found item [ServiceIndex='System Event Notification'] index: 25.83.121.115.116.101.109.32.69.118.101.110.116.32.78.111.116.105.102.105.99.97.116.105.111.110
+ Found item [ServiceIndex='Network Associates McShield'] index: 27.78.101.116.119.111.114.107.32.65.115.115.111.99.105.97.116.101.115.32.77.99.83.104.105.101.108.100
+ Found item [ServiceIndex='Remote Procedure Call (RPC)'] index: 27.82.101.109.111.116.101.32.80.114.111.99.101.100.117.114.101.32.67.97.108.108.32.40.82.80.67.41
+ Found item [ServiceIndex='Symantec LiveState Recovery'] index: 27.83.121.109.97.110.116.101.99.32.76.105.118.101.83.116.97.116.101.32.82.101.99.111.118.101.114.121
+ Found item [ServiceIndex='DCOM Server Process Launcher'] index: 28.68.67.79.77.32.83.101.114.118.101.114.32.80.114.111.99.101.115.115.32.76.97.117.110.99.104.101.114
+ Found item [ServiceIndex='HP Insight Foundation Agents'] index: 28.72.80.32.73.110.115.105.103.104.116.32.70.111.117.110.100.97.116.105.111.110.32.65.103.101.110.116.115
+ Found item [ServiceIndex='HP System Management Homepage'] index: 29.72.80.32.83.121.115.116.101.109.32.77.97.110.97.103.101.109.101.110.116.32.72.111.109.101.112.97.103.101
+ Found item [ServiceIndex='Network Associates Task Manager'] index: 31.78.101.116.119.111.114.107.32.65.115.115.111.99.105.97.116.101.115.32.84.97.115.107.32.77.97.110.97.103.101.114
+ Found item [ServiceIndex='Distributed Link Tracking Client'] index: 32.68.105.115.116.114.105.98.117.116.101.100.32.76.105.110.107.32.84.114.97.99.107.105.110.103.32.67.108.105.101.110.116
+ Found item [ServiceIndex='Network Location Awareness (NLA)'] index: 32.78.101.116.119.111.114.107.32.76.111.99.97.116.105.111.110.32.65.119.97.114.101.110.101.115.115.32.40.78.76.65.41
+ Found item [ServiceIndex='Remote Access Connection Manager'] index: 32.82.101.109.111.116.101.32.65.99.99.101.115.115.32.67.111.110.110.101.99.116.105.111.110.32.77.97.110.97.103.101.114
+ Found item [ServiceIndex='HP ProLiant Remote Monitor Service'] index: 34.72.80.32.80.114.111.76.105.97.110.116.32.82.101.109.111.116.101.32.77.111.110.105.116.111.114.32.83.101.114.118.105.99.101
+ Found item [ServiceIndex='Windows Management Instrumentation'] index: 34.87.105.110.100.111.119.115.32.77.97.110.97.103.101.109.101.110.116.32.73.110.115.116.114.117.109.101.110.116.97.116.105.111.110
+ Found item [ServiceIndex='Distributed Transaction Coordinator'] index: 35.68.105.115.116.114.105.98.117.116.101.100.32.84.114.97.110.115.97.99.116.105.111.110.32.67.111.111.114.100.105.110.97.116.111.114
+ Found item [ServiceIndex='HP ProLiant System Shutdown Service'] index: 35.72.80.32.80.114.111.76.105.97.110.116.32.83.121.115.116.101.109.32.83.104.117.116.100.111.119.110.32.83.101.114.118.105.99.101
+ Found item [ServiceIndex='Application Experience Lookup Service'] index: 37.65.112.112.108.105.99.97.116.105.111.110.32.69.120.112.101.114.105.101.110.99.101.32.76.111.111.107.117.112.32.83.101.114.118.105.99.101
+ Found data query XML file at '/data/htdocs/cacti/resource/script_server/win_services.xml'
+ Found data query XML file at '/data/htdocs/cacti/resource/script_server/win_services.xml'
+ Found data query XML file at '/data/htdocs/cacti/resource/script_server/win_services.xml'
+ Found data query XML file at '/data/htdocs/cacti/resource/script_server/win_services.xml'
+ Found data query XML file at '/data/htdocs/cacti/resource/script_server/win_services.xml'
+ Found data query XML file at '/data/htdocs/cacti/resource/script_server/win_services.xml'
+ Found data query XML file at '/data/htdocs/cacti/resource/script_server/win_services.xml'
+ Found data query XML file at '/data/htdocs/cacti/resource/script_server/win_services.xml'
+ Found data query XML file at '/data/htdocs/cacti/resource/script_server/win_services.xml'
+ Found data query XML file at '/data/htdocs/cacti/resource/script_server/win_services.xml'
+ Found data query XML file at '/data/htdocs/cacti/resource/script_server/win_services.xml'
+ Found data query XML file at '/data/htdocs/cacti/resource/script_server/win_services.xml'
+ Found data query XML file at '/data/htdocs/cacti/resource/script_server/win_services.xml'
+ Found data query XML file at '/data/htdocs/cacti/resource/script_server/win_services.xml'
+ Found data query XML file at '/data/htdocs/cacti/resource/script_server/win_services.xml'
+ Found data query XML file at '/data/htdocs/cacti/resource/script_server/win_services.xml'
+ Found data query XML file at '/data/htdocs/cacti/resource/script_server/win_services.xml'
+ Found data query XML file at '/data/htdocs/cacti/resource/script_server/win_services.xml'
+ Found data query XML file at '/data/htdocs/cacti/resource/script_server/win_services.xml'
+ Found data query XML file at '/data/htdocs/cacti/resource/script_server/win_services.xml'
+ Found data query XML file at '/data/htdocs/cacti/resource/script_server/win_services.xml'
+ Found data query XML file at '/data/htdocs/cacti/resource/script_server/win_services.xml'
+ Found data query XML file at '/data/htdocs/cacti/resource/script_server/win_services.xml'
When I attempt to run the query on the command line I receive the following error:
php -q /data/htdocs/cacti/scripts/win_services.php win_services xxxxxx.xxx.xxxxxx.edu public 1 130 get servstate 49.72.101.114.107.105.109.101.114.32.67.97.98.108.101.69.97.115.121.32.46.78.101.116.32.83.99.104.101.100.117.108.101.114.32.67.111.110.116.11
Notice: Undefined offset: 1 in /data/htdocs/cacti/scripts/win_services.php on line 24
Notice: Undefined offset: 2 in /data/htdocs/cacti/scripts/win_services.php on line 25
Notice: Undefined offset: 3 in /data/htdocs/cacti/scripts/win_services.php on line 43
ERROR: Invalid Parameters
I have to start and wonder if any of these templates are ever really tested thoroughly before being posted. This is the second template that I've downloaded from this site with issues. |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12295 Location: Muenster, Germany
|
Posted: Sat May 10, 2008 2:44 pm Post subject: |
|
|
I bet you're running cacti 087 at least. And I fear, that the scripts you're using were not adjusted to wark with cacti's new cacti_snmp_* INTERNAL functions. They have been modified to fully support SNMP V3.
If calling scripts do not provide data for new function parms, errors like those you've reported will occur.
In general, calling INTERNAL functions is not a good idea. They are not provided as an API, so functions parms may change. But they are damn useful, so they're quite often used.
Either change the calling scripts or ask the orginal author to do so
Reinhard |
|
| Back to top |
|
 |
Lalbee99
Joined: 03 Mar 2008 Posts: 6
|
Posted: Mon May 12, 2008 10:08 am Post subject: |
|
|
| I gotta tell you the whole user community template collaborative is nice and all, but there needs to be some type of source control / management on these templates. There was no mention of this version restriction anywhere. I am attempting to load the Monitor plugin and unfortunately this plugin requires templates that don't seem to be updated for this version of cacti. I have experienced similar problems with the TCP template which is required by the Monitor plugin. |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12295 Location: Muenster, Germany
|
Posted: Mon May 12, 2008 12:50 pm Post subject: |
|
|
Right you are.
User contributions are one of the major strenghts of cacti; be it scripts and templates or plugins. We want users to incorporate only standard APIs.
I agree that those functions should be standard APIs.
But in our opinion, support for SNMP V3 was a strong request, so we changed those function calls.
It is not possible for us, to verify each and every script and plugin. This should be done by either the author or the community.
Again, I agree that currently there's no good method to tag scripts and plugins for use with special cacti versions. We will have this in mind when planning the repository.
Reinhard |
|
| Back to top |
|
 |
|