Commit Graph

34 Commits

Author SHA1 Message Date
Tony Murray
1d777693e1 feature: New IP parsing classes. Removes usage of Pear Net_IPv4 and Net_IPv6. (#7106)
* Refactor remove use of pear Net_IPv4 and Net_IPv6

Caution, I added tests to test the functionality of the new functions, but I'm not 100% certain the replaced usages match 100%.  Please test.

Left usage in generate-iplist.php because I'm not sure the use of that script, so I didn't want to implement additional functionality to support it.

Add support for ipv6 fo ipInNetwork() function

Add phpdocs to functions
Remove accidental inclusion

Use binary operations instead of string for networKFromIp()
Tidy up binary operations in ipInNetwork()

tidy parsing cidr network

Change to a class based implementation.

Update phpdocs.
Fully catch exceptions for hex parsing.

Fix mistake.

support older phpunit versions

Fix php shifting to negative with php 5

* Fix graph authorization. Uncaught exception and checking an ipv4 against an ipv6 network == fail.

* Also remove colons from hex strings.

* Fix typo in bgp polling
Two passes of removing invalid characters from hex strings. (That way we don't mangle valid IPs)
2017-08-08 14:14:58 -05:00
Neil Lathwood
3c0a2109e5 tidy up some file permissions and removed unused files (#5563)
* tidy up some file permissions and removed unused files

* Delete makemini.pl
2017-01-24 12:44:16 -06:00
Tony Murray
9a33464c52 refactor: Centralize includes and initialization (#4991) 2016-11-21 20:12:59 +00:00
Neil Lathwood
7dec670494 refactor: Updated a lot of references to LibreNMS - copyright still left intact (#4339) 2016-09-08 08:12:23 -05:00
Paul Gear
97412879bd Ignore 3rd-party libraries when searching 2016-01-02 07:10:41 +10:00
Paul Gear
f0a7ed8e09 Don't convert if we've already done it 2016-01-02 07:10:41 +10:00
Paul Gear
7752bc0494 Move to fixed DS names in MIB-based polling; add script to convert RRDs 2016-01-02 07:10:40 +10:00
Job Snijders
d8693f05ae Fix coding style part 2 2015-07-15 11:04:22 +02:00
Paul Gear
2a18afe3af Don't search junk 2015-06-16 08:13:08 +10:00
Paul Gear
c27cb9d803 Source tree has files with spaces in their names now 2015-06-06 07:45:36 +10:00
Alexander Sosna
5a7988e2e4 chmod 0644 to php files not directly executed 2015-04-28 22:58:03 +02:00
laf
e535ec2e47 Resolved critical bugs from scrutinizer 2014-02-22 15:47:57 +00:00
Tyler Christiansen
9d7e2337fa add scripted version of dev deploy instructions by wes 2014-01-24 19:38:02 -08:00
Tyler Christiansen
3d35c805ed add scripted version of dev deploy instructions by wes 2014-01-24 19:37:48 -08:00
laf
8f15151e9f Moved some files to contrib/ and removed generate-map.sh 2014-01-14 17:36:52 +00:00
laf
87c343e3cd Removed contrib/ folder 2014-01-14 16:27:12 +00:00
Adam Amstrong
4db1454e92 move from port_id to interface_id. make ports discovery only discover. add some cleaner functions. add a tiny bit of alerting infrastructure.
git-svn-id: http://www.observium.org/svn/observer/trunk@3195 61d68cd4-352d-0410-923a-c4978735b2b8
2012-05-16 13:25:50 +00:00
Adam Amstrong
53327231b7 better vlan discovery
git-svn-id: http://www.observium.org/svn/observer/trunk@2786 61d68cd4-352d-0410-923a-c4978735b2b8
2011-12-15 22:36:53 +00:00
Adam Amstrong
14fca0ad07 fix links for rancid svn support
git-svn-id: http://www.observium.org/svn/observer/trunk@2679 61d68cd4-352d-0410-923a-c4978735b2b8
2011-10-11 10:58:43 +00:00
Tom Laermans
1539c89077 shitcan obsolete syslog configs
git-svn-id: http://www.observium.org/svn/observer/trunk@1967 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-23 14:34:48 +00:00
Tom Laermans
71036ecfc5 syslog-ng fixes awaiting rsyslog patch :D
git-svn-id: http://www.observium.org/svn/observer/trunk@1966 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-23 13:33:07 +00:00
Tom Laermans
de7ff537cc revert r1957 patch
git-svn-id: http://www.observium.org/svn/observer/trunk@1960 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-23 09:54:56 +00:00
Geert Hauwaerts
6501cd29b5 - Code cleanup by Bastian Widmer.
git-svn-id: http://www.observium.org/svn/observer/trunk@1957 61d68cd4-352d-0410-923a-c4978735b2b8
2011-03-22 20:27:39 +00:00
Adam Amstrong
cd76567edb ginger patch
git-svn-id: http://www.observium.org/svn/observer/trunk@1699 61d68cd4-352d-0410-923a-c4978735b2b8
2010-09-03 18:26:59 +00:00
Adam Amstrong
776f655055 add port parser to default config, rename some stuff
git-svn-id: http://www.observium.org/svn/observer/trunk@1328 61d68cd4-352d-0410-923a-c4978735b2b8
2010-07-10 11:47:27 +00:00
Adam Amstrong
0bee34b6ad change interfaces table to ports (to match GUI conventions)
git-svn-id: http://www.observium.org/svn/observer/trunk@889 61d68cd4-352d-0410-923a-c4978735b2b8
2010-02-20 17:22:22 +00:00
Adam Amstrong
d05d9722b2 add
git-svn-id: http://www.observium.org/svn/observer/trunk@329 61d68cd4-352d-0410-923a-c4978735b2b8
2008-11-28 13:20:39 +00:00
Adam Amstrong
f33bca5e3e better logon process
git-svn-id: http://www.observium.org/svn/observer/trunk@318 61d68cd4-352d-0410-923a-c4978735b2b8
2008-11-26 14:01:09 +00:00
Adam Amstrong
d4463f7b8e syslog stuff
git-svn-id: http://www.observium.org/svn/observer/trunk@315 61d68cd4-352d-0410-923a-c4978735b2b8
2008-11-24 14:57:19 +00:00
Adam Amstrong
0c4fa28c5e fixes
git-svn-id: http://www.observium.org/svn/observer/trunk@308 61d68cd4-352d-0410-923a-c4978735b2b8
2008-11-20 14:58:11 +00:00
Adam Amstrong
d21f30b5a7 fixing some permissions things
git-svn-id: http://www.observium.org/svn/observer/trunk@298 61d68cd4-352d-0410-923a-c4978735b2b8
2008-11-09 23:07:48 +00:00
Adam Amstrong
f4a51016e6 updates
git-svn-id: http://www.observium.org/svn/observer/trunk@297 61d68cd4-352d-0410-923a-c4978735b2b8
2008-11-06 11:16:31 +00:00
Adam Amstrong
9324623b8e ipv6 things
git-svn-id: http://www.observium.org/svn/observer/trunk@269 61d68cd4-352d-0410-923a-c4978735b2b8
2008-11-03 15:34:49 +00:00
Adam Amstrong
49c52de61e added contrib and dns generator script
git-svn-id: http://www.observium.org/svn/observer/trunk@265 61d68cd4-352d-0410-923a-c4978735b2b8
2008-11-03 11:12:11 +00:00