[Nagios-users] checking ms sql...

2011-10-07 Thread Metron 6 (six)
hello,

i have a script to check a microsoft sql server.
script runs every hour and checks if there are any new records.
output of the script is like this:

400 added since last time 60' ago (33716 - 33316)
Participants an hour ago: 33316
Participants now: 33716
Difference: 400

i want to add it, and if the difference is 0, to send notifications...
but i dont know how...

can anyone help me ?


rgds, george

-- 

regards,
Metron 6 (six)

metr...@gmail.com

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null


Re: [Nagios-users] checking ms sql...

2011-10-07 Thread Kirill Bychkov
Hello,

For example, in your script you must set a conditional: if difference 0,
then exit with status CRITICAL.

On 7 October 2011 13:46, Metron 6 (six)  wrote:

> hello,
>
> i have a script to check a microsoft sql server.
> script runs every hour and checks if there are any new records.
> output of the script is like this:
>
> 400 added since last time 60' ago (33716 - 33316)
> Participants an hour ago: 33316
> Participants now: 33716
> Difference: 400
>
> i want to add it, and if the difference is 0, to send notifications...
> but i dont know how...
>
> can anyone help me ?
>
>
> rgds, george
>
> --
>
> regards,
> Metron 6 (six)
>
> metr...@gmail.com
>
>
> --
> All of the data generated in your IT infrastructure is seriously valuable.
> Why? It contains a definitive record of application performance, security
> threats, fraudulent activity, and more. Splunk takes this data and makes
> sense of it. IT sense. And common sense.
> http://p.sf.net/sfu/splunk-d2dcopy2
> ___
> Nagios-users mailing list
> Nagios-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagios-users
> ::: Please include Nagios version, plugin version (-v) and OS when
> reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>



-- 
Kirill
--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Re: [Nagios-users] checking ms sql...

2011-10-07 Thread Nagios

read this and incorporate it to your exit codes.

http://nagios.sourceforge.net/docs/nagioscore/3/en/pluginapi.html


Assaf
- Original Message -
From: "Metron 6 (six)" 
To: "Nagios Users List" 
Sent: Friday, 7 October, 2011 10:46:14 AM
Subject: [Nagios-users] checking ms sql...

hello,

i have a script to check a microsoft sql server.
script runs every hour and checks if there are any new records.
output of the script is like this:

400 added since last time 60' ago (33716 - 33316)
Participants an hour ago: 33316
Participants now: 33716
Difference: 400

i want to add it, and if the difference is 0, to send notifications...
but i dont know how...

can anyone help me ?


rgds, george

-- 

regards,
Metron 6 (six)

metr...@gmail.com

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

--
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
___
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null