Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Wed May 24, 2017 6:39 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Change to take interface status make it works
PostPosted: Mon May 08, 2017 4:05 am 
Offline
Cacti User

Joined: Wed Dec 07, 2011 9:19 am
Posts: 184
I thing there was a request to change the REGEXP_SNMP_TRIM into snmp.php to be able to query the interface status long time ago, and still not changed !

Is it planed to do it in a future release ?
And it will not change the functionallity of snmp.php

It will change for the following value:
define("REGEXP_SNMP_TRIM", "/(hex|counter(32|64)|gauge|gauge(32|64)|float|ipaddress|string|integer):|(up|down)\(|\)$/i");


and changing the interface.xml the following way will alos solve the issue:
<ifOperStatus>
<name>Status</name>
<method>walk</method>
<source>VALUE/REGEXP:[a-zA-Z]{1,}\(([1-]{1})+\)$</source>
<direction>output</direction>
<oid>.1.3.6.1.2.1.2.2.1.8</oid>
</ifOperStatus>

Source and direction

thanks

_________________
CentOS
Cacti 0.8.8h
Spine 0.8.8h
PIA 3.1
Aggregate 0.75
Monitor 1.3
Settings 0.71
Weathermap 0.98
Thold 0.5
rrdclean 0.41

Own plugin: LinkDiscovery 0.3


Top
 Profile  
 
 Post subject: Re: Change to take interface status make it works
PostPosted: Tue May 09, 2017 10:16 pm 
Offline
Cacti User
User avatar

Joined: Mon Jan 05, 2015 10:10 am
Posts: 289
Two words "pull request"

_________________
Before history, there was a paradise, now dust.


Top
 Profile  
 
 Post subject: Re: Change to take interface status make it works
PostPosted: Wed May 10, 2017 1:56 am 
Offline
Cacti User

Joined: Wed Dec 07, 2011 9:19 am
Posts: 184
One quick question, In a pool request, should just put the code I propose to change, or can I do more ?
Text of explanation of what to do or whatever.

Sorry to ask that but I'm willing to do it, but need to be sure of what I'm doing !

_________________
CentOS
Cacti 0.8.8h
Spine 0.8.8h
PIA 3.1
Aggregate 0.75
Monitor 1.3
Settings 0.71
Weathermap 0.98
Thold 0.5
rrdclean 0.41

Own plugin: LinkDiscovery 0.3


Top
 Profile  
 
 Post subject: Re: Change to take interface status make it works
PostPosted: Wed May 10, 2017 4:32 am 
Offline
Cacti User
User avatar

Joined: Mon Jan 05, 2015 10:10 am
Posts: 289
Look at some of the dozens that have been logged and committed already.

_________________
Before history, there was a paradise, now dust.


Top
 Profile  
 
 Post subject: Re: Change to take interface status make it works
PostPosted: Wed May 10, 2017 8:59 am 
Offline
Cacti User

Joined: Wed Dec 07, 2011 9:19 am
Posts: 184
Well I try to create one, but so far I just add some comment, and I can find 4 files on my pull request
Bu none of then where added by my

Sorry, but I'm not an expert of githut, and I can't find any help on it !!
I'm not even sure the base is master, the compare is develop!
So looking at all that where done before, dosen't help of how to do it!!


Any help to help will be nice

_________________
CentOS
Cacti 0.8.8h
Spine 0.8.8h
PIA 3.1
Aggregate 0.75
Monitor 1.3
Settings 0.71
Weathermap 0.98
Thold 0.5
rrdclean 0.41

Own plugin: LinkDiscovery 0.3


Top
 Profile  
 
 Post subject: Re: Change to take interface status make it works
PostPosted: Mon May 15, 2017 12:51 am 
Offline
Cacti User
User avatar

Joined: Mon Jan 05, 2015 10:10 am
Posts: 289
Well one day you will move from your 'githut' to a real live GitHub. Wait for you moment, and make it happen.

_________________
Before history, there was a paradise, now dust.


Top
 Profile  
 
 Post subject: Re: Change to take interface status make it works
PostPosted: Mon May 15, 2017 2:10 am 
Offline
Cacti User

Joined: Wed Dec 07, 2011 9:19 am
Posts: 184
After 3 tests, i was able to do it,
and the 2 changes proposed where accepted.

I'm not sur I can't say thanks for the help !!

_________________
CentOS
Cacti 0.8.8h
Spine 0.8.8h
PIA 3.1
Aggregate 0.75
Monitor 1.3
Settings 0.71
Weathermap 0.98
Thold 0.5
rrdclean 0.41

Own plugin: LinkDiscovery 0.3


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group