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 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;
+ 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.
_CL: Big thanks for the SS_ script! I just converted my cacti server from an standard script to the SS and experianced a 600% speed improvement -- it was only 25 data sources too!
commoboy: Your device doesnt appear to support the CISCO-PROCESS-MIB.
The security appliance does not support the following new MIB objects in the cpmCPUTotalTable:
•cpmCPUTotal5secRev
•cpmCPUTotal1minRev
•cpmCPUTotal5minRev
Can you please also support the deprecated MIB objects
cpmCPUTotal5sec
cpmCPUTotal1min
cpmCPUTotal5min?
That'd make the ASAs work with your script. Otherwise it's already very good.
So if the preg_match return 0 when there was no numeric result of the snmp query the OID just gets replaced by the deprecated one. The querey and the preg_match are run afterwards again.
It seems to work, but it also seems to me that this is not the best solution. Maybe you can come up with something less hacked
Christian wrote:
It seems to work, but it also seems to me that this is not the best solution. Maybe you can come up with something less hacked :lol:
Got your PM, Christian. My job has changed and I no longer work with Cacti. I'd try to help you out, but I am overloaded in my current job and don't have any time to spare. I am sorry.