Ok thanks jjalert for your answer.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.
Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4b
Moderators: Developers, Moderators
patch for threshold
hi all!
in which way i can patch threshold for sfp plugin?
thanks!
sam
in which way i can patch threshold for sfp plugin?
thanks!
sam
plugin doesn't work
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
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
... it was
it was in verbose mode sir ...
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
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
here is the output
[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.
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.
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
$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
another error ....
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
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 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 ...
Who is online
Users browsing this forum: No registered users and 0 guests