Giter VIP home page Giter VIP logo

php_send_nsca's People

Contributors

geoffroya avatar mizzrym avatar nueaf avatar sebob avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

php_send_nsca's Issues

Timeouts as parameter

They're hard coded at the moment. I'm not quite sure right now if i'll keep it this way. I don't think anybody would need to change the timeouts, on the other hand an optional parameter like with the cipher mode doesn't hurt much. Then again, i'm not sure if that one is unnecessary too.

Remove duplicate packagist entry

@nueaf i made you contributor to this project both here and on packagist and merged everything together. Would be nice if you could remove your packagist entry for this project and use mine instead. Thanks.

thank you !

finally a working class for nsca, thank you so much for your work !

Uncaught TypeError when using SendNscaFactory::ENCRYPT_NONE encryptor

Hi

With PHP >= 7.1, seems that null is rejected as return value, when return type is declared.
This causes an issue with ENCRYPT_NONE, as SendNscaFactory::getEncryptor expects EncryptorInterface, but null is returned when cipher is ENCRYPT_NONE.

I propose to chang the declaration to allow null value.

Please add a license file

Please could you add a license file, so it's clear that third parties can (or can't!) re-use your code !

thanks
David.

[suggestion] auto substr if message is too long

hi there,

it's very hard to debug, when no message gets sent, because you only have some simple return false here.
the user usually does not know, that the message has a max length, so i would suggest to update that part with:

if (strlen($message)>=512) {
   $message = substr($message,0,511);
}

instead of return false ๐Ÿ˜‰

Submit host state

In current version it isn't implemented to submit any passiv host state. Could you please implement or explain why it isn't possible.
Thx

MCRYPT_ciphernames and $ivlen

It would be cool to compare the set mcrypt ciphername to the available ones and check if its valid before trying to encrypt the package.
IIRC mcrypt will cause a fatal error if the name isn't correct.

Also the $ivlen variable could be set by switching the ciphername, which would reduce user/configuration errors.

Prepare for PHP 7.2

mcrypt support will be dropped, which means everything has to be re-implemented using openssl or another crypto library.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.