Page 1 of 1

...About to purchase but have 3 outstanding items

Posted: Mon Jan 31, 2011 12:06 pm
by mocjack
Hi, our company is about to purchase Nagios XI but I have three outstanding issues I need to resolve.

1) I need an easy way to check file sizes on Linux machines and alert when they go over a certain threshold in KB.

2) Need to monitor the memory / heap size used by Java VM's under Linux (as in Websphere). There is a plugin for this but it does not work properly (or I don't work properly) :D

3) Still have outstanding issue with getting performance counter syntax correctly...here is the quote from my previous question:

I am running Nagios XI on CentOS 64bit and using NSCLIENT++ to monitor my windows servers.
I have one SQL server in which I need to monitor the transaction log size for a database, so I wanted to use the simple performance counter Windows has for this.
My command line in my service check is as follows:
-l "\\SQLServer:Databases\\BPM_Engine_PRD\\Log File(s) Size (KB)","Current BPM Transaction Log File is %.f" -w 2000000 -c 3000000
I check manually in explorer and the transaction log is currently 512MB.
When I run the check the rule in Nagios all I ever git is "Current BPM Transaction Log File is 0"


Thanks to anyone in advance!

Re: ...About to purchase but have 3 outstanding items

Posted: Mon Jan 31, 2011 4:13 pm
by mguthrie
Nagios can monitor just about anything on the planet, the trick for any of it is either finding a check plugin for it, or making one, or getting an existing one to work. I'll probably refer you to the exchange.nagios.org as far as plugins that are already out there and might do what you need, I haven't worked with any of these in particular, but they should be a start in the direction that you may need.
1) I need an easy way to check file sizes on Linux machines and alert when they go over a certain threshold in KB.
http://exchange.nagios.org/index.php?op ... 20filesize
2) Need to monitor the memory / heap size used by Java VM's under Linux (as in Websphere). There is a plugin for this but it does not work properly (or I don't work properly) :D
http://exchange.nagios.org/index.php?op ... hword=heap

I am running Nagios XI on CentOS 64bit and using NSCLIENT++ to monitor my windows servers.
I have one SQL server in which I need to monitor the transaction log size for a database, so I wanted to use the simple performance counter Windows has for this.
My command line in my service check is as follows:
-l "\\SQLServer:Databases\\BPM_Engine_PRD\\Log File(s) Size (KB)","Current BPM Transaction Log File is %.f" -w 2000000 -c 3000000
I check manually in explorer and the transaction log is currently 512MB.
When I run the check the rule in Nagios all I ever git is "Current BPM Transaction Log File is 0"
Can you show us the full check command that you're using from the command-line, along with the result? (Run it from /usr/local/nagios/libexec and manually enter your variable names). Getting the check plugin to return the right data is usually a matter of correct syntax in the command definition, but this varies with each plugin. We'd need to know which check plugin this is using in order to help.


Hope that helps!

Re: ...About to purchase but have 3 outstanding items

Posted: Tue Feb 01, 2011 9:16 am
by mocjack
I will give the plugins a try on items 1 and 2.

As far as item 3 goes, I am just using the standard Windows Server Wizard and replacing one of the performance counter lines with the line shown below:

-l "\\SQLServer:Databases\\BPM_Engine_PRD\\Log File(s) Size (KB)","Current BPM Transaction Log File is %.f" -w 2000000 -c 3000000

The return I get from Nagios is "Current BPM Transaction Log file is 0"... This is regardless of the actual size of the log.

I hope that makes sense. Clearly I have the syntax of the line wrong or something.

Re: ...About to purchase but have 3 outstanding items

Posted: Tue Feb 01, 2011 3:04 pm
by mguthrie
You might want to try putting that whole string into single quotes. I'm wondering if the command-line is escaping some of the characters and giving you an error code or "false" as your plugin output.

Can you show what the original lines were as well?