Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4b

Announcements concerning Plugins for Cacti

Moderators: Developers, Moderators

Post Reply
Tekk
Posts: 34
Joined: Wed Aug 16, 2006 11:01 am
Location: France

Post by Tekk »

jjalert wrote:According to the cisco feature navigator, DOM isn't supported on the 3750 platform. The only platforms listed are the 6500 and 7600.

You also have to have the SFP's with part number starting in SFP-, and not GLC- parts.
Ok thanks jjalert for your answer.
User avatar
zorrosam
Cacti User
Posts: 244
Joined: Thu May 03, 2007 3:17 pm
Location: Italy

patch for threshold

Post by zorrosam »

hi all!

in which way i can patch threshold for sfp plugin?

thanks!

sam
sodium
Cacti User
Posts: 115
Joined: Wed Feb 01, 2006 10:29 am

Post by sodium »

I've posted a new version (v2.3) for Cacti 0.8.7

Thold is still not fixed so included a new patch file for thold 0.3.9
User avatar
zorrosam
Cacti User
Posts: 244
Joined: Thu May 03, 2007 3:17 pm
Location: Italy

plugin doesn't work

Post by zorrosam »

Hi all,

after an upgrade on a new server i have a problem with this plugin....

+ Running data query [18].
+ Found type = '6 '[script query].
+ Found data query XML file at '/var/www/cacti/resource/script_server/cisco_sfp.xml'
+ Error parsing XML file into an array.
+ Found data query XML file at '/var/www/cacti/resource/script_server/cisco_sfp.xml'
+ Found data query XML file at '/var/www/cacti/resource/script_server/cisco_sfp.xml'
+ Found data query XML file at '/var/www/cacti/resource/script_server/cisco_sfp.xml'
+ Found data query XML file at '/var/www/cacti/resource/script_server/cisco_sfp.xml'
+ Found data query XML file at '/var/www/cacti/resource/script_server/cisco_sfp.xml'

i have imported all the scripts and xml file .... on my redhat 4 work correctly... in another server with redhat 5 i obtain this error?

any idea?

sam
sodium
Cacti User
Posts: 115
Joined: Wed Feb 01, 2006 10:29 am

Post by sodium »

what you are posting can be correct -- run it again in verbose mode and post again :-)
User avatar
zorrosam
Cacti User
Posts: 244
Joined: Thu May 03, 2007 3:17 pm
Location: Italy

... it was

Post by zorrosam »

it was in verbose mode sir ...
sodium
Cacti User
Posts: 115
Joined: Wed Feb 01, 2006 10:29 am

Post by sodium »

The only way I can see that you get this error is that there are version problems eg you'll have an cisco_sfp.xml from a different distribution then where the ss_65xx_sfp.php came from... (the xml did change)

pleaase check...

what you could do to see if everything is working is starting the plugin by hand see ss_65xx_sfp.php source for details
User avatar
zorrosam
Cacti User
Posts: 244
Joined: Thu May 03, 2007 3:17 pm
Location: Italy

here is the output

Post by zorrosam »

[root@xxxxx scripts]# php -q ss_65xx_sfp.php
PHP Fatal error: Call to undefined function read_config_option() in /var/www/cacti/scripts/ss_65xx_sfp.php on line 53

this is the output ....

mmmm .... really strange ...

in the other server is different.
niobe
Cacti User
Posts: 228
Joined: Mon Mar 10, 2008 6:52 pm
Location: Australia

Post by niobe »

subscribing..
sodium
Cacti User
Posts: 115
Joined: Wed Feb 01, 2006 10:29 am

Post by sodium »

I'm on holliday so can't change the code... but change the header of the php file into this...

$no_http_headers = true;
error_reporting(E_ERROR);

include_once(dirname(__FILE__) . "/../lib/snmp.php");

if (!isset($called_by_script_server)) {
include_once(dirname(__FILE__) . "/../include/config.php");
include_once(dirname(__FILE__) . "/../include/global.php");
array_shift($_SERVER["argv"]);
print call_user_func_array("ss_sfp", $_SERVER["argv"]);

}


If you watch carefully you'll see the line include_once(dirname(__FILE__) . "/../include/global.php"); is added I'll post a new file when back for my holliday
User avatar
zorrosam
Cacti User
Posts: 244
Joined: Thu May 03, 2007 3:17 pm
Location: Italy

another error ....

Post by zorrosam »

yes sir,
no the error is changed:

error in data query for cacti and ....

if i launch manually the script i obtain this :

php -q ss_65xx_sfp.php mil-1 public 2 index :

PHP Warning: Missing argument 10 for cacti_snmp_get(), called in /var/www/cacti/scripts/ss_65xx_sfp.php on line 60 and defined in /var/www/cacti/lib/snmp.php on line 39
PHP Warning: Missing argument 10 for cacti_snmp_get(), called in /var/www/cacti/scripts/ss_65xx_sfp.php on line 61 and defined in /var/www/cacti/lib/snmp.php on line 39
TenGigabitEthernet7/1
PHP Warning: Missing argument 10 for cacti_snmp_get(), called in /var/www/cacti/scripts/ss_65xx_sfp.php on line 60 and defined in /var/www/cacti/lib/snmp.php on line 39
PHP Warning: Missing argument 10 for cacti_snmp_get(), called in /var/www/cacti/scripts/ss_65xx_sfp.php on line 61 and defined in /var/www/cacti/lib/snmp.php on line 39
TenGigabitEthernet7/1
PHP Warning: Missing argument 10 for cacti_snmp_get(), called in /var/www/cacti/scripts/ss_65xx_sfp.php on line 60 and defined in /var/www/cacti/lib/snmp.php on line 39
PHP Warning: Missing argument 10 for cacti_snmp_get(), called in /var/www/cacti/scripts/ss_65xx_sfp.php on line 61 and defined in /var/www/cacti/lib/snmp.php on line 39
TenGigabitEthernet7/3
PHP Warning: Missing argument 10 for cacti_snmp_get(), called in /var/www/cacti/scripts/ss_65xx_sfp.php on line 60 and defined in /var/www/cacti/lib/snmp.php on line 39
PHP Warning: Missing argument 10 for cacti_snmp_get(), called in /var/www/cacti/scripts/ss_65xx_sfp.php on line 61 and defined in /var/www/cacti/lib/snmp.php on line 39
TenGigabitEthernet7/3
PHP Warning: Missing argument 10 for cacti_snmp_get(), called in /var/www/cacti/scripts/ss_65xx_sfp.php on line 60 and defined in /var/www/cacti/lib/snmp.php on line 39
PHP Warning: Missing argument 10 for cacti_snmp_get(), called in /var/www/cacti/scripts/ss_65xx_sfp.php on line 61 and defined in /var/www/cacti/lib/snmp.php on line 39
TenGigabitEthernet7/4
PHP Warning: Missing argument 10 for cacti_snmp_get(), called in /var/www/cacti/scripts/ss_65xx_sfp.php on line 60 and defined in /var/www/cacti/lib/snmp.php on line 39
PHP Warning: Missing argument 10 for cacti_snmp_get(), called in /var/www/cacti/scripts/ss_65xx_sfp.php on line 61 and defined in /var/www/cacti/lib/snmp.php on line 39
TenGigabitEthernet7/4

by
sodium
Cacti User
Posts: 115
Joined: Wed Feb 01, 2006 10:29 am

Post by sodium »

I've uploaded a new version (called it beta since I can not test it here :-) )

Please test.
User avatar
zorrosam
Cacti User
Posts: 244
Joined: Thu May 03, 2007 3:17 pm
Location: Italy

Post by zorrosam »

sodium wrote:I've uploaded a new version (called it beta since I can not test it here :-) )

Please test.

same problems:

1) there's no include_once(dirname(__FILE__) . "/../include/global.php");

2) error in data query on cacti &

[root@leonida scripts]# php -q ss_65xx_sfp.php mil-1 public index
PHP Warning: Missing argument 4 for ss_sfp() in /var/www/cacti/scripts/ss_65xx_sfp.php on line 44
PHP Notice: Undefined variable: cmd in /var/www/cacti/scripts/ss_65xx_sfp.php on line 57
PHP Notice: Undefined variable: cmd in /var/www/cacti/scripts/ss_65xx_sfp.php on line 57
PHP Notice: Undefined variable: cmd in /var/www/cacti/scripts/ss_65xx_sfp.php on line 102

.... try again please ...
User avatar
zorrosam
Cacti User
Posts: 244
Joined: Thu May 03, 2007 3:17 pm
Location: Italy

toc toc

Post by zorrosam »

any info my friend?
sodium
Cacti User
Posts: 115
Joined: Wed Feb 01, 2006 10:29 am

Post by sodium »

After my last PM it became silent on your end... what's up?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest