Nagios Plugin Collection
The Nagios Plugin Collection is a set of scripts for the Nagios monitoring project to check the status off various system components.
The Nagios Plugin Collection is a set of scripts for the Nagios monitoring project to check the status off various system components.
I wrote a simple plugin to check the number of established connections
to a windows server. Just execute:
cmd /c netstat -an |find /i “estab” /c
Varnish is an amazing reverse proxy product and it does its
job very well, but how can we know that? Or even better
how can we know it detected problems in the backed?
To find out if your Microsoft cluster did a failover is a boring task to go in the eventviewer or logs. Well I wrote a script that does just that
all it needs is check_nt NC_NET plugin on the server and nagios.
I tested with Windows Server 2008 and 2003 and NC_NET 4.x
Hope its helpfull for everyone.
So How can we know the FTP server is saving all files as it should.
Well I found a way to go directly in the IIS-ftp log files and get the results from there.
They key tool here was logparser, Its very usefull to monitor, if the server is getting error responses or is being attacked by hackers the thresholds should go off.
So How can we know the IIS server is responding to all petitions?
Well I found a way to go directly in the IIS log files and get the results from there. They key was logparser
Its very usefull to monitor, if the site is acting wierd or is being attacked by hackers the thresholds should go off.
Its a system administrator duty to be sure the ESX servers health and performance are OK.
I monitor:
I have a custom script to generate monthly reports about Hosts and Services.
The syntax is pretty simple: Read more…
How to configure NC_NET execute a vbs script
I was used to the simplicity of NRPE_NT, where
things are much easier and straight forward.
I am now tring NC_NET wich for startes requires Framework 2.0 and a server reboot to be installed.
Also the configuration file is HUGE, there are way more possiblities including passive checks witch I dont use.
Its for sure a more powerfull tool but wish it was easier to use.
For example I spen 2hrs to find out how to execute a vbs script I created.
Here is how to do it:
1.Copy script to C:\PROGRA~1\Montitech\NC_Net\script\ also copy cscript (otherwise wont work!)
2. Edit lines on NC_NET config file startup.cfg
do_not_blaim_nc_net true
allow_run_scripts true
For troubleshooting:
testrun true
3. Restart the service
4. You can verify on eventviewr if ur changes where OK.
5. Call the vbs from nagios
The hard part was to find out how to call the vbs!
for help
./check_nt –help=RUNSCRIPT
To Run
./check_nt -H <HOST> -v RUNSCRIPT -l “cscript.exe //nologo C:\PROGRA~1\Montitech\NC_Net\script\SCRIPT.vbs -p E:\Logs -e felipe.ferreira@eueue.com”
Nagios, Como monitorar utilizando check_by_ssh
(my first Post in portugues)
reference to here
And my English original post here
1. Na maquina remota criamos o usuario nagios
/usr/sbin/useradd -m nagios