...About to purchase but have 3 outstanding items

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mocjack
Posts: 31
Joined: Fri Dec 17, 2010 10:06 am

...About to purchase but have 3 outstanding items

Post 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!
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

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

Post 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!
mocjack
Posts: 31
Joined: Fri Dec 17, 2010 10:06 am

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

Post 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.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

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

Post 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?
Locked