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    


Cacti and Nagios integration dashboard
Goto page Previous  1, 2, 3, 4, 5
 
Post new topic   Reply to topic    Cacti Forum Index -> Addons for Cacti
Author Message
perldork
Cacti User


Joined: 05 Nov 2004
Posts: 68

PostPosted: Sat Sep 22, 2007 12:06 pm    Post subject: Reply with quote

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

PostPosted: Sat Sep 22, 2007 12:12 pm    Post subject: Reply with quote

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: 37

PostPosted: Sat Sep 22, 2007 12:24 pm    Post subject: Reply with quote

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: 37

PostPosted: Sat Sep 22, 2007 12:28 pm    Post subject: Reply with quote

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

PostPosted: Sat Sep 22, 2007 12:30 pm    Post subject: Reply with quote

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: 37

PostPosted: Sat Sep 22, 2007 12:36 pm    Post subject: Reply with quote

Holy shit!! There is OK now.

Thank you very much perldork!!
Back to top
perldork
Cacti User


Joined: 05 Nov 2004
Posts: 68

PostPosted: Sat Sep 22, 2007 12:43 pm    Post subject: Reply with quote

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: 37

PostPosted: Sat Sep 22, 2007 1:16 pm    Post subject: Reply with quote

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: 37

PostPosted: Tue Oct 02, 2007 3:46 pm    Post subject: Hey perldork Reply with quote

How to work $NAGIOS_HOST_MATCH and $NAGIOS_HOST_REPLACE ??
Back to top
perldork
Cacti User


Joined: 05 Nov 2004
Posts: 68

PostPosted: Thu Oct 04, 2007 5:43 am    Post subject: Reply with quote

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: 32
Location: So Cal

PostPosted: Tue May 27, 2008 11:51 pm    Post subject: Cacti->Nagios Integration Reply with quote

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

PostPosted: Wed May 28, 2008 5:25 am    Post subject: Re: Cacti->Nagios Integration Reply with quote

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: 32
Location: So Cal

PostPosted: Wed May 28, 2008 9:40 am    Post subject: Re: Cacti->Nagios Integration Reply with quote

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

PostPosted: Sat Sep 13, 2008 1:48 pm    Post subject: DB.php Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Addons for Cacti All times are GMT - 5 Hours
Goto page Previous  1, 2, 3, 4, 5
Page 5 of 5

 



Powered by phpBB © 2001, 2005 phpBB Group