Search found 6 matches

by dclose
Thu Apr 18, 2019 11:47 am
Forum: Open Source Nagios Projects
Topic: did not eval into defined data
Replies: 7
Views: 4522

Re: did not eval into defined data

Yes, fixed. Thanks. Was there something I should have selected to mark the answer?
by dclose
Wed Apr 17, 2019 4:22 pm
Forum: Open Source Nagios Projects
Topic: did not eval into defined data
Replies: 7
Views: 4522

Re: did not eval into defined data

Not needed. There is no "grep" in the output lines, with or without an error.
by dclose
Tue Apr 16, 2019 7:28 pm
Forum: Open Source Nagios Projects
Topic: did not eval into defined data
Replies: 7
Views: 4522

Re: did not eval into defined data

Thank you, ssax. Even without the timeout prefix, your suggestion catches the error and outputs the alternate values (all zeros). Unfortunately, the kill outputs "Killed" to standard out first, meaning that the output effectively consists of five lines with the zeros in the wrong places. T...
by dclose
Fri Apr 12, 2019 6:11 pm
Forum: Open Source Nagios Projects
Topic: did not eval into defined data
Replies: 7
Views: 4522

did not eval into defined data

I have an MRTG system (running on Fedora 29) which uses an external bash script to collect some of the data. My problem occurs when the script takes too long to complete and is abnormally terminated by the system. The script exit code is 137, KILL (9) + abnormal (128). I can't trap on this value so ...
by dclose
Tue Feb 27, 2018 9:15 pm
Forum: Open Source Nagios Projects
Topic: SQLite variables in check script
Replies: 3
Views: 1781

Re: SQLite variables in check script

Nevermind. User error. From the command line, I was supplying the simple host name but Nagios is supplying the fully-qualified name. The data base doesn't know the FQDN so it wasn't returning any data.
by dclose
Mon Feb 26, 2018 8:32 pm
Forum: Open Source Nagios Projects
Topic: SQLite variables in check script
Replies: 3
Views: 1781

SQLite variables in check script

I would like to add some information from a local SQLite data base to the status information shown by Nagios. I have a check script which can access that information and provide it in the required format. In fact, I have two versions of this script, one in bash and one in Perl. Both work perfectly w...