Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Cisco SFP (with DOM) Optical value plugin v0.2.3 + 0.2.4b
Goto page Previous  1, 2
 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin Announcements
Author Message
Tekk



Joined: 16 Aug 2006
Posts: 34
Location: France

PostPosted: Thu Oct 18, 2007 9:30 am    Post subject: Reply with quote

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.
Back to top
zorrosam
Cacti User


Joined: 03 May 2007
Posts: 156
Location: Italy

PostPosted: Tue Dec 18, 2007 5:58 am    Post subject: patch for threshold Reply with quote

hi all!

in which way i can patch threshold for sfp plugin?

thanks!

sam
Back to top
sodium



Joined: 01 Feb 2006
Posts: 24

PostPosted: Fri Jan 25, 2008 5:29 am    Post subject: Reply with quote

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
Back to top
zorrosam
Cacti User


Joined: 03 May 2007
Posts: 156
Location: Italy

PostPosted: Wed Apr 23, 2008 12:48 pm    Post subject: plugin doesn't work Reply with quote

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
Back to top
sodium



Joined: 01 Feb 2006
Posts: 24

PostPosted: Wed Apr 23, 2008 3:17 pm    Post subject: Reply with quote

what you are posting can be correct -- run it again in verbose mode and post again
Back to top
zorrosam
Cacti User


Joined: 03 May 2007
Posts: 156
Location: Italy

PostPosted: Wed Apr 23, 2008 4:32 pm    Post subject: ... it was Reply with quote

it was in verbose mode sir ...
Back to top
sodium



Joined: 01 Feb 2006
Posts: 24

PostPosted: Thu Apr 24, 2008 12:50 am    Post subject: Reply with quote

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
Back to top
zorrosam
Cacti User


Joined: 03 May 2007
Posts: 156
Location: Italy

PostPosted: Thu Apr 24, 2008 4:10 am    Post subject: here is the output Reply with quote

[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.
Back to top
niobe
Cacti User


Joined: 10 Mar 2008
Posts: 125
Location: Australia

PostPosted: Sun Apr 27, 2008 5:28 am    Post subject: Reply with quote

subscribing..
Back to top
sodium



Joined: 01 Feb 2006
Posts: 24

PostPosted: Mon Apr 28, 2008 7:04 am    Post subject: Reply with quote

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
Back to top
zorrosam
Cacti User


Joined: 03 May 2007
Posts: 156
Location: Italy

PostPosted: Mon Apr 28, 2008 10:42 am    Post subject: another error .... Reply with quote

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
Back to top
sodium



Joined: 01 Feb 2006
Posts: 24

PostPosted: Tue Apr 29, 2008 2:14 am    Post subject: Reply with quote

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

Please test.
Back to top
zorrosam
Cacti User


Joined: 03 May 2007
Posts: 156
Location: Italy

PostPosted: Tue Apr 29, 2008 2:39 am    Post subject: Reply with quote

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 ...
Back to top
zorrosam
Cacti User


Joined: 03 May 2007
Posts: 156
Location: Italy

PostPosted: Tue Apr 29, 2008 2:50 pm    Post subject: toc toc Reply with quote

any info my friend?
Back to top
sodium



Joined: 01 Feb 2006
Posts: 24

PostPosted: Fri May 16, 2008 7:26 am    Post subject: Reply with quote

After my last PM it became silent on your end... what's up?
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin Announcements All times are GMT - 5 Hours
Goto page Previous  1, 2
Page 2 of 2

 



Powered by phpBB © 2001, 2005 phpBB Group