Archive

Posts Tagged ‘plugin’

monitor microsoft cluster

July 26th, 2010 1 comment

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.

Read more…

Monitor IIS erros with nagios

May 21st, 2010 4 comments

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.

Read more…

Exchange mailbox login plugin

July 13th, 2009 No comments

This plugins uses a script called check_counter_rawcount.vbs developed by Dr. Dave Blunt at GroundWork Open Source Inc.
I used it to grab WMI performance counter information but the script itself allows many more “performance counters” to be used.
The script is included in NRPE_NT Plugins V2, it can also be download here.
The way I defiened in nrpe.cfg is:

Read more…

Check FileAge Nagios Plugin

April 2nd, 2009 21 comments

Check_fileage.vbs is plugin for nagios that uses NRPE_NT and works for Microsoft machines.
I tried to make it as flexible as posible, allowing nagios to pass simple but helpfull arguments.
I use it to find out for example what was the last antivirus definition update, I set if its older then 7 days warn if it is older then 10 critical. Although antivirus update is a centralized automated everyday task, many times admins stop worrying about it or just don’t have the time to keep checking. Well again nagios is here to save us!
The purpose is to check how old the file is compare to today (checks by LastModified Date)
‘Example of my use: get Last Time Antivirus MCAfee Enterprise (Version 8.0i) was Updated

Read more…

nagios plugin to check active directory

March 23rd, 2009 22 comments

Nagios plugin to check active directory, checkdc.vbs is a script that performs the checks done by dcdiag.exe and parse its output to a nagios format. Right now its a limited script, no arguments and wont allow to select what to check. It basicly runs this command:

Read more…

Perl Nagios Plugin

January 21st, 2009 1 comment

Thanks to Ton Voon now it has become even easier to develop nagios plugins using Perl.
A family of perl modules to streamline writing Nagios Just Released 6 Jan 2009.

Read more…

Currency rate monitor script

December 10th, 2008 1 comment

Using Nagios I am able to monitor the currency conversion rate, so I can know exactly when to sell my currency and to buy my currency. I wrote a creative plugin to nagios that does just that!
Its not my best bash code, I should really rewrite in perl. But the idea is here, and it works.
Anyone wants to build a nagios just to monitor and graph currency exchange rates? I am up for it.
Example:
bash currencymon.sh
Usage: currencymon.sh [–minwarn value] [–maxwarn value] [–mincrit value] [–maxcrit value] [-v|–verbose]
# bash currencymon.sh 2.65 2.95 2.55 3.15
MONEYX OK: Value of EURO is – 3.1623
The current conversion is from Euro x Real, inside the script there is a parameter to change it.
currencymon.sh

Read more…

Check Exchange Mailbox Size

November 28th, 2008 15 comments

Check_mboxsize.ws
Another Nagios plugin. One of my hardest to write.
Note that this will require the Nagios Plugin Service to run as a Administrator Account (local system account) will
not work!
Script example:
…nagios/libexec# ./check_nrpe -H SERVER114 -t 90 -u -c get_top_mbox -a SERVER114 3 2000 4000
WARNING – Full Name, Mona , 2.517,00 MB – San Pil, Eric , 1.175,00 MB – Cabo Boiola, Manul , 991,00 MB

Read more…

CheckFileSize VBS for Nagios

October 22nd, 2008 24 comments

Nagio/NRPE_NT VBS Script to check the size of file(s) inside a Folder.

IMPORTANT, From nagios you Must pass double slashes

Read more…

Exchange Top Senders Nagios Plugin

October 20th, 2008 2 comments

Well I just went back to this old script, I rewrote so it will now work with Nagios.
The output is simple and just reports total Top emailers, the script also requires/takes 3 arguments
topemailers.vbs 3 5000 10000
would report only the Top 3 senders of yestarday and would raise alarm to Warning if TOTAL emails sent yestarday were 5000 and critical for over 10000.
The scriptauto downloads the required files (logparser.dll)
Note: NRPE_NT service must run under a exchange admin account, under local system it will not work.

Read more…