Search found 14 matches

by dhlao
Mon Jan 03, 2022 10:36 pm
Forum: Open Source Nagios Projects
Topic: How to utilise macros "HOSTADDRESS" in my code
Replies: 1
Views: 2608

How to utilise macros "HOSTADDRESS" in my code

I'm going to create a check command that is written in C. Like those built-in ones that come with Nagios Core, I want to make it able to get the argument such as hostaddress, warning and critical threshold. I've checked check_ping and check_snmp, then I found that they all rely on an unknown variabl...
by dhlao
Mon Jan 03, 2022 9:19 pm
Forum: Open Source Nagios Projects
Topic: Proper ways to create check command
Replies: 3
Views: 3649

Re: Proper ways to create check command

Finally, I managed to make performance data works; By referencing a custom check command - "check_eth" which is written in Perl and is available in Nagios Exchange. Thanks to mcapra again for giving me the very useful hint.
by dhlao
Mon Jan 03, 2022 5:08 am
Forum: Open Source Nagios Projects
Topic: Proper ways to create check command
Replies: 3
Views: 3649

Re: Proper ways to create check command

Hello mcapra, I haven't added performance data before. After some research, I still get confuse of how to properly include this in the code. I've checked https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/3/en/perfdata.html . Adding the *stroke* doesn't work. I've tried using the method ...
by dhlao
Thu Dec 23, 2021 6:12 am
Forum: Open Source Nagios Projects
Topic: Proper ways to create check command
Replies: 3
Views: 3649

Proper ways to create check command

I've made several check commands that are written in C, they can successfully pass the value (I think they're strings) and are properly shown in Nagios web console. However, when using Histou to pass value to Grafana for creating graph, they failed. This doesn't happen when using built-in check_comm...
by dhlao
Wed Oct 27, 2021 3:21 am
Forum: Open Source Nagios Projects
Topic: How histou passes result to Grafana
Replies: 0
Views: 739

How histou passes result to Grafana

Histou has no problem passing the results that are returned by built-in check command. However, it fails if the result is returned by custom scripts. For example, command that is triggered by check_by_ssh. I use check_by_ssh to get the CPU usage of a remote Linux server. It returns a text or numeric...
by dhlao
Tue Sep 14, 2021 5:00 am
Forum: Open Source Nagios Projects
Topic: What language is used to create the default check commands
Replies: 2
Views: 1649

Re: What language is used to create the default check comman

Thanks mcapra, I'll go for C then, as I like to compile.
by dhlao
Sun Sep 12, 2021 11:26 pm
Forum: Open Source Nagios Projects
Topic: What language is used to create the default check commands
Replies: 2
Views: 1649

What language is used to create the default check commands

Just curious about what the default check commands such as "check_ping" and "check-dummy" inside "/libexec" are written in. They're clearly not written in plain text scripts but instead compiled. I'm planning to make my own check command and want to use the same languag...
by dhlao
Sun Aug 22, 2021 10:45 pm
Forum: Open Source Nagios Projects
Topic: Performance Graphs InfluxDB Nagflux issue
Replies: 2
Views: 1799

Re: Performance Graphs InfluxDB Nagflux issue

Thanks for the tips, mcapra, but the new query command style for v2.0 is way too complicated to me, so I choose v1.6.4 which is stable version of Debian 10.
by dhlao
Fri Aug 20, 2021 5:02 am
Forum: Open Source Nagios Projects
Topic: Performance Graphs InfluxDB Nagflux issue
Replies: 2
Views: 1799

Performance Graphs InfluxDB Nagflux issue

I follow the guide https://support.nagios.com/kb/article/nagios-core-performance-graphs-using-influxdb-nagflux-grafana-histou-802.html#Debian and now get stuck at "Validate Nagflux to InfluxDB Configuration". Running below command end up showing "code:unauthorized;message:unauthorized...
by dhlao
Thu Aug 05, 2021 9:56 pm
Forum: Open Source Nagios Projects
Topic: port 12489 Connection refused issue
Replies: 3
Views: 2744

Re: port 12489 Connection refused issue

I've finally found a useful guide "Using-NCPA-For-Passive-Checks.pdf" on the web. This document has given me a great help and my problem is now solved.