Re: [Nagios-users] Getting graphs for one host, but not another... but both in same hostgroup

2010-10-14 Thread es

 Simple check this site of the pnp4nagios documentation:

http://docs.pnp4nagios.org/pnp-0.4/verify

I think this will help you out finding and analysing the logfiles.


Am 14.10.2010 16:28, schrieb Andrew Davis:
I've stumbled across something odd. We're using Nagios and PNP4Nagios 
to get trending and graphs. I have two clients in the same hostgroup. 
The hostgroup name is "linux-servers". Members are "osiris1" and 
"imhotep". I'm using NRPE to check each. Relevant config files are 
below. In a nutshell, I'm getting disk graphs for Osiris1, but not for 
Imhotep and I can't figure out why. To clarify... the disk graphs are 
there for both. However, for host Osiris1 they are populated with 
data. But for host Imhotep they are blank (not non-existent, existent, 
but blank/empty). Checking manually at the command line of the Nagios 
server shows the pipe and the subsequent data (tests at bottm of 
email). I could understand if was monitoring the hosts individually 
and had a typo in a config for one, but I'm monitoring them as a 
hostgroup and command line tests work, but one is giving graphs with 
results and the other blank graphs. Any thoughts?


*hosts.cfg* (/relevant portion/):

# Linux Hosts #
# -- Linux host
define host {
nameLinux-Servers
register0

hostgroups  linux-servers
check_command   check-host-alive
icon_image  tux.png
statusmap_image tux.png
icon_image_alt  Linux Server
max_check_attempts  3
check_period24x7
contact_groups  unixadmins
notification_interval   120
notification_period 24x7
notification_optionsd, u, r, f, s
}
define host {
host_name   imhotep
use Linux-Servers
alias   Imhotep (SLES)
address 10.1.1.57
parents *changed_for_security_reasons*
}
define host {
host_name   osiris1
use Linux-Servers
alias   Osiris1 (SLES)
address 10.1.1.52
parents *changed_for_security_reasons*
}

*hostgroups.cfg* (/relevant portion/):

# Linux Servers #
define hostgroup {
hostgroup_name  linux-servers
alias   Linux Servers (Checked via NRPE)
members imhotep, osiris1
}

*checkcommands.cfg* (/relevant portion/):

define command {
command_namecheck_nrpe
command_line$USER1$/check_nrpe -H $HOSTADDRESS$ -t 
60 -c $ARG1$

}

*services.cfg* (/relevant portion/):

define service {
hostgroup_name  linux-servers
service_description DISK
check_command   check_nrpe!check_disks
max_check_attempts  3
normal_check_interval   15
retry_check_interval5
check_period24x7
notification_interval   120
notification_period 24x7
notification_optionsw, u, c, r, f, s
contact_groups  unixadmins
action_url  
/nagios/pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$

}

Manual tests from Nagios command line:

[nag...@nephilim ]$ /usr/local/nagios/libexec/check_nrpe -H imhotep -c 
check_disks
DISK OK| /=37431MB;62067;65515;0;68964 /dev/shm=0MB;7187;7586;0;7986 
/srv=487666MB;857825;905482;0;953139 
/Process=771063MB;1151634;1215614;0;1279594 
/home=484743MB;974463;1028600;0;1082737 
/mnt/store=906386MB;1715990;1811323;0;1906656 
/data=397590MB;837857;884405;0;930953 
/mnt/archives=2715115MB;4618679;4875272;0;5131866
[nag...@nephilim ]$ /usr/local/nagios/libexec/check_nrpe -H osiris1 -c 
check_disks
DISK OK| /=5753MB;62067;65515;0;68964 /dev/shm=0MB;7013;7403;0;7793 
/mnt/store=906386MB;1715990;1811323;0;1906656 
/mnt/newxray=651767MB;837621;884155;0;930690 
/mnt/incell=1503651MB;1715990;1811323;0;1906656 
/mnt/newdata=788776MB;878368;927166;0;975965 
/share=560786MB;851256;898548;0;945840 
/data=397590MB;837857;884405;0;930953 
/home=484743MB;974463;1028600;0;1082737 
/mnt/archives=2715115MB;4618679;4875272;0;5131866 
/Peptide=452914MB;85;891359;0;938273


Any thoughts? I'm stumped on this one... anyone know where PNP keeps 
its logs? I'm thinking I might be able to grep through the logs for 
the host with the blank graphs and find something...

--


   A. Davis
   Email:ncc...@gmail.com

   "There is no limit to what a man can accomplish
if he doesn't care who gets the credit." - Ronald Reagan


--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2&  L3.
Spe

Re: [Nagios-users] How to determine the login duration of current user?

2010-10-14 Thread Greg Pangrazio
Another option would be to check the number of logged in users via
check_nt or wmi.

Say you have the service check set to 5 min and the retry set to 5 min
(or what ever is convenient) you then divide the time "x" from above
by 5 and that is the number of retries before an alert.

As soon as someone logs in the service would go back to OK and the
"timeout" would restart.

not as elegant as the vmware solution but much cheaper.

Greg Pangrazio
pangr...@gmail.com




On Thu, Oct 14, 2010 at 9:29 AM, Kevin Davison  wrote:
> I like the sound of that. I agree with you on the passive vs active issue. I 
> often find that setting something up active gets me where I need to go faster 
> and then I never get back to finding a passive way to do it. We'll need to 
> make the modification to each of the VM's (~200) but I think that will do 
> what I want. I'll take a look at doing that. Thank you very much!
>
> -Original Message-
> From: Diego Roccia [mailto:diego.roc...@gmail.com]
> Sent: October-14-10 9:34 AM
> To: Nagios Users List
> Subject: Re: [Nagios-users] How to determine the login duration of current 
> user?
>
>  There's another solution: you could setup a logon script that sends
> an nsca every time a user login to the server. Then, you can check the
> service  freshness against a 1 or 2 days threshold. It's a completely
> different approach, but I prefer to use passive checks when I need to
> trigger user created events, as I think it makes more sense (and less
> load and traffic) than checking continously the logs.
>
> Diego
>
>
> On Thu, Oct 14, 2010 at 3:22 PM, C. Bensend  wrote:
>>
>>> VMware's version of this is VDI - it's pretty good, but it's not cheap -
>>> it needs a special kind of ESX license so you can't run those desktops
>>> on your existing servers, they need to be on dedicated ESX/VDI servers.
>>
>> This statement is not accurate, at least not in our locale.  While
>> VDI *does* require a separate license, it will run just fine on
>> existing ESX infrastructure and does not have to be on a separate,
>> "special" ESX host.  We have many virtual desktops and some of them
>> are intermingled with our virtual servers.
>>
>> Good idea/bad idea is still an exercise left up to the reader.  :)
>>
>> Benny
>>
>>
>> --
>> "Because you have arms like noodles, while I am vigorous and
>> burly."                               -- Hodgins, "Bones"
>>
>>
>>
>> --
>> Beautiful is writing same markup. Internet Explorer 9 supports
>> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
>> Spend less time writing and  rewriting code and more time creating great
>> experiences on the web. Be a part of the beta today.
>> http://p.sf.net/sfu/beautyoftheweb
>> ___
>> 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
>>
>
>
>
> --
> Diego Roccia
> diego.roccia (at) gmail (dot) com
>
> --
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today.
> http://p.sf.net/sfu/beautyoftheweb
> ___
> 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
> --
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today.
> http://p.sf.net/sfu/beautyoftheweb
> ___
> 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

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http:/

Re: [Nagios-users] How to determine the login duration of current user?

2010-10-14 Thread Kevin Davison
I like the sound of that. I agree with you on the passive vs active issue. I 
often find that setting something up active gets me where I need to go faster 
and then I never get back to finding a passive way to do it. We'll need to make 
the modification to each of the VM's (~200) but I think that will do what I 
want. I'll take a look at doing that. Thank you very much!

-Original Message-
From: Diego Roccia [mailto:diego.roc...@gmail.com] 
Sent: October-14-10 9:34 AM
To: Nagios Users List
Subject: Re: [Nagios-users] How to determine the login duration of current user?

  There's another solution: you could setup a logon script that sends
an nsca every time a user login to the server. Then, you can check the
service  freshness against a 1 or 2 days threshold. It's a completely
different approach, but I prefer to use passive checks when I need to
trigger user created events, as I think it makes more sense (and less
load and traffic) than checking continously the logs.

Diego


On Thu, Oct 14, 2010 at 3:22 PM, C. Bensend  wrote:
>
>> VMware's version of this is VDI - it's pretty good, but it's not cheap -
>> it needs a special kind of ESX license so you can't run those desktops
>> on your existing servers, they need to be on dedicated ESX/VDI servers.
>
> This statement is not accurate, at least not in our locale.  While
> VDI *does* require a separate license, it will run just fine on
> existing ESX infrastructure and does not have to be on a separate,
> "special" ESX host.  We have many virtual desktops and some of them
> are intermingled with our virtual servers.
>
> Good idea/bad idea is still an exercise left up to the reader.  :)
>
> Benny
>
>
> --
> "Because you have arms like noodles, while I am vigorous and
> burly."                               -- Hodgins, "Bones"
>
>
>
> --
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today.
> http://p.sf.net/sfu/beautyoftheweb
> ___
> 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
>



-- 
Diego Roccia
diego.roccia (at) gmail (dot) com

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
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
--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
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

[Nagios-users] Getting graphs for one host, but not another... but both in same hostgroup

2010-10-14 Thread Andrew Davis
 I've stumbled across something odd. We're using Nagios and PNP4Nagios 
to get trending and graphs. I have two clients in the same hostgroup. 
The hostgroup name is "linux-servers". Members are "osiris1" and 
"imhotep". I'm using NRPE to check each. Relevant config files are 
below. In a nutshell, I'm getting disk graphs for Osiris1, but not for 
Imhotep and I can't figure out why. To clarify... the disk graphs are 
there for both. However, for host Osiris1 they are populated with data. 
But for host Imhotep they are blank (not non-existent, existent, but 
blank/empty). Checking manually at the command line of the Nagios server 
shows the pipe and the subsequent data (tests at bottm of email). I 
could understand if was monitoring the hosts individually and had a typo 
in a config for one, but I'm monitoring them as a hostgroup and command 
line tests work, but one is giving graphs with results and the other 
blank graphs. Any thoughts?


*hosts.cfg* (/relevant portion/):

# Linux Hosts #
# -- Linux host
define host {
nameLinux-Servers
register0

hostgroups  linux-servers
check_command   check-host-alive
icon_image  tux.png
statusmap_image tux.png
icon_image_alt  Linux Server
max_check_attempts  3
check_period24x7
contact_groups  unixadmins
notification_interval   120
notification_period 24x7
notification_optionsd, u, r, f, s
}
define host {
host_name   imhotep
use Linux-Servers
alias   Imhotep (SLES)
address 10.1.1.57
parents *changed_for_security_reasons*
}
define host {
host_name   osiris1
use Linux-Servers
alias   Osiris1 (SLES)
address 10.1.1.52
parents *changed_for_security_reasons*
}

*hostgroups.cfg* (/relevant portion/):

# Linux Servers #
define hostgroup {
hostgroup_name  linux-servers
alias   Linux Servers (Checked via NRPE)
members imhotep, osiris1
}

*checkcommands.cfg* (/relevant portion/):

define command {
command_namecheck_nrpe
command_line$USER1$/check_nrpe -H $HOSTADDRESS$ -t 
60 -c $ARG1$

}

*services.cfg* (/relevant portion/):

define service {
hostgroup_name  linux-servers
service_description DISK
check_command   check_nrpe!check_disks
max_check_attempts  3
normal_check_interval   15
retry_check_interval5
check_period24x7
notification_interval   120
notification_period 24x7
notification_optionsw, u, c, r, f, s
contact_groups  unixadmins
action_url  
/nagios/pnp/index.php?host=$HOSTNAME$&srv=$SERVICEDESC$

}

Manual tests from Nagios command line:

[nag...@nephilim ]$ /usr/local/nagios/libexec/check_nrpe -H imhotep -c 
check_disks
DISK OK| /=37431MB;62067;65515;0;68964 /dev/shm=0MB;7187;7586;0;7986 
/srv=487666MB;857825;905482;0;953139 
/Process=771063MB;1151634;1215614;0;1279594 
/home=484743MB;974463;1028600;0;1082737 
/mnt/store=906386MB;1715990;1811323;0;1906656 
/data=397590MB;837857;884405;0;930953 
/mnt/archives=2715115MB;4618679;4875272;0;5131866
[nag...@nephilim ]$ /usr/local/nagios/libexec/check_nrpe -H osiris1 -c 
check_disks
DISK OK| /=5753MB;62067;65515;0;68964 /dev/shm=0MB;7013;7403;0;7793 
/mnt/store=906386MB;1715990;1811323;0;1906656 
/mnt/newxray=651767MB;837621;884155;0;930690 
/mnt/incell=1503651MB;1715990;1811323;0;1906656 
/mnt/newdata=788776MB;878368;927166;0;975965 
/share=560786MB;851256;898548;0;945840 
/data=397590MB;837857;884405;0;930953 
/home=484743MB;974463;1028600;0;1082737 
/mnt/archives=2715115MB;4618679;4875272;0;5131866 
/Peptide=452914MB;85;891359;0;938273


Any thoughts? I'm stumped on this one... anyone know where PNP keeps its 
logs? I'm thinking I might be able to grep through the logs for the host 
with the blank graphs and find something...


--


  A. Davis
  Email: ncc...@gmail.com

  "There is no limit to what a man can accomplish
   if he doesn't care who gets the credit." - Ronald Reagan

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb___
Nagios-

Re: [Nagios-users] How to determine the login duration of current user?

2010-10-14 Thread Diego Roccia
  There's another solution: you could setup a logon script that sends
an nsca every time a user login to the server. Then, you can check the
service  freshness against a 1 or 2 days threshold. It's a completely
different approach, but I prefer to use passive checks when I need to
trigger user created events, as I think it makes more sense (and less
load and traffic) than checking continously the logs.

Diego


On Thu, Oct 14, 2010 at 3:22 PM, C. Bensend  wrote:
>
>> VMware's version of this is VDI - it's pretty good, but it's not cheap -
>> it needs a special kind of ESX license so you can't run those desktops
>> on your existing servers, they need to be on dedicated ESX/VDI servers.
>
> This statement is not accurate, at least not in our locale.  While
> VDI *does* require a separate license, it will run just fine on
> existing ESX infrastructure and does not have to be on a separate,
> "special" ESX host.  We have many virtual desktops and some of them
> are intermingled with our virtual servers.
>
> Good idea/bad idea is still an exercise left up to the reader.  :)
>
> Benny
>
>
> --
> "Because you have arms like noodles, while I am vigorous and
> burly."                               -- Hodgins, "Bones"
>
>
>
> --
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today.
> http://p.sf.net/sfu/beautyoftheweb
> ___
> 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
>



-- 
Diego Roccia
diego.roccia (at) gmail (dot) com

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
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] How to determine the login duration of current user?

2010-10-14 Thread C. Bensend

> VMware's version of this is VDI - it's pretty good, but it's not cheap -
> it needs a special kind of ESX license so you can't run those desktops
> on your existing servers, they need to be on dedicated ESX/VDI servers.

This statement is not accurate, at least not in our locale.  While
VDI *does* require a separate license, it will run just fine on
existing ESX infrastructure and does not have to be on a separate,
"special" ESX host.  We have many virtual desktops and some of them
are intermingled with our virtual servers.

Good idea/bad idea is still an exercise left up to the reader.  :)

Benny


-- 
"Because you have arms like noodles, while I am vigorous and
burly."   -- Hodgins, "Bones"



--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
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] can't get host to display in Host Detail panel

2010-10-14 Thread Diego Roccia
Actually the init script is not ran if you're running it via xinetd.
you should look for server_args in /etc/xinet.d/nrpe (usually this is
the file name)

Diego

On Thu, Oct 14, 2010 at 12:53 PM, Assaf Flatto  wrote:
> On 13/10/10 00:04, Jonathan Wiggins wrote:
>
> 
>
> the place to look is in the nrpe init script , usually found in the
> /etc/init.d directory
>
> you are looking for the NrpeCfg parameter .
>
> Make sure to point it to the nrpe.cfg file you found.
>
> Assaf
>
> but then I see this also in the logs
> nrpe[11817]: Unable to open config file '/usr/local/nagios/etc/nrpe.cfg' for
> reading
> when I do a "locate nrpe.cfg", its only found in one location:
>  /etc/nagios/nrpe.cfg   --- looking at that file below- looks normal to me,
> and where is the application pulling this other nrpe.cfg location from, and
> how to change it? ((Or does that really not matter in this issue - seems
> like it would - and I need to focus elsewhere>?))
>
>
> log_facility=daemon
>
> pid_file=/var/run/nrpe/nrpe.pid
>
> server_port=5666
>
> #server_address=127.0.0.1
>
> nrpe_user=nagios
> nrpe_group=nagios
>
> allowed_hosts=127.0.0.1,10.0.100.130
> dont_blame_nrpe=0
> # command_prefix=/usr/bin/sudo
>
> debug=0 --> 1
>
> command_timeout=60
> connection_timeout=300
>
> #allow_weak_random_seed=1
>
> #include=
>
> include_dir=/etc/nrpe.d/
>
> --
> Never,Ever Cut A Deal With a Dragon
>
>
> Next year I will be doing the London to Paris bike ride to
> raise money for the DogTrust (www.dogstrust.co.uk) .
> Please Sponsor me at http://www.justgiving.com/Assaf-Flatto
>
> --
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today.
> http://p.sf.net/sfu/beautyoftheweb
> ___
> 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
>



-- 
Diego Roccia
diego.roccia (at) gmail (dot) com

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
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] How to determine the login duration of current user?

2010-10-14 Thread Kevin Davison
Technically, they do. The programmers who use them often work "when inspiration 
strikes". I encourage them to log out when they're done but the machines need 
to be available for an RDP connection 24/7. 


- Original Message -
From: Kevin Keane 
To: Nagios Users List 
Sent: Wed Oct 13 17:33:11 2010
Subject: Re: [Nagios-users] How to determine the login duration of  current 
user?

Do these virtual machines have to run 24/7? If not, you could automatically 
shut them down at 2 AM - either from your hypervisor, or with the shutdown.exe 
command.

When you do that, you could leave the VMs simply sitting there taking up disk 
space, or you can check the file date of the .VMDK file for that VM.

By the way, some vendors have yet another solution that might work for you. Has 
nothing to do with Nagios. You can auto-create virtual machines as needed. 
Basically, you just create one template XP VM image. Only when a user logs on, 
this template is cloned. When the user logs off, the clone is destroyed. The 
next time the same user logs on, he gets a completely fresh virgin copy of XP.

Citrix has something like this, and I believe Microsoft also is working on 
offering something similar. I'm sure VMWare does, too, but I haven't heard 
anything specific about it. 

-Original Message-
From: Kevin Davison [mailto:kdavi...@innosphere.ca] 
Sent: Wednesday, October 13, 2010 2:02 PM
To: Nagios Users List
Subject: Re: [Nagios-users] How to determine the login duration of current user?

I took a look at that and the machines aren't generating log entries when a 
user logs in. 

I also forgot to mention that since these XP's are just used for software 
testing, the machines aren't joined to a domain.

-Original Message-
From: Jim Avery [mailto:j...@jimavery.me.uk]
Sent: October-13-10 4:22 PM
To: Nagios Users List
Subject: Re: [Nagios-users] How to determine the login duration of current user?

On 13 October 2010 18:37, Kevin Davison  wrote:
> We have a large number of XP Virtual Machines that are used for 
> various software testing requirements. The testers are supposed to 
> notify their supervisor when an XP instance is no longer required. 
> Unfortunately that isn't working very well. The end result is that 
> there are a large number of XP instances sitting doing nothing for 
> long periods of time. Ideally, I'd love to receive a notification in 
> the event that any XP instance hasn't been used for x period of time.
>
>
>
> As the machines are accessed by the testers solely via RDP, I was 
> thinking that if I could determine how long it had been since someone 
> had logged into the machine I would be able to judge which machines 
> had been abandoned and remove them.
>
>
>
> I was mulling over using a WMI check to pull what I need from 
> Win32_NetworkLoginProfile but I'm not getting anything returned that I 
> know how to make use of.
>
>
>
> Has anyone had a need to perform a check like this in the past or can 
> anyone offer any advice as to where else I should start looking?


Is an entry made in one of the Windows Event Logs whenever a user logs in?  If 
so I guess you could use CheckEventLog in NSClient++ to warn if there have been 
no logins in x days.  For an example, see the section "Check if a script is 
running as it should" on the page describing the old syntax:

http://www.nsclient.org/nscp/wiki/CheckEventLog/CheckEventLog/old

hth,

Jim

--
Beautiful is writing same markup. Internet Explorer 9 supports standards for 
HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great 
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
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

--
Beautiful is writing same markup. Internet Explorer 9 supports standards for 
HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great 
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
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

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CS

Re: [Nagios-users] Notifications problem?!?

2010-10-14 Thread Jim Avery
On 14 October 2010 10:55, Gaertner, Joern  wrote:
> This is the normal procedure we handle checks (if they are important)
> - work hours -> sms + email
> - off work hours -> email
>
> But for this check the customer doesn't want to read emails first in the 
> morning to know if there were issues - he wants a sms if there was a 
> notification over night and if so he will read his emails.
>
> That's unfortunately the requirement ...


Some people are just so difficult to please!

I don't think there's anything in Nagios itself which will do that for you.

I would set up a different notification command which writes all out
of hours notifications overnight to a file, then have an ordinary cron
job which runs first thing each morning and sends the SMS message (or
sends a passive check to Nagios so it can send the message) if there
is anything in that file.

Alternatively, if you run NDO then you could script a plugin which
runs from cron each morning and does a query of the nagios MySQL
database to see if there were any notifications out of hours...

cheers,

Jim

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
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] How to determine the login duration of current user?

2010-10-14 Thread Richard Clark
VMware's version of this is VDI - it's pretty good, but it's not cheap -
it needs a special kind of ESX license so you can't run those desktops
on your existing servers, they need to be on dedicated ESX/VDI servers.

On Wed, Oct 13, 2010 at 02:33:11PM -0700, Kevin Keane wrote:
> Do these virtual machines have to run 24/7? If not, you could automatically 
> shut them down at 2 AM - either from your hypervisor, or with the 
> shutdown.exe command.
> 
> When you do that, you could leave the VMs simply sitting there taking up disk 
> space, or you can check the file date of the .VMDK file for that VM.
> 
> By the way, some vendors have yet another solution that might work for you. 
> Has nothing to do with Nagios. You can auto-create virtual machines as 
> needed. Basically, you just create one template XP VM image. Only when a user 
> logs on, this template is cloned. When the user logs off, the clone is 
> destroyed. The next time the same user logs on, he gets a completely fresh 
> virgin copy of XP.
> 
> Citrix has something like this, and I believe Microsoft also is working on 
> offering something similar. I'm sure VMWare does, too, but I haven't heard 
> anything specific about it. 
> 
-- 
Richard Clark
rich...@fohnet.co.uk


signature.asc
Description: Digital signature
--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb___
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] can't get host to display in Host Detail panel

2010-10-14 Thread Assaf Flatto

 On 13/10/10 00:04, Jonathan Wiggins wrote:

**


the place to look is in the nrpe init script , usually found in the 
/etc/init.d directory


you are looking for the NrpeCfg parameter .

Make sure to point it to the nrpe.cfg file you found.

Assaf

but then I see this also in the logs
*

*
nrpe[11817]: Unable to open config file 
'/usr/local/nagios/etc/nrpe.cfg' for reading


when I do a "locate nrpe.cfg", its only found in one location: 
 /etc/nagios/nrpe.cfg   --- looking at that file below- looks normal 
to me, and where is the application pulling this other nrpe.cfg 
location from, and how to change it? ((Or does that really not matter 
in this issue - seems like it would - and I need to focus elsewhere>?))




log_facility=daemon


pid_file=/var/run/nrpe/nrpe.pid


server_port=5666


#server_address=127.0.0.1

nrpe_user=nagios

nrpe_group=nagios


allowed_hosts=127.0.0.1,10.0.100.130

dont_blame_nrpe=0

# command_prefix=/usr/bin/sudo

debug=0 --> 1


command_timeout=60

connection_timeout=300


#allow_weak_random_seed=1
#include=


include_dir=/etc/nrpe.d/



--
Never,Ever Cut A Deal With a Dragon


Next year I will be doing the London to Paris bike ride to
raise money for the DogTrust (www.dogstrust.co.uk) .
Please Sponsor me at http://www.justgiving.com/Assaf-Flatto

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb___
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] Disabling Nagios in the event of network card failure.

2010-10-14 Thread Kristan Webb

> -Original Message-
> From: Giles Coochey [mailto:gi...@coochey.net] 
> Sent: 12 October 2010 16:00
> To: Nagios Users List
> Subject: Re: [Nagios-users] Disabling Nagios in the event of 
> network card failure.
> 
> On Tue, October 12, 2010 16:38, Max Hetrick wrote:
> > On 10/12/2010 07:56 AM, Kristan Webb wrote:
> >> Hi All,
> >>
> >> Hopefully an easy query.
> >>
> >> We run Nagios 3 on an Ubuntu box and I'm looking for a way to stop 
> >> Nagios falsely reporting services/hosts as down/unknown if, for 
> >> example, the network cable was pulled out of the server / the card 
> >> failed. This has happened recently for over an hour and now all 
> >> hosts/services have a false hours downtime.
> >>
> >> I'm not too bothered, but I like to try and keep things as neat as 
> >> possible.
> >>
> >> Does anyone know of a way of preventing this? All I can 
> think is some 
> >> way of detecting when the server has lost network and then 
> >> automatically quitting / disabling Nagios?
> >
> > This is pretty much the entire point of Nagios, that is to 
> report when 
> > something has failed.
> >
> > If you're intentionally taking down the network on the host, then I 
> > would suggest scheduling downtime for that host if you or 
> others know 
> > you're going to take it down for a period of time, 
> otherwise, Nagios 
> > is doing it's job.
> >
> 
> I thought you could do some generic test to check the network 
> connectivity (ping default gateway, for instance) and make 
> that test the parent or grand^x-father of all other tests.
> That way if you lose connectivity, that test will fail, 
> others will become unknown.
> 
> 

This makes sense. I guess what I was asking is for Nagios not to even
return unknown, but on reflection this is silly.
I'll experiment with dependencies and at least that way hosts should end
up being unknown rather than critical.
Thanks for your help all.




> 
> --
> 
> Beautiful is writing same markup. Internet Explorer 9 
> supports standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, 
> and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time 
> creating great experiences on the web. Be a part of the beta today.
> http://p.sf.net/sfu/beautyoftheweb
> ___
> 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
> 

http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal 
views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on 
it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.


--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
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] Notifications problem?!?

2010-10-14 Thread Gaertner, Joern
This is the normal procedure we handle checks (if they are important) 
- work hours -> sms + email 
- off work hours -> email

But for this check the customer doesn't want to read emails first in the 
morning to know if there were issues - he wants a sms if there was a 
notification over night and if so he will read his emails.

That's unfortunately the requirement ...


Cheers

Joern



-Original Message-
From: Jim Avery [mailto:j...@jimavery.me.uk] 
Sent: Wednesday, October 13, 2010 10:33 PM
To: Nagios Users List
Subject: Re: [Nagios-users] Notifications problem?!?

On 13 October 2010 15:42, Gaertner, Joern  wrote:
> Hi,
>
> I have a nagios check that needs a special kind of notification.
>
> The check runs 24/7 but there should only be notifications during business 
> hours (8-18)  – so far no problem.
>
> But the user wants to also get a notification at the start of the business 
> hours if there was any problem noticed by the check during the 
> non-notification time.
>
> Is there an elegant solution of this problem in any of your minds?
>
> Cheers
>
> Jörn

Send the notifications out-of-hours by email.  The user will pick up the email 
when they login in the morning!

I'm sorry if that sounds a bit trite, but I've thought the same thing myself in 
the past and then thought duh!

--
Beautiful is writing same markup. Internet Explorer 9 supports standards for 
HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great 
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
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

--
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
___
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