Comments (7)
Hi @AnneWielis,
thanks for opening this issue. Can you please share the exact CLI parameters which you used to run the check plugin (hide sensitive information like passwords)?
Best regards
Michael
from check_fritz.
from check_fritz.
@AnneWielis With CLI parameters I mean the exact plugin call e.g.
$ ./check_fritz.linux.amd64 -H ### -p ### -m smart_heatertemperatur
But I think I know whats wrong. In order to query a smart device you need to give the index number e.g.
$ ./check_fritz.linux.amd64 -H ### -p ### -m smart_heatertemperatur -i 6
OK - Comet DECT 03.68 - Büro 18.00 °C | 'temperature'=18.000000;;;;
Without the -i
(--index
) parameter I get your error too, so this is indeed a bug where the error handling is not good. Please try to set the index parameter.
from check_fritz.
Sorry forget about the -i
(--index
) parameter. Use the --ain
parameter instead.
$ ./check_fritz.linux.amd64 -H ### -p ### -m smart_heatertemperatur --ain "00000 0000000"
You can find the AIN in the Fritz!Box web interface in the smart device settings. Please try to set the AIN parameter. :-)
from check_fritz.
OK, calling it directly works fine:
root@ubuntu:/home/ubuntu# /usr/lib/nagios/plugins/check_fritz -H 192.168.2.1 -u icinga2 -p xxx -m smart_heatertemperatur --ain "09995 0309722"
OK - FRITZ!DECT 301 - Home Office 19.00 °C | 'temperature'=19.000000;;;;
So, probably the config is wrong?
`apply Service "Heizung Home Office" {
import "generic-service"
check_command = "fritz"
vars.fritz_method = "smart_heatertemperatur"
vars.ain = "09995 0309722"
assign where host.address == "192.168.2.1"
}
`
from check_fritz.
@AnneWielis If you use the CheckCommand
that is provided in the README you should use:
vars.fritz_ain = "XXXX XXXXXXX"
from check_fritz.
That was it, many thanks!
from check_fritz.
Related Issues (20)
- Wrong max down-/upstream values for LAN1 connected Fritz!Box HOT 2
- Implement threshold ranges HOT 2
- no perfdata on connection_status and updates HOT 4
- Path in sha256-file do not match the documentation HOT 1
- Not all devices are alerted, when updates are available HOT 2
- No WARNING or CRITICAL status for device and connection status HOT 1
- UNKNOWN - Unexpected response status code: 500 HOT 7
- Get data from Online Meter
- FritzBox 6890 LTE HOT 3
- Performance data in mbit/s instead of percent
- Doc: Upgrading from v1.1.0 to v1.2.0 HOT 1
- Implement debug mode HOT 2
- execvpe(/usr/lib64/nagios/plugins/check_fritz) failed: Permission denied HOT 2
- Flexible Minimum value for Graphs HOT 2
- panic when no AIN is set and a method that expects one is used
- Typo in help output
- Update contributing documentation
- Refine the project tree layout
- Wrong value for max upstream/downstream
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 check_fritz.