Cacti and Nagios integration dashboard
Moderators: Developers, Moderators
I wrote and maintain this project, Smux, I am telling you the class is a part of the distribution.
http://cacinda.sf.net/
I certainly believe there is a Net_SNMP class, which means I may have to rethink my naming convention to make sure files under Cacinda do not clash with non-Cacinda classes.
http://cacinda.sf.net/
I certainly believe there is a Net_SNMP class, which means I may have to rethink my naming convention to make sure files under Cacinda do not clash with non-Cacinda classes.
[url=http://www.semintelligent.com/blog]Max Schubert a.k.a perldork[/url]
[url=http://wwd-hosting.net/ensim/]Ensim scripts and utilities (GPL)[/url] - [url=http://nmap-scanner.sf.net]Perform nmap scans with perl (GPL)[/url]
[url=http://lmf.sf.net]Perl-based log monitoring framework(GPL)[/url]
[url=http://wwd-hosting.net/ensim/]Ensim scripts and utilities (GPL)[/url] - [url=http://nmap-scanner.sf.net]Perform nmap scans with perl (GPL)[/url]
[url=http://lmf.sf.net]Perl-based log monitoring framework(GPL)[/url]
Ok, you are getting the error
Failed opening 'templates/Unix_Net_SNMP.php'
this is a bug in my code.
Try replacing the code for output_page($page) in index.php with this
and let me know if you get a different result, you should.
Failed opening 'templates/Unix_Net_SNMP.php'
this is a bug in my code.
Try replacing the code for output_page($page) in index.php with this
Code: Select all
function output_page($page) {
if (! isset($_REQUEST['draw'])) {
include_once(dirname(__FILE__) . "/templates/header.php");
}
include_once(dirname(__FILE__) . "/templates/{$page}.php");
if (! isset($_REQUEST['draw'])) {
include_once(dirname(__FILE__) . "/templates/footer.php");
}
}
[url=http://www.semintelligent.com/blog]Max Schubert a.k.a perldork[/url]
[url=http://wwd-hosting.net/ensim/]Ensim scripts and utilities (GPL)[/url] - [url=http://nmap-scanner.sf.net]Perform nmap scans with perl (GPL)[/url]
[url=http://lmf.sf.net]Perl-based log monitoring framework(GPL)[/url]
[url=http://wwd-hosting.net/ensim/]Ensim scripts and utilities (GPL)[/url] - [url=http://nmap-scanner.sf.net]Perform nmap scans with perl (GPL)[/url]
[url=http://lmf.sf.net]Perl-based log monitoring framework(GPL)[/url]
Result:
Code: Select all
Warning: include_once(/home/sysmon/public_html/cacinda/templates/Unix_Net_SNMP.php) [function.include-once]: failed to open stream: No such file or directory in /home/sysmon/public_html/cacinda/index.php on line 12
Warning: include_once() [function.include]: Failed opening '/home/sysmon/public_html/cacinda/templates/Unix_Net_SNMP.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sysmon/public_html/cacinda/index.php on line 12
Oh, there`s a error in name in your code...Smux wrote:Result:
Code: Select all
Warning: include_once(/home/sysmon/public_html/cacinda/templates/Unix_Net_SNMP.php) [function.include-once]: failed to open stream: No such file or directory in /home/sysmon/public_html/cacinda/index.php on line 12 Warning: include_once() [function.include]: Failed opening '/home/sysmon/public_html/cacinda/templates/Unix_Net_SNMP.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/sysmon/public_html/cacinda/index.php on line 12
sysmon@sysmon.forbrazil.com.br [~/www/cacinda/templates]# ls
./ footer.php* unix_net_snmp.php* windows_ms_snmp.php*
../ header.php* unix_sysedge.php*
cisco_ios.php* no_such_class.php* welcome.php*
One more change:
Find the the code
in index.php and replace it with
Find the the code
Code: Select all
output_page(get_class($snmp));
Code: Select all
output_page(strtolower(get_class($snmp)));
[url=http://www.semintelligent.com/blog]Max Schubert a.k.a perldork[/url]
[url=http://wwd-hosting.net/ensim/]Ensim scripts and utilities (GPL)[/url] - [url=http://nmap-scanner.sf.net]Perform nmap scans with perl (GPL)[/url]
[url=http://lmf.sf.net]Perl-based log monitoring framework(GPL)[/url]
[url=http://wwd-hosting.net/ensim/]Ensim scripts and utilities (GPL)[/url] - [url=http://nmap-scanner.sf.net]Perform nmap scans with perl (GPL)[/url]
[url=http://lmf.sf.net]Perl-based log monitoring framework(GPL)[/url]
Hi, you are welcome, changes checked into CVS for the next release .Smux wrote:Holy shit!! There is OK now.
Thank you very much perldork!!
Code: Select all
Fatal error: Call to undefined function imagettfbbox() in /usr/local/lib/php/Image/Canvas/GD.php on line 1240
[url=http://www.semintelligent.com/blog]Max Schubert a.k.a perldork[/url]
[url=http://wwd-hosting.net/ensim/]Ensim scripts and utilities (GPL)[/url] - [url=http://nmap-scanner.sf.net]Perform nmap scans with perl (GPL)[/url]
[url=http://lmf.sf.net]Perl-based log monitoring framework(GPL)[/url]
[url=http://wwd-hosting.net/ensim/]Ensim scripts and utilities (GPL)[/url] - [url=http://nmap-scanner.sf.net]Perform nmap scans with perl (GPL)[/url]
[url=http://lmf.sf.net]Perl-based log monitoring framework(GPL)[/url]
Yes, Im trying to install, see: http://cprf03.forbrazil.com.br/teste.php but i dont know why my compilation dont active this extension module.
Edit: i have post the wrong link heh. I solve my problem!!
Perldork,
I found a new error:
I dont know solve this, my internet already is very unstable (sucks). Later I come back to work in this.
Thank you very much.
Edit: i have post the wrong link heh. I solve my problem!!
Perldork,
I found a new error:
Code: Select all
Warning: preg_replace() [function.preg-replace]: Empty regular expression in /home/sysmon/public_html/cacinda/inc/functions.php on line 138
Thank you very much.
Hey perldork
How to work $NAGIOS_HOST_MATCH and $NAGIOS_HOST_REPLACE ??
Smux,
1) Do your Nagios host names equal the names you use in Cacti? If they do, then you do not need to put anything in either of those variables.
I have just added code to index.php and checked it into CVS that will make sure that if you do not define them you do not see PHP warnings about empty regular expressions, thanks for reporting that.
1) Do your Nagios host names equal the names you use in Cacti? If they do, then you do not need to put anything in either of those variables.
I have just added code to index.php and checked it into CVS that will make sure that if you do not define them you do not see PHP warnings about empty regular expressions, thanks for reporting that.
[url=http://www.semintelligent.com/blog]Max Schubert a.k.a perldork[/url]
[url=http://wwd-hosting.net/ensim/]Ensim scripts and utilities (GPL)[/url] - [url=http://nmap-scanner.sf.net]Perform nmap scans with perl (GPL)[/url]
[url=http://lmf.sf.net]Perl-based log monitoring framework(GPL)[/url]
[url=http://wwd-hosting.net/ensim/]Ensim scripts and utilities (GPL)[/url] - [url=http://nmap-scanner.sf.net]Perform nmap scans with perl (GPL)[/url]
[url=http://lmf.sf.net]Perl-based log monitoring framework(GPL)[/url]
Cacti->Nagios Integration
So I'm several months behind the curve but I wanted to see if this plug-in was available somewhere. Couldn't find on SourceForge or the web site.
This is an AWESOME add-on. I've got several hundred servers, Filers, Routers, switches.. blah blah that need some pretty pictures to go along with the monotonous tone of Nagios (although very powerful
Thanks,
-st
This is an AWESOME add-on. I've got several hundred servers, Filers, Routers, switches.. blah blah that need some pretty pictures to go along with the monotonous tone of Nagios (although very powerful
Thanks,
-st
Re: Cacti->Nagios Integration
Hi,
I will create a .tgz release this week or next week for the current code base.
My next goal with the code is to make generating graphical widgets (graph, pie, etc) easier as a code user.
I have been reworking the initial code for the add-on, you can currently check it out using anonymous CVS from the sourceforge.net site. I really want this to be a Cacti plugin but still haven't had time to do that .. sorry.sterpstra wrote:So I'm several months behind the curve but I wanted to see if this plug-in was available somewhere. Couldn't find on SourceForge or the web site.
This is an AWESOME add-on. I've got several hundred servers, Filers, Routers, switches.. blah blah that need some pretty pictures to go along with the monotonous tone of Nagios (although very powerful
Thanks,
-st
I will create a .tgz release this week or next week for the current code base.
My next goal with the code is to make generating graphical widgets (graph, pie, etc) easier as a code user.
[url=http://www.semintelligent.com/blog]Max Schubert a.k.a perldork[/url]
[url=http://wwd-hosting.net/ensim/]Ensim scripts and utilities (GPL)[/url] - [url=http://nmap-scanner.sf.net]Perform nmap scans with perl (GPL)[/url]
[url=http://lmf.sf.net]Perl-based log monitoring framework(GPL)[/url]
[url=http://wwd-hosting.net/ensim/]Ensim scripts and utilities (GPL)[/url] - [url=http://nmap-scanner.sf.net]Perform nmap scans with perl (GPL)[/url]
[url=http://lmf.sf.net]Perl-based log monitoring framework(GPL)[/url]
Re: Cacti->Nagios Integration
Thanks for the update. I'll see how far I can get with the CVS stuff. This is great stuff...I have been reworking the initial code for the add-on, you can currently check it out using anonymous CVS from the sourceforge.net site. I really want this to be a Cacti plugin but still haven't had time to do that .. sorry.
I will create a .tgz release this week or next week for the current code base.
My next goal with the code is to make generating graphical widgets (graph, pie, etc) easier as a code user.
-
- Posts: 1
- Joined: Sat Sep 13, 2008 1:45 pm
DB.php
HP Warning: require_once(DB.php) [<a href='function.require-once'>function.require-once</a>]: failed to open stream: No such file or directory in /var/www/html/cacinda/inc/functions.php on line 4
[Sat Sep 13 18:47:28 2008] [error] [client 10.16.242.20] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'DB.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/cacinda/inc/functions.php on line 4
[Sat Sep 13 18:47:28 2008] [error] [client 10.16.242.20] PHP Fatal error: require_once() [<a href='function.require'>function.require</a>]: Failed opening required 'DB.php' (include_path='.:/usr/share/pear:/usr/share/php') in /var/www/html/cacinda/inc/functions.php on line 4
Who is online
Users browsing this forum: No registered users and 0 guests