CAMM: iexplorer 7.0 failure

General discussion about Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

CAMM: iexplorer 7.0 failure

Post by torstentfk »

Update: IE-Version 7
Hi,

one user of our installation on debian complains about a strange error: he is using IExplorer V7.0.5730.13. Using Firefox all is ok.


Torsten
Attachments
camm-ie.gif
camm-ie.gif (26.44 KiB) Viewed 2739 times
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

It depends entirely on the message. I need to see it with all specials symbols. Secret information may close by "XXXX"
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

Post by torstentfk »

oh - sorry - this was a one-time error - so it depends really on the message.
Unfortunately I cannot reproduce this message again - but I iwll take care on the next apperance.
torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

Post by torstentfk »

so next test:
selecting on the left site the type of device, and then the device itself; no double click on the object. I think there are many messages, and one could be the root cause.
You can see the message-text at the screen-shot in the part "....message:" "
Attachments
camm-syslog-json.gif
camm-syslog-json.gif (9.69 KiB) Viewed 2650 times
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

This message is work in my IE 7. Probably another message causes an error. Any error in cacti log ?
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

Post by torstentfk »

gthe wrote:This message is work in my IE 7. Probably another message causes an error. Any error in cacti log ?
also tested with ie6 - might pe proxy - but I removes the proxy setting.
cacti.log shows no error from the plugin.
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

In screen I do not see the full message. It should end with "]".
I propose the following: Add a line in the file camm_db.php: 758
before:

Code: Select all

$rows = db_fetch_assoc($query_string);
echo camm_JEncode(array('success' => true,'total' => $total_rows, "results" =>  $rows));
    }else{
after:

Code: Select all

$rows = db_fetch_assoc($query_string);
echo camm_JEncode(array('success' => true,'total' => $total_rows, "results" =>  $rows));
camm_debug("S php camm_get_syslog_records results=[" . camm_JEncode($rows) . "]");
    }else{
and enable debug mode. After this - reproduce error and send me in pm row from cacti log.
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

Post by torstentfk »

gthe wrote:In screen I do not see the full message. It should end with "]".
I propose the following: Add a line in the file camm_db.php: 758
before:

Code: Select all

$rows = db_fetch_assoc($query_string);
echo camm_JEncode(array('success' => true,'total' => $total_rows, "results" =>  $rows));
    }else{
after:

Code: Select all

$rows = db_fetch_assoc($query_string);
echo camm_JEncode(array('success' => true,'total' => $total_rows, "results" =>  $rows));
camm_debug("S php camm_get_syslog_records results=[" . camm_JEncode($rows) . "]");
    }else{
and enable debug mode. After this - reproduce error and send me in pm row from cacti log.
done - but the output is very big and has private information. and as I enter the camm-plugin I got immediately the error.
Attachments
camm-json.gif
camm-json.gif (23.89 KiB) Viewed 2634 times
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

I try all the combinations of characters from your message - and everything works without this error. Obviously something else is causing this problem.
The only thing that could be done - to reduce the number of rows to a minimum (5) and find the ones that cause this error. After that, I need a line from the log (with the removal of all private information of course).
I need just a string, not the screen.
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

Post by torstentfk »

hope that this could help -

two lines from the log:

Code: Select all

07/27/2010 08:23:11 AM - camm: Poller[0] S php camm_get_syslog_records results=[[{"rule_id":null,"id":"1916843","facility":"local0","priority":"warning","sys_date":"2010-07-22 05:26:59","host":"XX.XX.XX","message":"XXXXXXX1: Net device_id=XXXXXXX1  [Root]system-warning-00002: Cannot connect to e-mail server XX.XX.XX.90. (2010-07-22 05:26:59)00","sourceip":"XX.XX.XX","status":"2","description":"XXXXXXX1","host_template_id":"17","device_id":"697"},{"rule_id":null,"id":"1917655","facility":"local0","priority":"warning","sys_date":"2010-07-22 05:36:59","host":"XX.XX.XX","message":"XXXXXXX1: Net device_id=XXXXXXX1  [Root]system-warning-00002: Cannot connect to e-mail server XX.XX.XX.90. (2010-07-22 05:36:59)00","sourceip":"XX.XX.XX","status":"2","description":"XXXXXXX1","host_template_id":"17","device_id":"697"},{"rule_id":null,"id":"1919163","facility":"local0","priority":"warning","sys_date":"2010-07-22 05:46:59","host":"XX.XX.XX","message":"XXXXXXX1: Net device_id=XXXXXXX1  [Root]system-warning-00002: Cannot connect to e-mail server XX.XX.XX.90. (2010-07-22 05:46:59)00","sourceip":"XX.XX.XX","status":"2","description":"XXXXXXX1","host_template_id":"17","device_id":"697"},{"rule_id":null,"id":"1919165","facility":"local0","priority":"warning","sys_date":"2010-07-22 05:56:59","host":"XX.XX.XX","message":"XXXXXXX1: NetScreen device_id=XXXXXXX1  [Root]system-warning-00002: Cannot connect to e-mail server XX.XX.XX.90. (2010-07-22 05:56:59)00","sourceip":"XX.XX.XX","status":"2","description":"XXXXXXX1","host_template_id":"17","device_id":"697"},{"rule_id":null,"id":"1919995","facility":"local0","priority":"warning","sys_date":"2010-07-22 06:06:59","host":"XX.XX.XX","message":"XXXXXXX1: Net device_id=XXXXXXX1  [Root]system-warning-00002: Cannot connect to e-mail server XX.XX.XX.90. (2010-07-22 06:06:59)00","sourceip":"XX.XX.XX","status":"2","description":"XXXXXXX1","host_template_id":"17","device_id":"697"}]]
and the screenshot.
There is a star (*) in the text - does this cause the problem?
Attachments
camm-json2.gif
camm-json2.gif (19.25 KiB) Viewed 2613 times
User avatar
gthe
Cacti User
Posts: 410
Joined: Sat Jul 29, 2006 1:23 pm
Location: RU

Post by gthe »

Work without error. Maybe in the host description/hostname of a non-standard characters? Ie perhaps this bug only in specific host?
Attachments
camm_ie7.JPG
camm_ie7.JPG (97.72 KiB) Viewed 2607 times
My cacti plugin -[url=http://forums.cacti.net/viewtopic.php?p=156769#156769]CaMM[/url]
[size=75]Sorry for my English. [/size]
torstentfk
Cacti User
Posts: 367
Joined: Tue Apr 05, 2005 9:52 am
Location: Munich, Germany

Post by torstentfk »

hostname contains only normal character. so I suppose it is a problem with the local environment.
Btw: I click on the camm-tab icon in cacti, the pages loades the first time, the json-error is dplayed and the a warning is displayed from the IE "This site causes a delay in loading. Should the script be aborted?". Selecting "NO" and cmm goes on until the next json-object.

As this is only a problem with the IE and not Firefox it is only a minor problem - perhaps with the next patch from Micros$ solved


Torsten
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests