Menu

NagiosQL 3.4.0 - Strange characters when saving settings

2018-05-08
2019-12-11
  • Benedito Ramos

    Benedito Ramos - 2018-05-08

    Hello guys!
    My nagios command:
    $USER1 $ / heck_snmp_storage -H $ HOSTADDRESS $ -C $ ARG1 $ -m $ ARG2 $ -w $ ARG3 $ -c $ ARG4 $
    In the service settings, my variable $ ARG2 $ = '^ C:'
    When I command save in NagiosQL, the variable $ ARG2 $ is saved like this:" '^C:'".
    This causes error in ~ service checks.
    I ask you how to get around this problem?

    Thanks

     

    Last edit: Benedito Ramos 2018-05-08
  • Martin

    Martin - 2018-05-08

    Hello Benedito

    In 3.4.0 I have improved the security by using php filters for data fields. So, something could be not optimal yet. I have slightely modified the filter now with "FILTER_FLAG_NO_ENCODE_QUOTES" for the argument fields. I hope this will help you.

    Simply download version 3.4.0 from here again (which is updated) or download the single file functions/prepend_content.php from https://gitlab.com/wizonet/nagiosql/tree/3.4.0 and try.

     
  • Benedito Ramos

    Benedito Ramos - 2018-05-08

    Hello, Martin.
    I replaced the file "prepend_content.php" as you instructed and the problem was solved. :)

    Thanks for the quick response.

    Diramos

     
  • Buwrito

    Buwrito - 2019-11-04

    Martin,
    I'm having this same problem on Free Variables on Hosts and Services. Including a single or double quote in the Variable Value field, it's converted to ASCII. I have updated my prepend_content.php file and also tried reinstalling 3.4.0 with no luck.

     
  • Martin

    Martin - 2019-12-11

    This case (free variables) will be fixed in version 3.4.1

     

Log in to post a comment.