Search found 13 matches

by TylerTX
Thu Sep 29, 2016 12:41 pm
Forum: Nagios XI
Topic: Notification Reporting
Replies: 4
Views: 951

Re: Notification Reporting

Thank you. Yes it was easier to bulk modify the majority of our hosts. That did most of what I needed which was verifying notification settings in one go. I appreciate the help.
by TylerTX
Thu Sep 29, 2016 11:14 am
Forum: Nagios XI
Topic: Notification Reporting
Replies: 4
Views: 951

Notification Reporting

Is there a way to get a report or listing of any hosts or services that have notifications set to "Send a notification immediately"? I'm just trying to avoid manually checking the settings on ALL of our hosts. Thanks.
by TylerTX
Tue Apr 05, 2016 11:46 am
Forum: Nagios XI
Topic: Plugin output works from CLI but errors within Nagios XI
Replies: 8
Views: 809

Re: Plugin output works from CLI but errors within Nagios XI

You'll need to create a wrapper script to do this, rather then trying to push the | awk directly through to Nagios. For example (this would pass no variables, feel free to use $1, $2, $3 to easily create your wrapper as needed) - Thanks, I'll give that a try. That makes sense. Command: $USER1$/chec...
by TylerTX
Tue Apr 05, 2016 11:35 am
Forum: Nagios XI
Topic: Plugin output works from CLI but errors within Nagios XI
Replies: 8
Views: 809

Re: Plugin output works from CLI but errors within Nagios XI

Code: Select all

./check_snmp -H 0.0.0.0 -C public -o 1.3.6.1.4.1.318.1.1.1.2.2.3.0 | awk '{print substr($6,3,2)}'
21
Here is my check from the CLI along with the value it returns '21'. Works great. When I have time, I'll dig around the cfg files and find out what's butchering it.

Feel free to lock it.
by TylerTX
Tue Apr 05, 2016 10:59 am
Forum: Nagios XI
Topic: Plugin output works from CLI but errors within Nagios XI
Replies: 8
Views: 809

Re: Plugin output works from CLI but errors within Nagios XI

I see what you mean about the Test Check Command. I didn't notice before that it totally ignored my attempt to alter the output: COMMAND: /usr/local/nagios/libexec/check_snmp -H 0.0.0.0 -C public -o 1.3.6.1.4.1.318.1.1.1.2.2.3.0 \| awk '\{print substr\(\$6,3,2\)\}' OUTPUT: SNMP OK - Timeticks: (2179...
by TylerTX
Tue Apr 05, 2016 10:45 am
Forum: Nagios XI
Topic: Plugin output works from CLI but errors within Nagios XI
Replies: 8
Views: 809

Re: Plugin output works from CLI but errors within Nagios XI

Yes, the error message is the result of doing that. Runtime 1h 2m 58s 3/3 2016-04-05 10:36:03 (No output on stdout) stderr: awk: cmd. line:1: {print substr($6,3,2)}$ I even tried substituting every variable with $ARGx$: $USER1$/check_snmp -H $HOSTADDRESS$ -C $ARG1$ -o $ARG2$ -P $ARG3$ | $ARG4$ The c...
by TylerTX
Tue Apr 05, 2016 9:54 am
Forum: Nagios XI
Topic: Plugin output works from CLI but errors within Nagios XI
Replies: 8
Views: 809

Plugin output works from CLI but errors within Nagios XI

Nagios XI Installed Version: 5.2.2 I have a device that I can pull runtime from: # ./check_snmp -H 0.0.0.0 -C public -o 1.3.6.1.4.1.318.1.1.1.2.2.3.0 SNMP OK - Timeticks: (126000) 0:21:00.00 | But I only want minutes: # ./check_snmp -H 0.0.0.0 -C public -o 1.3.6.1.4.1.318.1.1.1.2.2.3.0 -P 1 | awk '{...
by TylerTX
Mon Feb 29, 2016 1:03 pm
Forum: Nagios XI
Topic: Nagios XI Alerting and PagerDuty
Replies: 3
Views: 414

Re: Nagios XI Alerting and PagerDuty

Thank you, I believe this is what I need. I'll make a backup and test this out on a few, but yes, I do believe this will fix our issue. Thanks again.
by TylerTX
Mon Feb 29, 2016 12:12 pm
Forum: Nagios XI
Topic: Nagios XI Alerting and PagerDuty
Replies: 3
Views: 414

Nagios XI Alerting and PagerDuty

We're using PagerDuty to remotely ack/res alerts with pretty good results. One of the alerting rules in PagerDuty is that an ack is supposed to quiet the alert (all alerts) for 12 hours. I've noticed that if the problem still exists, it will regularly notify us every hour. It looks like notification...
by TylerTX
Wed Feb 03, 2016 10:31 am
Forum: Nagios XI
Topic: Looking for Netbotz Humidity Plugin/Alerting Suggestion
Replies: 6
Views: 984

Re: Looking for Netbotz Humidity Plugin/Alerting Suggestion

It's good for now, I'm going to let this rest. Thanks again.