Can not Clear Poller Cache

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
BChirhart
Posts: 29
Joined: Fri Jun 20, 2003 6:24 am

Can not Clear Poller Cache

Post by BChirhart »

I have seen several different instances of this error message in other posts... maybe they are all linked.

I recently upgraded (did the upgrade, not fresh install) from 0.8.1 to 0.8.3 and now my hosts do not poll. All of my data seemed to import, including my RRD files since I can view all my graphs, but they are not graphing any new data. Also - when I click on a specific graph, it opens a page with no graphs on it. When I run php cmd.php I get the message that there is nothing in poller cache, which I verified in cacti. I clear poller cache like it tells me to do and I get this error message:

Code: Select all

Warning: implode() [function.implode]: Bad arguments. in C:\Program Files\Apache Group\Apache2\htdocs\cacti\include\snmp_functions.php on line 51
I also got this error message in the last step of the install. PLEASE HELP!!!!!

Thanks -
Brian
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

In case you have not already seen this, can you try the suggestion in this post and report back?

http://www.raxnet.net/board/viewtopic.php?p=8185#8185

-Ian
BChirhart
Posts: 29
Joined: Fri Jun 20, 2003 6:24 am

Post by BChirhart »

Ian - Here is the response - Sorry for the long post:
Warning: implode() [function.implode]: Bad arguments. in C:\Program Files\Apache Group\Apache2\htdocs\cacti\include\snmp_functions.php on line 52
GOING TO PARSE:
So it does say going to parse.

I have been trying several things the last few days, and I do have a poller cache now, but still no new data. It is almost like SNMP is not working. I don't say that with 100% certainty though - because it seems to be working on "some" interfaces. But I still get no new data on those graphs either. So here is what my php cmd.php looks like now. The initial cacti is the bat file I run:

Code: Select all

C:\>cacti

C:\>c:\php\php.exe "C:\Program Files\Apache Group\Apache2\htdocs\cacti\cmd.php"
Content-type: text/html
X-Powered-By: PHP/4.3.0



'cat' is not recognized as an internal or external command,
operable program or batch file.
command: perl C:/Progra~1/Apache~1/Apache2/htdocs/cacti/scripts/linux_memory.pl MemFree:, output:
'cat' is not recognized as an internal or external command,
operable program or batch file.
command: perl C:/Progra~1/Apache~1/Apache2/htdocs/cacti/scripts/linux_memory.pl SwapFree:, output:
'uptime' is not recognized as an internal or external command,
operable program or batch file.
MUTLI command: perl C:/Progra~1/Apache~1/Apache2/htdocs/cacti/scripts/loadavg_multi.pl, output: 1min: 5min: 10min:
MULTI expansion: found fieldid: 17, found rrdname: load_1min, value:
MULTI expansion: found fieldid: 18, found rrdname: load_5min, value:
MULTI expansion: found fieldid: 19, found rrdname: load_15min, value:
'who' is not recognized as an internal or external command,
operable program or batch file.
command: perl C:/Progra~1/Apache~1/Apache2/htdocs/cacti/scripts/unix_users.pl, output:
'ps' is not recognized as an internal or external command,
operable program or batch file.
command: perl C:/Progra~1/Apache~1/Apache2/htdocs/cacti/scripts/unix_processes.pl, output:
snmp: , dsname: SysUpTime, oid: , value:
snmp: 172.16.200.1, dsname: 5min_cpu, oid: .1.3.6.1.4.1.9.9.109.1.1.1.1.5.1, value: 40
snmp: 172.16.200.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, value: 0
snmp: 172.16.200.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, value: 0
snmp: 172.16.200.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.10, value: No Such Instance currently exists
snmp: 172.16.200.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.10, value: No Such Instance currently exists
snmp: 172.16.200.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.11, value: No Such Instance currently exists
snmp: 172.16.200.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.11, value: No Such Instance currently exists
snmp: 172.16.200.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.12, value: No Such Instance currently exists
snmp: 172.16.200.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.12, value: No Such Instance currently exists
snmp: 172.16.200.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.13, value: No Such Instance currently exists
snmp: 172.16.200.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.13, value: No Such Instance currently exists
snmp: 172.16.200.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.14, value: No Such Instance currently exists
snmp: 172.16.200.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.14, value: No Such Instance currently exists
snmp: 172.16.200.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.15, value: No Such Instance currently exists
snmp: 172.16.200.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.15, value: No Such Instance currently exists
snmp: 172.16.200.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.16, value: No Such Instance currently exists
snmp: 172.16.200.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.16, value: No Such Instance currently exists
snmp: 172.16.200.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.17, value: No Such Instance currently exists
snmp: 172.16.200.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.17, value: No Such Instance currently exists
snmp: 172.16.200.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.18, value: 1163736264
snmp: 172.16.200.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.18, value: 1769906731
snmp: 172.16.200.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.19, value: 1506319187
snmp: 172.16.200.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.19, value: 1057515345
snmp: 172.16.200.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, value: 144906704
snmp: 172.16.200.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.2, value: 65313297
snmp: 172.16.200.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.20, value: 0
snmp: 172.16.200.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.20, value: 0
snmp: 172.16.200.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.21, value: 0
snmp: 172.16.200.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.21, value: 0
snmp: 172.16.200.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.22, value: 2017043869
snmp: 172.16.200.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.22, value: 1463933235
snmp: 172.16.200.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.24, value: 0
snmp: 172.16.200.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.24, value: 0
snmp: 172.16.200.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.25, value: 3031554523
snmp: 172.16.200.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.25, value: 3798251460
snmp: 172.16.200.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.26, value: 2758814032
snmp: 172.16.200.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.26, value: 2166595623
snmp: 172.16.200.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.27, value: 516206435
snmp: 172.16.200.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.27, value: 4170142895
snmp: 172.16.200.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.3, value: 813869847
snmp: 172.16.200.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.3, value: 503520441
snmp: 172.16.200.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.4, value: 300557910
snmp: 172.16.200.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.4, value: 1118911373
snmp: 172.16.200.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.5, value: 2219982401
snmp: 172.16.200.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.5, value: 312394891
snmp: 172.16.200.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.6, value: 0
snmp: 172.16.200.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.6, value: 0
snmp: 172.16.200.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.7, value: 0
snmp: 172.16.200.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.7, value: 0
snmp: 172.16.200.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.8, value: 0
snmp: 172.16.200.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.8, value: 0
snmp: 172.16.200.14, dsname: 5min_cpu, oid: .1.3.6.1.4.1.9.9.109.1.1.1.1.5.1, value: 4
Timeout: No Response from 192.168.36.1.
snmp: 192.168.36.1, dsname: traffic_out, oid: .1.3.6.1.2.1.2.2.1.16.1, value:
Timeout: No Response from 192.168.36.1.
snmp: 192.168.36.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.1, value:
Timeout: No Response from 192.168.36.1.
snmp: 192.168.36.1, dsname: traffic_in, oid: .1.3.6.1.2.1.2.2.1.10.2, value:
^CTerminate batch job (Y/N)? ^Cy

C:\>
I see that I am getting values on some interfaces, but not all - Regardless, even the interfaces I get responses to are not added to the RRD files for some reason. Also the interfaces that are claiming no response are currently being graphed in our old MRTG box. I'm stumped!! I do notice errors at the top. What is CAT, WHO and PS? Sounds liek I have a path problem, but I can't see where...

Thank you so much for looking at this.
BChirhart
Posts: 29
Joined: Fri Jun 20, 2003 6:24 am

Post by BChirhart »

Ian - one other thing...

My Cisco CPU graphs are working fine as are my In/Out error graphs. It just seems to be traffic. Also ifAlias doesn't seem to work. My titles look like this: 132nd & Center 2620 - Errors - |query_ifAlias| - The ifAlias does not seem to resolve.
BChirhart
Posts: 29
Joined: Fri Jun 20, 2003 6:24 am

Post by BChirhart »

Her is a little more info about what my CMD.PHP is doing. I added the following code to lines 43 and 44 of cmd.php just as a debug measure:

Code: Select all

print "\n";
print $output . "= cacti_snmp_get(" . $item["management_ip"] . "," . $item["snmp_community"] . "," . $item["arg1"] . "," . $item["snmp_version"] . "," . $item["snmp_username"] . "," . $item["snmp_password"] . ")\n";
This allows me to see exactly what SNMP command is being sent to the device. The errors of "No such interface exist" are probably correct. I can not manually do an SNMPGET on that Oid. But on the Timeout errors, I can do a "get" on those and they resolve - here are the results of that:
Timeout: No Response from 192.168.132.10.

= cacti_snmp_get(192.168.132.10,public,.1.3.6.1.4.1.318.1.1.1.4.2.3.0,2,,)
snmp: 192.168.132.10, dsname: Load, oid: .1.3.6.1.4.1.318.1.1.1.4.2.3.0, value:
^CTerminate batch job (Y/N)? ^Cy
and here is my manual get
C:\>snmpget 192.168.132.10 public .1.3.6.1.4.1.318.1.1.1.4.2.3.0
enterprises.318.1.1.1.4.2.3.0 = Gauge32: 44
I still believe that this is something that I jacked up, but I don't know what to start looking at now. Any suggestions? thx!
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

If you are currently using PHP's builtin SNMP, you may want to try the following. Open up 'include/config.php' in a text editor and change line 40 from:

Code: Select all

$config["php_snmp_support"] = function_exists("snmpget");
to:

Code: Select all

$config["php_snmp_support"] = false;
This will force Cacti to call the snmpwalk and snmpget binaries if it isn't doing that already. I could be wrong, but I have never remember seeing snmpget say "No Such Instance currently exists".

-Ian
BChirhart
Posts: 29
Joined: Fri Jun 20, 2003 6:24 am

Post by BChirhart »

Ugh - many bad things after entering that line..... :o

This occured just trying to go to the webpage. No login prompt or anything.

Long post ahead....

Notice: Undefined index: include_path in C:\Program Files\Apache Group\Apache2\htdocs\cacti\include\config.php on line 68

Warning: main(/functions.php) [function.main]: failed to create stream: No such file or directory in C:\Program Files\Apache Group\Apache2\htdocs\cacti\include\config.php on line 68

Warning: main() [function.main]: Failed opening '/functions.php' for inclusion (include_path='.;c:\php4\pear') in C:\Program Files\Apache Group\Apache2\htdocs\cacti\include\config.php on line 68

Notice: Undefined index: include_path in C:\Program Files\Apache Group\Apache2\htdocs\cacti\include\config.php on line 69

Warning: main(/database.php) [function.main]: failed to create stream: No such file or directory in C:\Program Files\Apache Group\Apache2\htdocs\cacti\include\config.php on line 69

Warning: main() [function.main]: Failed opening '/database.php' for inclusion (include_path='.;c:\php4\pear') in C:\Program Files\Apache Group\Apache2\htdocs\cacti\include\config.php on line 69

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\Program Files\Apache Group\Apache2\htdocs\cacti\include\config.php:68) in C:\Program Files\Apache Group\Apache2\htdocs\cacti\include\auth.php on line 40

Fatal error: Call to undefined function: db_fetch_cell() in C:\Program Files\Apache Group\Apache2\htdocs\cacti\include\auth.php on line 43
I also don't know where the "No such interface currently exists" error is coming from - but our routers here change quite a bit - especially the large ones, so those error messages could be correct. When I do an SNMPGet on that Oid I get:
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: interfaces.ifTable.ifEntry.ifInOctets.10
So I know that it is a bad interface on my part - but I don't get the "No such interface..." error message. Where it is coming from is a mystery!! :-?
raX
Lead Developer
Posts: 2243
Joined: Sat Oct 13, 2001 7:00 pm
Location: Carlisle, PA
Contact:

Post by raX »

It looks like you might have changed the incorrect line in 'include/config.php'. I was basing "line 40" on version 0.8.3a, so that may not be correct for you. However you should see a line that says:

Code: Select all

$config["php_snmp_support"] = function_exists("snmpget");
This line can be changed to:

Code: Select all

$config["php_snmp_support"] = false;
If done correctly, I guarantee that you should not see this error.

-Ian
BChirhart
Posts: 29
Joined: Fri Jun 20, 2003 6:24 am

Post by BChirhart »

My bad - Correct, I had replaced the wrong line.

With the correct line remarked and the replacement line installed, I get:

Code: Select all

= cacti_snmp_get(192.168.132.10,public,.1.3.6.1.4.1.318.1.1.1.4.2.2.0,2,,)
snmp: 192.168.132.10, dsname: BatOutputHertz, oid: .1.3.6.1.4.1.318.1.1.1.4.2.2.0, value:
Timeout: No Response from 192.168.132.10.
snmpget is:

Code: Select all

C:\>snmpget 192.168.132.10 public .1.3.6.1.4.1.318.1.1.1.4.2.2.0
enterprises.318.1.1.1.4.2.2.0 = Gauge32: 60
I hope the error that I was not supposed to get, was not "Timeout: No Response from 192.168.132.10."
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest