|
|
| Author |
Message |
perldork Cacti User
Joined: 05 Nov 2004 Posts: 68
|
Posted: Sat Sep 22, 2007 12:06 pm Post subject: |
|
|
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. |
|
| Back to top |
|
 |
perldork Cacti User
Joined: 05 Nov 2004 Posts: 68
|
Posted: Sat Sep 22, 2007 12:12 pm Post subject: |
|
|
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
| Code: |
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");
}
}
|
and let me know if you get a different result, you should. |
|
| Back to top |
|
 |
Smux
Joined: 10 Sep 2007 Posts: 40
|
Posted: Sat Sep 22, 2007 12:24 pm Post subject: |
|
|
Result:
| Code: |
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
|
|
|
| Back to top |
|
 |
Smux
Joined: 10 Sep 2007 Posts: 40
|
Posted: Sat Sep 22, 2007 12:28 pm Post subject: |
|
|
| Smux wrote: | Result:
| Code: |
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...
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* |
|
| Back to top |
|
 |
perldork Cacti User
Joined: 05 Nov 2004 Posts: 68
|
Posted: Sat Sep 22, 2007 12:30 pm Post subject: |
|
|
One more change:
Find the the code
| Code: |
output_page(get_class($snmp));
|
in index.php and replace it with
| Code: |
output_page(strtolower(get_class($snmp)));
|
|
|
| Back to top |
|
 |
Smux
Joined: 10 Sep 2007 Posts: 40
|
Posted: Sat Sep 22, 2007 12:36 pm Post subject: |
|
|
Holy shit!! There is OK now.
Thank you very much perldork!! |
|
| Back to top |
|
 |
perldork Cacti User
Joined: 05 Nov 2004 Posts: 68
|
Posted: Sat Sep 22, 2007 12:43 pm Post subject: |
|
|
| Smux wrote: | Holy shit!! There is OK now.
Thank you very much perldork!! |
Hi, you are welcome, changes checked into CVS for the next release .
| Code: |
Fatal error: Call to undefined function imagettfbbox() in /usr/local/lib/php/Image/Canvas/GD.php on line 1240
|
Looks like you are missing freetype or GD support in your PHP installation. |
|
| Back to top |
|
 |
Smux
Joined: 10 Sep 2007 Posts: 40
|
Posted: Sat Sep 22, 2007 1:16 pm Post subject: |
|
|
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:
| Code: | | Warning: preg_replace() [function.preg-replace]: Empty regular expression in /home/sysmon/public_html/cacinda/inc/functions.php on line 138 |
I dont know solve this, my internet already is very unstable (sucks). Later I come back to work in this.
Thank you very much. |
|
| Back to top |
|
 |
Smux
Joined: 10 Sep 2007 Posts: 40
|
Posted: Tue Oct 02, 2007 3:46 pm Post subject: Hey perldork |
|
|
| How to work $NAGIOS_HOST_MATCH and $NAGIOS_HOST_REPLACE ?? |
|
| Back to top |
|
 |
perldork Cacti User
Joined: 05 Nov 2004 Posts: 68
|
Posted: Thu Oct 04, 2007 5:43 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
sterpstra
Joined: 27 May 2008 Posts: 33 Location: So Cal
|
Posted: Tue May 27, 2008 11:51 pm Post subject: 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 |
|
| Back to top |
|
 |
perldork Cacti User
Joined: 05 Nov 2004 Posts: 68
|
Posted: Wed May 28, 2008 5:25 am Post subject: Re: Cacti->Nagios Integration |
|
|
Hi,
| 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 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. |
|
| Back to top |
|
 |
sterpstra
Joined: 27 May 2008 Posts: 33 Location: So Cal
|
Posted: Wed May 28, 2008 9:40 am Post subject: Re: Cacti->Nagios Integration |
|
|
| Quote: |
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. |
Thanks for the update. I'll see how far I can get with the CVS stuff. This is great stuff... |
|
| Back to top |
|
 |
jason_prouty
Joined: 13 Sep 2008 Posts: 1
|
Posted: Sat Sep 13, 2008 1:48 pm Post subject: 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 |
|
| Back to top |
|
 |
|