Comments (6)
Hi,
trap_in.php is a php interpreted script which needs to be executed by PHP.
So your snmptrapd.conf should contain : traphandle default < php binary > < trap_in with path >
See doc : https://github.com/patrickpr/trapdirector/blob/master/docs/01-install.md#snmptrapd-configuration
If you can't make it work, send me your snmptrapd.conf so I have a look.
/Patrick
from trapdirector.
Hi,
i ran into the same issue using the automated installation script.
It put the following line into snmptrapd.conf
traphandle default -a /usr/share/icingaweb2/modules/trapdirector/bin/trap_in.php
system is raspbian buster.
from trapdirector.
Hi,
There should be php binary with path instead of '-a' : can you send me the options you used with the script ?
For a quick fix, replace '-a' by php binary with path.
from trapdirector.
Hi,
i already replaced it and it worked :)
i used the command line provided in the configuration section
Automatic installation As user root, execute this script : /usr/share/icingaweb2/modules/trapdirector/bin/installer.sh -c all -d /usr/share/icingaweb2/modules/trapdirector -p -a www-data -w /etc/icingaweb2
from trapdirector.
Hi,
I will make some checks so that the value of php binary is never empty (because then the script uses '-a' as value of php binary...).
What is the result of the following command on your system :
echo '<?php echo PHP_BINARY . "\n"; ?>' | <insert your php binary here>
Because it seems that this pre-defined constant (PHP_BINARY) is empty in your case.
from trapdirector.
Hi,
this is the result. As said, i'm using raspbian buster with default packages sources.
echo '<?php echo PHP_BINARY . "\n"; ?>' | php
/usr/bin/php7.3
from trapdirector.
Related Issues (20)
- Error handling installer.sh HOT 5
- Handler/Rule selection for the same trap HOT 7
- Undefined variable: count HOT 23
- Errors with traps and host groups after upgrading to 1.0.6 HOT 5
- SNMPv3 traps are not processed HOT 2
- PHP Parse ERROR HOT 1
- How to pass peer ip address to email alert title/subject for a BGP trap
- No Trap Handling - different SourceIP than Host Object
- Unable to create a trap handler due to missing hosts/hostgroup HOT 1
- "javascript not loaded. This page won't work as expected" HOT 1
- Unable to modify existing trap handler HOT 1
- Port UDP/162 is not open : is snmptrapd running? HOT 1
- Error: count(): Parameter must be an array or an object that implements Countable HOT 3
- SELINUX enforce
- Add feature to deploy handlers based on host custom vars
- Trap director- handler and status&Mib tab are not working after updating the icingaweb2 (version2.11.1) HOT 3
- Problems with create schema trapdirector HOT 12
- Error sending status : check cmd/API with Apply for Service rule
- Trap handler can't be created if OID in the trap contains quotes, escaped with backslash
- Problems with php on trapsdirector HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from trapdirector.