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    


Feature Request (other sources of data)

 
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map)
Author Message
Livio Zanol



Joined: 23 Feb 2006
Posts: 30

PostPosted: Mon May 14, 2007 9:02 pm    Post subject: Feature Request (other sources of data) Reply with quote

Is there possible to have another source of data instead of an RRD?
Like defining a bash(or perl, or php) command?

Example:
TARGET `snmpget(192.168.0.1,public,1.3.6.1.2.1.1.3.4)`

It would be quite usefull for some applications.
Back to top
Howie
Cacti Guru User


Joined: 16 Sep 2004
Posts: 2162
Location: United Kingdom

PostPosted: Tue May 15, 2007 2:26 am    Post subject: Re: Feature Request (other sources of data) Reply with quote

Livio Zanol wrote:
Is there possible to have another source of data instead of an RRD?
Like defining a bash(or perl, or php) command?

Example:
TARGET `snmpget(192.168.0.1,public,1.3.6.1.2.1.1.3.4)`

It would be quite usefull for some applications.


Yes it is since 0.9.

See http://www.network-weathermap.com/manual/0.91/pages/targets.html

The target you want is the last one TARGET !scriptname

The script should return 4 lines: in value, out value, and two others which are ignored (this is so that existing MRTG scripts can be used).

One thing I just realised is that the script currently can't take any parameters though This particular plugin hasn't been tested too much

For your specific example, there is also an SNMP datasource plugin, although that again hasn't been thoroughly tested, and when I tried to use it myself for interface status (opStatus/adminStatus) I found that PHP's snmp functions are not so great, and not very consistent between versions and platforms.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Plugin: (Network Weather Map) All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group