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    


plugin for download/upload routers switches configuration
Goto page Previous  1, 2, 3 ... , 24, 25, 26  Next
 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin General
Author Message
StarLog
Cacti User


Joined: 02 Jun 2007
Posts: 128

PostPosted: Thu Mar 27, 2008 5:27 pm    Post subject: Reply with quote

ok will load it this week end.
Back to top
steagu



Joined: 15 Nov 2007
Posts: 37
Location: Manchester, United Kingdom

PostPosted: Fri Mar 28, 2008 8:07 am    Post subject: Reply with quote

Quote:

1/ do you have PHP 4.x ? In PHP 4.x snmp V 2, 2c, 3 do not function very well and some function are missing
2/ can you try with V1 ?
3/ can you check how are the answer of your snmp request. Perhaps you become an answer in not numeric format (in linux snmp-net it 's happend). For Unix I have corrected this.
like for unix :http://forums.cacti.net/viewtopic.php?p=126587#126587. For PHP-Windows the snmp_set_oid_output_format(SNMP_OID_OUTPUT_NUMERIC) function do not exist.
try with snmp-NET:
snmpget -v 1 -c community-string IP-address .1.3.6.1.2.1.1.2.0
or
snmpget -v 1 -c community-string IP-address SysObjectID



My Cacti server died on my so I can't test everything. However, I was running PHP 5.2.5.

Can't check with V1.

With Net SNMP this is what was returned:


C:\WINDOWS\system32>snmpget -v 1 -c RWstring x.x.x.x .1.3.6.1.2.1.1.2.0

Cannot find module (NOTIFICATION-LOG-MIB): At line 1 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 1 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 1 in (none)
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.9.1.324

It looks similar to what was in the unix post you referenced.
Back to top
pepj
Cacti User


Joined: 29 Sep 2005
Posts: 284
Location: switzerland

PostPosted: Sat Mar 29, 2008 4:54 pm    Post subject: Reply with quote

steagu wrote:

With Net SNMP this is what was returned:
C:\WINDOWS\system32>snmpget -v 1 -c RWstring x.x.x.x .1.3.6.1.2.1.1.2.0
Cannot find module (NOTIFICATION-LOG-MIB): At line 1 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 1 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 1 in (none)
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.9.1.324
It looks similar to what was in the unix post you referenced.

Until I find a better solution could you insert in your NET-SNMP/usr/snmp/snmp.conf file
printNumericOids 1
perhaps also
printNumericEnums 1

(In windows the function snmp_set_oid_output_format(SNMP_OID_OUTPUT_NUMERIC); do not exist )
Back to top
pepj
Cacti User


Joined: 29 Sep 2005
Posts: 284
Location: switzerland

PostPosted: Sun Mar 30, 2008 4:16 pm    Post subject: Reply with quote

pepj wrote:
steagu wrote:

With Net SNMP this is what was returned:
C:\WINDOWS\system32>snmpget -v 1 -c RWstring x.x.x.x .1.3.6.1.2.1.1.2.0
Cannot find module (NOTIFICATION-LOG-MIB): At line 1 in (none)
Cannot find module (NET-SNMP-AGENT-MIB): At line 1 in (none)
Cannot find module (DISMAN-EVENT-MIB): At line 1 in (none)
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.9.1.324
It looks similar to what was in the unix post you referenced.

Until I find a better solution could you insert in your NET-SNMP/usr/snmp/snmp.conf file
printNumericOids 1
perhaps also
printNumericEnums 1


(instead to change the NET-SNMP/usr/snmp/snmp.conf --->)
have you ("steagu") already actived NET-SNMP for configmanager (in setting "use netsnmp".) ?
If yes try with this new version of the file snmpclass.php (to copy into sharednetworkclass)



snmpclass.zip
 Description:

Download
 Filename:  snmpclass.zip
 Filesize:  6.1 KB
 Downloaded:  70 Time(s)

Back to top
tviktor



Joined: 01 Apr 2007
Posts: 12

PostPosted: Sun Mar 30, 2008 10:05 pm    Post subject: Reply with quote

Hello!
I have several cisco devices and I want to download configs via scp from suse linux box. When I ran script
Code:
scp user@host:running-config /tmp/1.cfg
it ask a password. So configmanager dont work.
I tried to generate rsa keys on my linux box, but I dont know, how put them on cisco device.
Help please.
Back to top
steagu



Joined: 15 Nov 2007
Posts: 37
Location: Manchester, United Kingdom

PostPosted: Wed Apr 02, 2008 10:41 am    Post subject: Reply with quote

Hi Jean Michel,

I installed your plugin on a totally different server and it worked well. i didn't have to use the new file you posted and was able to do everything with the default files. Thank you!

steve (steagu)
Back to top
StarLog
Cacti User


Joined: 02 Jun 2007
Posts: 128

PostPosted: Wed Apr 02, 2008 7:27 pm    Post subject: Reply with quote

pepj,

I have it installed as I followed your 'manual,

I want to use the PHP tftp method, I have the sharednetworkclass in plugins, and it needed to be in global.php not config.php

I see the tab in the top for upload/download, BUT, I do not see how to initiate a download from the device. nor do I see how to tell what IP and user name/ password to use to access the device.

Can you help.?

Thanks
Back to top
tviktor



Joined: 01 Apr 2007
Posts: 12

PostPosted: Wed Apr 02, 2008 7:48 pm    Post subject: Reply with quote

I found answer to my question
http://forums.cacti.net/viewtopic.php?p=131083#131083

I use putty's pscp under linux, and all is fine
Back to top
steagu



Joined: 15 Nov 2007
Posts: 37
Location: Manchester, United Kingdom

PostPosted: Thu Apr 03, 2008 3:32 am    Post subject: Reply with quote

Quote:

Posted: Thu Apr 03, 2008 12:27 am Post subject:

--------------------------------------------------------------------------------

pepj,

I have it installed as I followed your 'manual,

I want to use the PHP tftp method, I have the sharednetworkclass in plugins, and it needed to be in global.php not config.php

I see the tab in the top for upload/download, BUT, I do not see how to initiate a download from the device. nor do I see how to tell what IP and user name/ password to use to access the device.

Can you help.?





From the "manage configs" bit, you have to click on "Add" in the top right to add your job to for the download. From there its fairly self explanatory but be sure to make it an "active rule". You'll also need to configure a Read/Write SNMP string on the device you are trying to download the config from.
Back to top
StarLog
Cacti User


Joined: 02 Jun 2007
Posts: 128

PostPosted: Thu Apr 03, 2008 8:05 pm    Post subject: Reply with quote

steagu,

Thanks, that was what I missed. Now I am closer to making it work, but I am
getting this error in the logfile, says it is not active, and I have the active checked on the configmanager. BTW, I am working with DELL layer-2 switches to try and get this working.

2008-04-03 22:31:08 Error: download. RESULT: Error: function in developpement ....... not activ.
2008-04-03 22:29:50 create pancho config for configmanager(configid=1) --> /data/configmanagerid1.conf!2008-04-03 22:30:25 create pancho config for configmanager(configid=1) --> /data/configmanagerid1.conf!2008-04-03 22:31:08 INFO: execute the upload/download configuration 1 (/data/configmanagerid1.conf) with php tftp.
2008-04-03 22:27:08 Error: download. RESULT: Error: function in developpement ....... not activ.
2008-04-03 22:27:08 INFO: execute the upload/download configuration 1 (/data/configmanagerid1.conf) with php tftp.
Back to top
StarLog
Cacti User


Joined: 02 Jun 2007
Posts: 128

PostPosted: Fri Apr 04, 2008 10:40 pm    Post subject: Reply with quote

Can someone tell me what is not active.?

2008-04-05 00:47:08 Error: download. RESULT: Error: function in developpement ....... not activ.

2008-04-05 00:47:08 INFO: execute the upload/download configuration 1 (/data/configmanagerid1.conf) with php tftp.


Last edited by StarLog on Thu Apr 10, 2008 6:58 pm; edited 1 time in total
Back to top
steagu



Joined: 15 Nov 2007
Posts: 37
Location: Manchester, United Kingdom

PostPosted: Thu Apr 10, 2008 10:36 am    Post subject: Reply with quote

Hi Starlog,

From your Cacti "Main menu" choose Settings then the "Up/Download Config Manager" tab. Do a print screen and post it here. Did you make any modifications from the default? On my setup, I modified the IP of the TFTP server and then modified the default SNMP parameters.


Also do a print screen of the settings under "manage configs". On that one as well I just modified the TFTP server and the SNMP stuff.

Do you have any other plugins running? Are they working fine?
Back to top
pepj
Cacti User


Joined: 29 Sep 2005
Posts: 284
Location: switzerland

PostPosted: Thu Apr 10, 2008 5:23 pm    Post subject: Reply with quote

StarLog wrote:
Can someone tell me what is not active.?
2008-04-05 00:47:08 Error: download. RESULT: Error: function in developpement ....... not activ.
2008-04-05 00:47:08 INFO: execute the upload/download configuration 1 (/data/configmanagerid1.conf) with php tftp.


1/ are you using NET-SNMP ?
2/ One reason for "in developpement " could be the result of the "sysObjectID" for the MIB-SNMP.
Therefore could you copy and unzip this example-file under sharednetwork, execute it and give me the results?

for example like:
Code:
php D:\Programme\Cacti-NetworkMonitoring\plugins\sharednetworkclass\example9_check_snmp_networkclass.php  -i=IP-address -c=community-string

or
Code:
php D:\Programme\Cacti-NetworkMonitoring\plugins\sharednetworkclass\example9_check_snmp_networkclass.php  -i=IP-address -c=community-string -m=2 -a=D:\Programme\NET-SNMP\usr\bin


Sorry, but the maximum filesize for all my Attachments is reached. I will try to contact the Board Administrator in order to upload the file
Back to top
pepj
Cacti User


Joined: 29 Sep 2005
Posts: 284
Location: switzerland

PostPosted: Fri Apr 11, 2008 2:42 am    Post subject: Reply with quote

pepj wrote:
StarLog wrote:
Can someone tell me what is not active.?
2008-04-05 00:47:08 Error: download. RESULT: Error: function in developpement ....... not activ.
2008-04-05 00:47:08 INFO: execute the upload/download configuration 1 (/data/configmanagerid1.conf) with php tftp.


1/ are you using NET-SNMP ?
2/ One reason for "in developpement " could be the result of the "sysObjectID" for the MIB-SNMP.
Therefore could you copy and unzip this example-file under sharednetwork, execute it and give me the results?

for example like:
Code:
php D:\Programme\Cacti-NetworkMonitoring\plugins\sharednetworkclass\example9_check_snmp_networkclass.php  -i=IP-address -c=community-string

or
Code:
php D:\Programme\Cacti-NetworkMonitoring\plugins\sharednetworkclass\example9_check_snmp_networkclass.php  -i=IP-address -c=community-string -m=2 -a=D:\Programme\NET-SNMP\usr\bin


Sorry, but the maximum filesize for all my Attachments is reached. I will try to contact the Board Administrator in order to upload the file



example9_check_snmp_networkclass.zip
 Description:

Download
 Filename:  example9_check_snmp_networkclass.zip
 Filesize:  3.49 KB
 Downloaded:  53 Time(s)

Back to top
Arrow2005



Joined: 03 Nov 2005
Posts: 29

PostPosted: Fri Apr 11, 2008 7:24 am    Post subject: Reply with quote

Have anybody tryed to install this on a CactiEZ server ???

I did try, but failed. think I have tryed everything

but can“t get it to work
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin General All times are GMT - 5 Hours
Goto page Previous  1, 2, 3 ... , 24, 25, 26  Next
Page 25 of 26

 



Powered by phpBB © 2001, 2005 phpBB Group