Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Improved Cisco CPU Utilization Script Query
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates
Author Message
commoboy



Joined: 21 Mar 2005
Posts: 2
Location: Seattle

PostPosted: Thu Sep 18, 2008 3:58 pm    Post subject: A little nagging issue Reply with quote

I didn't have any problem getting this script installed or the template imported. However, i am not getting any usable data. When I run a verbose query I get the following;

Code:
+ Running data query [10].
+ Found type = '4 '[script query].
+ Found data query XML file at '/usr/share/cacti/site/resource/script_queries/cisco_cpu_util.xml'
+ XML file parsed ok.
+ Executing script for list of indexes '/usr/bin/php -q /usr/share/cacti/site/scripts/cisco_cpu_util.php 69.77.183.62 IntelliOne 2 161 500 "" "" index'
+ Executing script query '/usr/bin/php -q /usr/share/cacti/site/scripts/cisco_cpu_util.php 69.77.183.62 IntelliOne 2 161 500 "" "" query index'
+ Found item [cpuName='No_Such_Instance_currently_exists_at_this_OID'] index: No_Such_Instance_currently_exists_at_this_OID
+ Executing script query '/usr/bin/php -q /usr/share/cacti/site/scripts/cisco_cpu_util.php 69.77.183.62 IntelliOne 2 161 500 "" "" query cpuIndex'
+ Found item [cpuIndex='1'] index: No_Such_Instance_currently_exists_at_this_OID
+ Executing script query '/usr/bin/php -q /usr/share/cacti/site/scripts/cisco_cpu_util.php 69.77.183.62 IntelliOne 2 161 500 "" "" query physIndex'
+ Found item [physIndex='0'] index: No_Such_Instance_currently_exists_at_this_OID
+ Found data query XML file at '/usr/share/cacti/site/resource/script_queries/cisco_cpu_util.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/script_queries/cisco_cpu_util.xml'
+ Found data query XML file at '/usr/share/cacti/site/resource/script_queries/cisco_cpu_util.xml'



Notice the message No_Such_Instance_currently_exists_at_this_OID. This should look like a familiar message as it is returned when you perform a query on an invalid/non-existent OID. However, in this case I can perform an snmpwalk on each of the OIDs in the script and get a successful response. I'm assuming there is an issue within the handoff of the OIDs somewhere in the process and the string is getting munged.

Has anyone else run into this?
Code:
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Scripts and Templates All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 



Powered by phpBB © 2001, 2005 phpBB Group