Plugins

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Plugins

Post by slansing »

You are going to want to either install NSClient++ 3.9.x or run the following command locally to generate the rest of the configuration file:

Code: Select all

# If you want to fill this file with all avalible options run the following command:
#   nscp settings --generate --add-defaults --load-all
There is additional information on this at the top of the nsclient.ini file/nsc.ini.
MPIvan
Posts: 213
Joined: Thu Nov 22, 2012 6:09 am

Re: Plugins

Post by MPIvan »

Tnx slansing, some how it start working ... but any way i put the lines you told me ...

Now im asking all of you if you know any good plugin or addon for monitoring a network throughput ?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Plugins

Post by slansing »

You could use Windows Performance counters for this, do you have any experience working with them? What type of data are you looking to return? There are many options within the performance counters.
MPIvan
Posts: 213
Joined: Thu Nov 22, 2012 6:09 am

Re: Plugins

Post by MPIvan »

Hi slansing,

No i have not used Windows Performance counters. And of the type of data is typically throughput (network throughput).
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Plugins

Post by slansing »

Since you now have NSClient installed and running, lets test a performance counter from the Nagios command line:

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H (windows ip goes here) -c CheckCounter -a "Counter:=\\PhysicalDisk(0 C:)\Avg. Disk sec/Transfer" ShowAll MaxWarn= MaxCrit=
Fill in the MaxWarn and MaxCrit values to your liking as well as the IP. This will just be a disk check to make sure we can access the counters. "Assuming you have a C drive?"
MPIvan
Posts: 213
Joined: Thu Nov 22, 2012 6:09 am

Re: Plugins

Post by MPIvan »

Sorry slansing for replying too late ... ill try this thing later ... and i would like to thank you for all the reply's, help and guiding you gave me !

Now i have priority problem. Now im working with check_nt specific with the PROCSTATE. I would like to monitor more then one process but when i run the command for example

./check_nt -H 172.25.1.101 -p 12489 -s IvanPC -v PROCSTATE -l iexplore.exe,chrome.exe

i get respond just for the first .exe (iexplore.exe) in my case.

Is there a way to do this for multiple process to see what process are running or not ?
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Plugins

Post by abrist »

From: http://nagiosplugins.org/man/check_nt
SERVICESTATE =
Check the state of one or several services.
Request a -l parameters with the following syntax:
-l <service1>,<service2>,<service3>,...
You can specify -d SHOWALL in case you want to see working services
in the returned string.

PROCSTATE =
Check if one or several process are running.
Same syntax as SERVICESTATE.
Try adding "-d SHOWALL".
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
MPIvan
Posts: 213
Joined: Thu Nov 22, 2012 6:09 am

Re: Plugins

Post by MPIvan »

Than you abrist and also i would like to thank you too for all the help you gave me, i appreciate all the help tnx

I would like to ask for suggestion about good plugin for bandwidth ?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Plugins

Post by slansing »

Most checks regarding bandwidth involve SNMP which is a slightly more advanced form of monitoring, a search of the exchange returns this:

http://exchange.nagios.org/index.php?op ... =bandwidth

Are you interested in integrating SNMP? If so we can post some guides here for you to work with though it looks like are working with Abrist on SNMP already.
MPIvan
Posts: 213
Joined: Thu Nov 22, 2012 6:09 am

Re: Plugins

Post by MPIvan »

Hi again ... is there a good plugin to tell me if there is a change in the config file on a router or switch ?
Locked