mySNMP - SNMP-Tools for Cacti
Moderators: Developers, Moderators
mySNMP - SNMP-Tools for Cacti
My first selfmade plugin!
Its a little but useful tool. i'am using it at work to get information from hundreds of routers.
maybe it is useful for you too.
----[ Requirements
Perl, Perl:DBI, Net-SNMP, Cacti >= 0.8.7
----[ Features
- Simple SNMP-GET and SNMP-WALK-Querys per Webinterface
- Host-filter for customized requests
- Export function to Exel (xls)
- Adding own ODIs to Database
please give me feedback...
regards
kyosanim
Its a little but useful tool. i'am using it at work to get information from hundreds of routers.
maybe it is useful for you too.
----[ Requirements
Perl, Perl:DBI, Net-SNMP, Cacti >= 0.8.7
----[ Features
- Simple SNMP-GET and SNMP-WALK-Querys per Webinterface
- Host-filter for customized requests
- Export function to Exel (xls)
- Adding own ODIs to Database
please give me feedback...
regards
kyosanim
- Attachments
-
- mySNMP.rar
- (35.49 KiB) Downloaded 579 times
Last edited by kyosanim on Fri Feb 22, 2008 2:47 pm, edited 2 times in total.
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Hi
nice plugin
I have an error running it with Cacti 0.8.7b and plugin arch 2.0 :
when going to the "mySNMP" tab, and
when running a walk.
nice plugin
I have an error running it with Cacti 0.8.7b and plugin arch 2.0 :
Code: Select all
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in /home/cactiuser/cacti-0.8.7b/plugins/mySNMP/mySNMP.php on line 269
Code: Select all
Notice: Undefined index: mySNMP.php:actions in /home/cactiuser/cacti-0.8.7b/lib/functions.php on line 1634
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Oops, I forgot to import database.sql
But it returns an error :
But it returns an error :
Code: Select all
$ mysql cacti -p < database.sql
Enter password:
ERROR 1062 (23000) at line 46: Duplicate entry '0' for key 1
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
thanks for your reply...
i think i have a little mistake in the "insert"-part.
i will correct it and post a working one
---update ---
here is the fixed database-file
i think i have a little mistake in the "insert"-part.
i will correct it and post a working one
---update ---
here is the fixed database-file
- Attachments
-
- database.sql.txt
- (2.11 KiB) Downloaded 512 times
- fmangeant
- Cacti Guru User
- Posts: 2345
- Joined: Fri Sep 19, 2003 8:36 am
- Location: Sophia-Antipolis, France
- Contact:
Thanks, the new .sql file imports correctly.
[size=84]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
[color=green]HOWTOs[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15353]Install and configure the Net-SNMP agent for Unix[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=26151]Install and configure the Net-SNMP agent for Windows[/url]
[*][url=http://forums.cacti.net/viewtopic.php?t=28175]Graph multiple servers using an SNMP proxy[/url][/list]
[color=green]Templates[/color] :
[list][*][url=http://forums.cacti.net/viewtopic.php?t=15412]Multiple CPU usage for Linux[/url]
[*][url=http://forums.cacti.net/viewtopic.php?p=125152]Memory & swap usage for Unix[/url][/list][/size]
I get the follwoing error after clicking "Yes" on the page saying "To start the SNMP-Get, press the "yes" button below."
Notice: Undefined variable: version in C:\cacti\plugins\mySNMP\mySNMP.php on line 166
Warning: Cannot modify header information - headers already sent by (output started at C:\cacti\plugins\mySNMP\mySNMP.php:166) in C:\cacti\plugins\mySNMP\mySNMP.php on line 188
What could be the problem.
Cacti is 0.8.7a
Plugin Arch is 1.4
Notice: Undefined variable: version in C:\cacti\plugins\mySNMP\mySNMP.php on line 166
Warning: Cannot modify header information - headers already sent by (output started at C:\cacti\plugins\mySNMP\mySNMP.php:166) in C:\cacti\plugins\mySNMP\mySNMP.php on line 188
What could be the problem.
Cacti is 0.8.7a
Plugin Arch is 1.4
I'm getting this same error.fmangeant wrote:Hi
when running a walk.Code: Select all
Notice: Undefined index: mySNMP.php:actions in /home/cactiuser/cacti-0.8.7b/lib/functions.php on line 1634
Who is online
Users browsing this forum: No registered users and 0 guests