Search found 59 matches

by reinaldo.gomes
Sun Aug 31, 2014 9:50 am
Forum: Open Source Nagios Projects
Topic: Windows 2008 R2 randomly non-responsive to SNMP queries
Replies: 3
Views: 2818

Windows 2008 R2 randomly non-responsive to SNMP queries

Since 4 or 5 months ago, I've been using SNMP queries to monitor the amount of memory used by some processes on all our remote servers, hosted on external datacenters. 2 weeks ago, some of our servers started to present timeout messages: ERROR: Process name table : No response from remote host 'xxx....
by reinaldo.gomes
Thu Aug 28, 2014 12:13 pm
Forum: Nagios XI
Topic: Service Check Timed Out
Replies: 10
Views: 12151

Re: Service Check Timed Out

Where do I set the timeout value for this message?: "(Service Check Timed Out)"
Also, how can I set a generic timeout in perl?
by reinaldo.gomes
Tue Aug 05, 2014 11:23 am
Forum: Open Source Nagios Projects
Topic: Empty output after SQL-connecting?
Replies: 11
Views: 7077

Re: Empty output after SQL-connecting?

I will check it out.
Thanks for pointing me in the right direction.
by reinaldo.gomes
Tue Aug 05, 2014 10:12 am
Forum: Open Source Nagios Projects
Topic: Empty output after SQL-connecting?
Replies: 11
Views: 7077

Re: Empty output after SQL-connecting?

So, it turns out that even though the "Test Check Command" returns empty output, it returns valid output (both text and status) when I use the "Schedule an immediate check". All I had to do was to set the nagios user config file. That's not a critical matter, but it would be nice...
by reinaldo.gomes
Tue Aug 05, 2014 9:34 am
Forum: Open Source Nagios Projects
Topic: Empty output after SQL-connecting?
Replies: 11
Views: 7077

Re: Empty output after SQL-connecting?

[root@localhost /]# ps -aef | grep nagios postgres 668 1349 0 05:06 ? 00:00:10 postgres: nagiosxi nagiosxi [local] idle nagios 1567 1 0 Jul04 ? 00:00:00 /usr/local/nagios/bin/ndo2db -c /usr/local/nagios/etc/ndo2db.cfg postgres 2749 1349 0 06:27 ? 00:00:08 postgres: nagiosxi nagiosxi [local] idle na...
by reinaldo.gomes
Tue Aug 05, 2014 9:17 am
Forum: Open Source Nagios Projects
Topic: Empty output after SQL-connecting?
Replies: 11
Views: 7077

Re: Empty output after SQL-connecting?

Code: Select all

[root@localhost libexec]# su -l apache
This account is currently not available.
I'm looking into it. How can I change the GUI user?
by reinaldo.gomes
Tue Aug 05, 2014 8:50 am
Forum: Open Source Nagios Projects
Topic: Empty output after SQL-connecting?
Replies: 11
Views: 7077

Re: Empty output after SQL-connecting?

Now you've shed some light on my problem. ODBC uses a user-specific config file (~/.odbc.ini). I had it only for root, not for nagios user. I did "su -l nagios" and then tried to execute the plugin. It obviously failed until I configured the odbc.ini file for the nagios user. However, I st...
by reinaldo.gomes
Mon Aug 04, 2014 9:57 pm
Forum: Open Source Nagios Projects
Topic: Empty output after SQL-connecting?
Replies: 11
Views: 7077

Re: Empty output after SQL-connecting?

Are you saying that it works when you execute "perl <my_plugin>" or are you saying it works when you execute the SQL separately? Both. It works when I run "./check_sql.pl" on CLI. But it ignores any "print" or "exit" placed after 'DBI->connect'. How am I supp...
by reinaldo.gomes
Mon Aug 04, 2014 1:38 pm
Forum: Open Source Nagios Projects
Topic: Empty output after SQL-connecting?
Replies: 11
Views: 7077

Empty output after SQL-connecting?

So I had to do my first plugin from scratch. I'm basically querying a remote Windows SQL Server from my Nagios server. It works well when executed from linux CLI (./check_sql.pl), but it returns empty output while executing from Web UI. What is really bugging me is that the output fails to be printe...
by reinaldo.gomes
Sat Aug 02, 2014 11:20 pm
Forum: Open Source Nagios Projects
Topic: MSSQL check that will return query value as perf data
Replies: 18
Views: 9839

Re: MSSQL check that will return query value as perf data

Speaking of check_mssql, is there a reason for blocking underlines at the username, like in "user_name" ? I was getting an annyoing "invalid characters in the username" until I edited the code and added a simple "\_" to the username's regex. Will there be any downside t...