Add a check command for NETGEAR monitoring#10753
Conversation
There was a problem hiding this comment.
- Make the GitHub actions green
- Add documentation to doc/10-icinga-template-library.md
- In a GitHub comment, give an example config file to throw into /etc/icinga2/conf.d of a default Icinga2 install – with a Service that uses your check command to prove latter works
Create the following file: object CheckCommand "netgear" { apply Service "netgear-status" { check_command = "netgear" assign where host.name == "netgear-switch" |
|
@DsgnrFH: Please communicate the changes you have done to address review comments. Just add a comment in each thread to say that you have addressed it, and, if non obvious, how and where you did so. |
|
Waiting for the checks to complete... |
oxzi
left a comment
There was a problem hiding this comment.
Before merging, please squash all your commits.
|
Actually, right to "Enable auto-merge", there's a dropdown allowing to "Squash and merge". We already did this with #9062. |
0dafc66 to
3df9b2f
Compare
|
Commits squashed, ready to merge or further reviews |
Al2Klimov
left a comment
There was a problem hiding this comment.
Test
object Service "netgear" {
host_name = NodeName
check_command = "netgear"
vars.netgear_base_url = "http://$check_address$"
vars.netgear_username = "admin"
vars.netgear_password = "password"
}
works:
states: critical=1
\_ Device Info: Uptime - 0 days, 4 hrs, 9 mins, 32 secs
\_ CPU Usage: 4.81%
\_ RAM Usage: 32.77%
\_ Temperature
\_ sensor-System1: 32.0°C
\_ sensor-MAC: 33.0°C
\_ sensor-System2: 31.0°C
\_ Fans
\_ FAN-1: 5118 RPM
E.g vars.netgear_fan_critical = 9000 also works:
states: warning=1
\_ Device Info: Uptime - 0 days, 4 hrs, 12 mins, 20 secs
\_ CPU Usage: 5.39%
\_ RAM Usage: 32.77%
\_ Temperature
\_ sensor-System1: 32.0°C
\_ sensor-MAC: 33.0°C
\_ sensor-System2: 31.0°C
\_ Fans
\_ FAN-1: 5118 RPM
No description provided.