NSClient - ERROR: Failed to get PDH value

Verhaeghe, Koen Koen.Verhaeghe at meucci-solutions.com
Wed Mar 10 09:40:09 CET 2010


 
Hi,

You need to reset the windows performance counters:
C:\windows\system32\lodctr \R

Regards,
Koen


-----Original Message-----
From: nagios-users-request at lists.sourceforge.net
[mailto:nagios-users-request at lists.sourceforge.net] 
Sent: 2010-03-09 18:42
To: nagios-users at lists.sourceforge.net
Subject: Nagios-users Digest, Vol 46, Issue 14

Send Nagios-users mailing list submissions to
	nagios-users at lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
	https://lists.sourceforge.net/lists/listinfo/nagios-users
or, via email, send a message with subject or body 'help' to
	nagios-users-request at lists.sourceforge.net

You can reach the person managing the list at
	nagios-users-owner at lists.sourceforge.net

When replying, please edit your Subject line so it is more specific than
"Re: Contents of Nagios-users digest..."


Today's Topics:

   1. Re: Notification Interval set to 0 not working as per doc
      (Jatin Davey)
   2. Re: priority: host or service who's really on top? (Jim Avery)
   3. Re: Monitoring a process with its pid (Jatin Davey)
   4. Re: Host/Svc Deps (Jim Avery)
   5. Nagios DST bug and upcoming DST-time switch in Europe (Mark Elsen)
   6. Re: Nagios DST bug and upcoming DST-time switch in	Europe
      (Ton Voon)
   7. Re: Streamline Alerts/Notifications for user group (Martin Melin)
   8. NSClient - ERROR: Failed to get PDH value. (Jatin Davey)
   9. Restrict user only to enable/disable checks (Jelle Smet)
  10. Re: Streamline Alerts/Notifications for user group (Juki)
  11. NRPE install vs. SSL (Gezina Dekker)
  12. Re: NRPE install vs. SSL (Juki)
  13. Re: NRPE install vs. SSL (Richard Quintin)
  14. Re: check_by_ssh from a different username (Marc Powell)
  15. Re: Notification Interval set to 0 not working as	per doc
      (Marc Powell)
  16. Re: NSClient - ERROR: Failed to get PDH value. (Marc Powell)
  17. Re: Restrict user only to enable/disable checks (Marc Powell)
  18. Re: check_by_ssh from a different username (Matt Simmons)
  19. Re: NRPE install vs. SSL (Gezina Dekker)
  20. Re: priority: host or service who's really on top? (alexus)
  21. Re: priority: host or service who's really on top?
      (Morris, Patrick)
  22. check_openmanage: "Failed to load external entity" with OMSA
      v5.3.0 on 2003 (C. Bensend)
  23. Re: NSClient - ERROR: Failed to get PDH value. (Jim Avery)
  24. event handler script not executing (Rick)
  25. Re: check_openmanage: "Failed to load external	entity" with
      OMSA v5.3.0 on 2003 (Trond Hasle Amundsen)


----------------------------------------------------------------------

Message: 1
Date: Tue, 09 Mar 2010 13:20:11 +0530
From: Jatin Davey <jashokda at cisco.com>
Subject: Re: [Nagios-users] Notification Interval set to 0 not working
	as per doc
To: Jim Avery <jim at jimavery.me.uk>
Cc: Nagios Mailinglist <nagios-users at lists.sourceforge.net>
Message-ID: <4B95FDB3.7040603 at cisco.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Please let me know what needs to be done , i am kind of receving 1000
notifications per day for the same hosts.

Thanks
Jatin

On 3/8/2010 9:54 AM, Jatin Davey wrote:
> Hi Jim
>
> Replies to the questions that you had asked about the issue:
>
> 1. I do not have any escalations defined.
>
> 2. Given below is the output from one of the host as found in the 
> object.cache file:
>
> define host {
>         host_name       Windows-xxxx
>         alias   Windows XP PC
>         address x.x.x.x
>         check_period    24x7
>         check_command   check-host-alive
>         contact_groups  xxxx
>         notification_period     24x7
>         initial_state   o
>         check_interval  2.000000
>         retry_interval  1.000000
>         max_check_attempts      2
>         active_checks_enabled   1
>         passive_checks_enabled  1
>         obsess_over_host        1
>         event_handler_enabled   1
>         low_flap_threshold      0.000000
>         high_flap_threshold     0.000000
>         flap_detection_enabled  1
>         flap_detection_options  o,d,u
>         freshness_threshold     0
>         check_freshness 0
>         notification_options    d,r,f,s
>         notifications_enabled   1
>         notification_interval   0.000000
>         first_notification_delay        0.000000
>         stalking_options        n
>         process_perf_data       1
>         failure_prediction_enabled      1
>         retain_status_information       1
>         retain_nonstatus_information    1
>         }
>
> Please let me know if any further inputs are needed.
>
> Thanks
> Jatin
>
>
> On 3/5/2010 8:04 PM, Jim Avery wrote:
>> On 5 March 2010 10:16, Jatin Davey<jashokda at cisco.com>  wrote:
>>> Hi
>>>
>>> The Nagios documentation says that when you set the "Notification 
>>> Interval" to 0 , it will notify with an email alert only once when 
>>> the service state goes to "down" from "up" , it will then again 
>>> notify when the service comes back to "up" state , correct me if am
wrong.
>>>
>>> But when i set this to 0 , i am still getting email notifications 
>>> every 10 mins for the service which is in "down" state for more than
one day.
>>>
>>> Is this is a bug or am i missing something here , Please let me
know.
>> Bit of a long shot, but do you have any escalations defined?
>>
>> Also, check what the service or host definition looks like in your 
>> objects.cache file and post it here if you would like it
checked-over.
>>



------------------------------

Message: 2
Date: Tue, 9 Mar 2010 07:56:36 +0000
From: Jim Avery <jim at jimavery.me.uk>
Subject: Re: [Nagios-users] priority: host or service who's really on
	top?
To: google at alexus.org
Cc: Nagios Users <nagios-users at lists.sourceforge.net>
Message-ID:
	<765d77c81003082356y7fd7a422sdd00b78fa8e18e68 at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On 8 March 2010 22:16, alexus <alexus at gmail.com> wrote:
> if i define my host to be checked/notify only at certain time frame, 
> let's say 10-18 yet service states 24/7 ... who takes priority? host's

> definition or service?

If the service check fails, I think Nagios would check the host anyway.
You might like to run a test to confirm this.



------------------------------

Message: 3
Date: Tue, 09 Mar 2010 13:27:25 +0530
From: Jatin Davey <jashokda at cisco.com>
Subject: Re: [Nagios-users] Monitoring a process with its pid
To: Matt Simmons <standalone.sysadmin at gmail.com>
Cc: nagios-users at lists.sourceforge.net
Message-ID: <4B95FF65.2090705 at cisco.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Thanks Matt,

It solved my problem.

Thanks
Jatin

On 3/8/2010 9:01 PM, Matt Simmons wrote:
> If you have snmp enabled on the hosts, you can pull that information
out:
>
> ~$ snmpwalk -v 2c -c COMMUNITY myhost.mydomain.com
> HOST-RESOURCES-MIB::hrSWRunName.3309
> HOST-RESOURCES-MIB::hrSWRunName.3309 = STRING: "crond"
>
>
>
> On Mon, Mar 8, 2010 at 8:10 AM, Jatin Davey<jashokda at cisco.com>
wrote:
>    
>> Let me re-phrase it a little ,
>>
>> Basically what i want is to give the process id as the input and make

>> sure on that target machine i have the process with the given id 
>> running , once it stops there might not be the process running with 
>> that id and hence i need to raise an email notification alert.
>>
>> Thanks
>> Jatin
>>
>> On 3/8/2010 5:41 PM, Jatin Davey wrote:
>>      
>>> Hi All
>>>
>>> Do we have a plugin that can monitor process id (pid) on a target 
>>> machine , the target machine could be anything such as windows , 
>>> linux , solaris etc and alert with an email notification when the 
>>> process id changes.
>>>
>>> Appreciate your responses.
>>>
>>> Thanks
>>> Jatin
>>>
>>> --------------------------------------------------------------------
>>> ---------- Download Intel® Parallel Studio Eval Try the new 
>>> software tools for yourself. Speed compiling, find bugs proactively,

>>> and fine-tune applications for parallel performance.
>>> See why Intel Parallel Studio got high marks during beta.
>>> http://p.sf.net/sfu/intel-sw-dev
>>> _______________________________________________
>>> Nagios-users mailing list
>>> Nagios-users at 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
>>>
>>>
>>>        
>> ---------------------------------------------------------------------
>> --------- Download Intel® Parallel Studio Eval Try the new 
>> software tools for yourself. Speed compiling, find bugs proactively, 
>> and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>> _______________________________________________
>> Nagios-users mailing list
>> Nagios-users at 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
>>
>>      
>
>
>    



------------------------------

Message: 4
Date: Tue, 9 Mar 2010 08:01:30 +0000
From: Jim Avery <jim at jimavery.me.uk>
Subject: Re: [Nagios-users] Host/Svc Deps
To: "Joseph L. Casale" <jcasale at activenetwerx.com>
Cc: "nagios-users at lists.sourceforge.net"
	<nagios-users at lists.sourceforge.net>
Message-ID:
	<765d77c81003090001k667241dev7e14b87e3f9758aa at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On 9 March 2010 02:47, Joseph L. Casale <jcasale at activenetwerx.com>
wrote:
> Is it possible to make hosts dependant on single services from another
host?
> An example being a monitored vpn tunnel on a firewall, and the hosts
it provides.
> The firewall may very well be up, but the tunnel status alone dictates

> the availability of the hosts it provides.
>
> >From what I gather, there are only host or service deps, also making 
> >groups
> such that all the services of a host depend on one service but the 
> host check would remain?

I'm not sure.  I would probably define the tunnel as a host in its own
right.  A 'host' doesn't always have to be a physical box.



------------------------------

Message: 5
Date: Tue, 9 Mar 2010 09:19:09 +0100
From: Mark Elsen <mark.elsen at gmail.com>
Subject: [Nagios-users] Nagios DST bug and upcoming DST-time switch in
	Europe
To: nagios-users at lists.sourceforge.net
Message-ID:
	<f4334ce51003090019t4746627bg735bd869fa5ef727 at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

Nagios 3.2.0
--------------------

 - By the end of the month, Europe will switch to DST.
   Will I be affected by the Nagios DST-BUG which , which results in
NAGIOS becoming
   dis-functional ?

Which countermeasures can I take to prevent being struck by this problem
?

M.



------------------------------

Message: 6
Date: Tue, 9 Mar 2010 08:32:59 +0000
From: Ton Voon <ton.voon at opsera.com>
Subject: Re: [Nagios-users] Nagios DST bug and upcoming DST-time
	switch in	Europe
To: Nagios Users Mailinglist <nagios-users at lists.sourceforge.net>
Message-ID: <F07AE9B5-49A5-47B3-A346-993617DBD3BF at opsera.com>
Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes


On 9 Mar 2010, at 08:19, Mark Elsen wrote:

> Nagios 3.2.0
> --------------------
>
> - By the end of the month, Europe will switch to DST.
>   Will I be affected by the Nagios DST-BUG which , which results in 
> NAGIOS becoming
>   dis-functional ?
>
> Which countermeasures can I take to prevent being struck by this 
> problem ?
>

The bug, which stops all Nagios monitoring for 24 hours, occurs when  
"time moves backwards". This does not happen when "time moves  
forward". However, any other timeperiods (such as 09:00-17:00) maybe  
incorrect by an hour, which is obviously not as serious. This is true  
for Nagios 3.2.0.

Ton




------------------------------

Message: 7
Date: Tue, 9 Mar 2010 10:13:58 +0100
From: Martin Melin <mmelin at gmail.com>
Subject: Re: [Nagios-users] Streamline Alerts/Notifications for user
	group
To: Nagios Users Mail-list <nagios-users at lists.sourceforge.net>
Message-ID:
	<e4a7509d1003090113w66087a76k492998e762908efa at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On Tue, Mar 9, 2010 at 7:57 AM, Juki <juki.emma at gmail.com> wrote:
> Hi list,
>
> I'm running Nagios-3.2.0 with plugins-1.4.14 on an openSuSE 11.0
platform.
> I have setup both e-mail and sms notifications for different groups of
users
> based on the instructions here;
>
> http://nagios.sourceforge.net/docs/3_0/quickstart-opensuse.html
>
> I would like to be able to send host DOWN *only* notifications/alerts
to a
> particular user group. In other words, I would like that user group to
> receive alerts ONLY when a host goes DOWN
> and no other alerts/notifications whatsoever. I have looked at on-call
> rotations but that doesn't seem to suite my need.
>
> Has anyone got suggestions on how to implement this?

If these users should never get anything else than DOWN notifications,
use service_notification_options and host_notification_options in the
contact definition.

You could also do this with escalations, but it sounds like the above
will work for you?



------------------------------

Message: 8
Date: Tue, 09 Mar 2010 14:45:51 +0530
From: Jatin Davey <jashokda at cisco.com>
Subject: [Nagios-users] NSClient - ERROR: Failed to get PDH value.
To: Nagios Mailinglist <nagios-users at lists.sourceforge.net>
Message-ID: <4B9611C7.80800 at cisco.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed

Hi

I am getting this error when i monitor my windows box using NSClient++

NSClient - ERROR: Failed to get PDH value.

Please let me know what can be done.

Thanks
Jatin



------------------------------

Message: 9
Date: Tue, 09 Mar 2010 10:01:37 +0100
From: Jelle Smet <nagios at smetj.net>
Subject: [Nagios-users] Restrict user only to enable/disable checks
To: Nagios users <nagios-users at lists.sourceforge.net>
Message-ID: <b6ef1419eaa20b8afbf98a21cc1df00e at smetj.net>
Content-Type: text/plain; charset="utf-8"



Hi list,

I'm looking for a way to allow users do pretty much everything
of the host and service commands except enabling & disabling them.

I
believe these are 

cmd_typ=16 (for all services on the host)
cmd_typ=4
(for the host check)
cmd_typ=6 (for a service check) 

There are a couple
of things which come to my mind such as mod_security, or some other
apache
level restricting stuff.

Has anyone experience in setting up something
like this?
It would be helpfull if people see a helpfull message saying,
you're not allowed to execute this command, so they don't think the
application isn't working. 

What are your thoughts?  
-- 
Jelle
Smet
http://www.smetj.net
 
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 10
Date: Tue, 9 Mar 2010 13:51:16 +0300
From: Juki <juki.emma at gmail.com>
Subject: Re: [Nagios-users] Streamline Alerts/Notifications for user
	group
To: Martin Melin <mmelin at gmail.com>
Cc: Nagios Users Mail-list <nagios-users at lists.sourceforge.net>
Message-ID:
	<7545d7d21003090251y35d3df72xfc1c8e5e16e3444b at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

On 9 March 2010 12:13, Martin Melin <mmelin at gmail.com> wrote:

> If these users should never get anything else than DOWN notifications,
> use service_notification_options and host_notification_options in the
> contact definition.
>
>
Thanks, Martin

I have chosen to implement this method. I'll monitor it over the course
of
the day and return to the list with
some results.
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 11
Date: Tue, 9 Mar 2010 12:38:30 +0000
From: Gezina Dekker <gezinker at gmail.com>
Subject: [Nagios-users] NRPE install vs. SSL
To: Nagios-users at lists.sourceforge.net
Message-ID:
	<126dc2681003090438k140b4aa8p50697d47cc25dc50 at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Hi all,

During my NRPE install on Solaris 10, I ran into the problem that the
SSL
libraries are not visible to the install process. The install process is
looking for it in /usr but in effect there is a link in
/usr/include/openssl
that points to /usr/sfw/include/openssl.

Some products allow you to specify parms when you install, can I do the
same
here to get past this hurdle?

Regards

Gezina
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 12
Date: Tue, 9 Mar 2010 16:02:47 +0300
From: Juki <juki.emma at gmail.com>
Subject: Re: [Nagios-users] NRPE install vs. SSL
To: Gezina Dekker <gezinker at gmail.com>
Cc: Nagios-users at lists.sourceforge.net
Message-ID:
	<7545d7d21003090502w514e8b85u3ab2ba1be658ab7b at mail.gmail.com>
Content-Type: text/plain; charset="windows-1252"

Hi Gezina,

On 9 March 2010 15:38, Gezina Dekker <gezinker at gmail.com> wrote:

> Hi all,
>
> During my NRPE install on Solaris 10, I ran into the problem that the
SSL
> libraries are not visible to the install process. The install process
is
> looking for it in /usr but in effect there is a link in
/usr/include/openssl
> that points to /usr/sfw/include/openssl.
>
> Some products allow you to specify parms when you install, can I do
the
> same here to get past this hurdle?
>
>

Go to your NRPE install directory and run this;

./configure ?with-ssl=<path-to-your-ssl_dir>
?with-ssl-lib=<path-to-your-ssl_lib>

I have also found this link to be quite helpful;

http://www.utahsysadmin.com/2008/03/14/configuring-nagios-plugins-nrpe-o
n-solaris-10/


Regards,
Juki
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 13
Date: Tue, 9 Mar 2010 07:49:25 -0500
From: Richard Quintin <rich+nagios at quintinz.com>
Subject: Re: [Nagios-users] NRPE install vs. SSL
To: Gezina Dekker <gezinker at gmail.com>
Cc: Nagios-users at lists.sourceforge.net
Message-ID:
	<822f14061003090449k25d4975fj2490fb74ba393cf8 at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

./configure -h will list the options which includes:

--enable-ssl enables native SSL support
--with-ssl=DIR sets location of the SSL installation
--with-ssl-inc=DIR sets location of the SSL include files
--with-ssl-lib=DIR sets location of the SSL libraries


So you should be able to do something like
./configure --enable-ssl --with-ssl-inc=/usr/sfw/include/openssl
--with-ssl-lib=/usr/sfw/lib/openssl

On Tue, Mar 9, 2010 at 7:38 AM, Gezina Dekker <gezinker at gmail.com>
wrote:
> Hi all,
>
> During my NRPE install on Solaris 10, I ran into the problem that the
SSL
> libraries are not visible to the install process. The install process
is
> looking for it in /usr but in effect there is a link in
/usr/include/openssl
> that points to /usr/sfw/include/openssl.
>
> Some products allow you to specify parms when you install, can I do
the same
> here to get past this hurdle?
>
> Regards
>
> Gezina
>
------------------------------------------------------------------------
------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at 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
>



-- 
Richard Quintin, DBA
Database & Application Administration
Virginia Tech

~
http://www.familieslikeme.org/



------------------------------

Message: 14
Date: Tue, 9 Mar 2010 07:23:18 -0600
From: Marc Powell <marc at ena.com>
Subject: Re: [Nagios-users] check_by_ssh from a different username
To: nagios-users Mailinglist <nagios-users at lists.sourceforge.net>
Message-ID: <CA7614D7-8213-4D76-84E2-4E11689E30F7 at ena.com>
Content-Type: text/plain; charset=us-ascii


On Mar 9, 2010, at 12:46 AM, Morris, Patrick wrote:

>> How can I use check_by_ssh to monitor remote servers, when the 
>> username on the remote box is different from the Nagios user name?
> 
> Install the private keys of the remote users on the Nagios machine
under 
> the nagios user.  You've already determined they work, so now copy
them 
> over.

Actually, it's the opposite. He needs to add the nagios user's public
key to the authorized_keys file for each user on the remote machines.

Moving private keys around is a security no-no.

--
Marc




------------------------------

Message: 15
Date: Tue, 9 Mar 2010 07:27:06 -0600
From: Marc Powell <marc at ena.com>
Subject: Re: [Nagios-users] Notification Interval set to 0 not working
	as	per doc
To: Nagios Mailinglist <nagios-users at lists.sourceforge.net>
Message-ID: <C11D81A1-8D58-4767-8E05-103CAE795B9B at ena.com>
Content-Type: text/plain; charset=us-ascii


On Mar 9, 2010, at 1:50 AM, Jatin Davey wrote:

> Please let me know what needs to be done , i am kind of receving 1000 
> notifications per day for the same hosts.

>> 2. Given below is the output from one of the host as found in the 
>> object.cache file:
>> 
>> define host {

This has no relevance since you're asking about service notifications.
Look for the service definition in question in objects.cache. Verify
that retry_interval is what you expect it to be. If it is, you have
multiple nagios daemons running, escalations defined or some problem
with your MTA not removing messages from queue after delivery.

--
Marc




------------------------------

Message: 16
Date: Tue, 9 Mar 2010 07:31:23 -0600
From: Marc Powell <marc at ena.com>
Subject: Re: [Nagios-users] NSClient - ERROR: Failed to get PDH value.
To: Nagios Mailinglist <nagios-users at lists.sourceforge.net>
Message-ID: <B1CAB8E9-24DC-4ED6-A31C-05F74CF52F88 at ena.com>
Content-Type: text/plain; charset=us-ascii


On Mar 9, 2010, at 3:15 AM, Jatin Davey wrote:

> Hi
> 
> I am getting this error when i monitor my windows box using NSClient++
> 
> NSClient - ERROR: Failed to get PDH value.

Google says it may be this --

http://www.techadre.com/content/error-nsclient-counter-errors

--
Marc




------------------------------

Message: 17
Date: Tue, 9 Mar 2010 07:51:27 -0600
From: Marc Powell <marc at ena.com>
Subject: Re: [Nagios-users] Restrict user only to enable/disable
	checks
To: Nagios users <nagios-users at lists.sourceforge.net>
Message-ID: <DDEB4C09-A889-48A0-B3C0-8F2A62AD5B4F at ena.com>
Content-Type: text/plain; charset=us-ascii


On Mar 9, 2010, at 3:01 AM, Jelle Smet wrote:

> Hi list,
> 
> 
> I'm looking for a way to allow users do pretty much everything of the
host and service commands except enabling & disabling them.
> 
> I believe these are
> 
> cmd_typ=16 (for all services on the host)
> cmd_typ=4 (for the host check)
> cmd_typ=6 (for a service check)
> 
> There are a couple of things which come to my mind such as
mod_security, or some other apache level restricting stuff.

I expect that you could use htaccess to do this. Completely off the top
of my head and untested but try something like this in the .htaccess
file in the sbin directory --

RewriteEngine on
RewriteCond %{QUERY_STRING} ^(cmd_type=16|cmd_type=4|cmd_type=6) [OR] 
RewriteRule ^(.*)$ /not_allowed.html [R,L] 

--
Marc


------------------------------

Message: 18
Date: Tue, 9 Mar 2010 09:46:13 -0500
From: Matt Simmons <standalone.sysadmin at gmail.com>
Subject: Re: [Nagios-users] check_by_ssh from a different username
To: Marc Powell <marc at ena.com>
Cc: nagios-users Mailinglist <nagios-users at lists.sourceforge.net>
Message-ID:
	<5bcb62b61003090646n1e1cdf11v168a856b8b63a4f7 at mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

Yes. And you can simplify this by running ssh-copy-id as the Nagios
user:

--
nagios at monServ:~$ ssh-copy-id remUser at remHost
remUser at remHost's password:
Now try logging into the machine, with "ssh 'root at webdb1.int.ia'", and
check in:

  .ssh/authorized_keys

to make sure we haven't added extra keys that you weren't expecting.
--

Most Linux systems that I've seen provide this script. Other Unices
may not have it. If it's there, it makes it much faster than manually
copying and pasting public keys.

--Matt




On Tue, Mar 9, 2010 at 8:23 AM, Marc Powell <marc at ena.com> wrote:
>
> On Mar 9, 2010, at 12:46 AM, Morris, Patrick wrote:
>
>>> How can I use check_by_ssh to monitor remote servers, when the
>>> username on the remote box is different from the Nagios user name?
>>
>> Install the private keys of the remote users on the Nagios machine
under
>> the nagios user. ?You've already determined they work, so now copy
them
>> over.
>
> Actually, it's the opposite. He needs to add the nagios user's public
key to the authorized_keys file for each user on the remote machines.
>
> Moving private keys around is a security no-no.
>
> --
> Marc
>
>
>
------------------------------------------------------------------------
------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> Nagios-users mailing list
> Nagios-users at 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
>



-- 
LITTLE GIRL: But which cookie will you eat FIRST?
COOKIE MONSTER: Me think you have misconception of cookie-eating
process.

COOKIE MONSTER: Boy, I wish I were a sysadmin so I could go to the
NJ-PICC Sysadmin Conference! http://www.picconf.org



------------------------------

Message: 19
Date: Tue, 9 Mar 2010 15:43:59 +0000
From: Gezina Dekker <gezinker at gmail.com>
Subject: Re: [Nagios-users] NRPE install vs. SSL
To: Nagios-users at lists.sourceforge.net
Message-ID:
	<126dc2681003090743t5243d08fpbef88ff4dcae75be at mail.gmail.com>
Content-Type: text/plain; charset="iso-8859-1"

Thank you. very much

2010/3/9 Richard Quintin
<rich+nagios at quintinz.com<rich%2Bnagios at quintinz.com>
>

> ./configure -h will list the options which includes:
>
> --enable-ssl enables native SSL support
> --with-ssl=DIR sets location of the SSL installation
> --with-ssl-inc=DIR sets location of the SSL include files
> --with-ssl-lib=DIR sets location of the SSL libraries
>
>
> So you should be able to do something like
> ./configure --enable-ssl --with-ssl-inc=/usr/sfw/include/openssl
> --with-ssl-lib=/usr/sfw/lib/openssl
>
> On Tue, Mar 9, 2010 at 7:38 AM, Gezina Dekker <gezinker at gmail.com>
wrote:
> > Hi all,
> >
> > During my NRPE install on Solaris 10, I ran into the problem that
the SSL
> > libraries are not visible to the install process. The install
process is
> > looking for it in /usr but in effect there is a link in
> /usr/include/openssl
> > that points to /usr/sfw/include/openssl.
> >
> > Some products allow you to specify parms when you install, can I do
the
> same
> > here to get past this hurdle?
> >
> > Regards
> >
> > Gezina
> >
>
------------------------------------------------------------------------
------
> > Download Intel® Parallel Studio Eval
> > Try the new software tools for yourself. Speed compiling, find bugs
> > proactively, and fine-tune applications for parallel performance.
> > See why Intel Parallel Studio got high marks during beta.
> > http://p.sf.net/sfu/intel-sw-dev
> > _______________________________________________
> > Nagios-users mailing list
> > Nagios-users at 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
> >
>
>
>
> --
> Richard Quintin, DBA
> Database & Application Administration
> Virginia Tech
>
> ~
> http://www.familieslikeme.org/
>
-------------- next part --------------
An HTML attachment was scrubbed...

------------------------------

Message: 20
Date: Tue, 9 Mar 2010 11:25:02 -0500
From: alexus <alexus at gmail.com>
Subject: Re: [Nagios-users] priority: host or service who's really on
	top?
To: Jim Avery <jim at jimavery.me.uk>
Cc: Nagios Users <nagios-users at lists.sourceforge.net>
Message-ID:
	<6ae50c2d1003090825h58ab75e3ta17b9757c4837ccd at mail.gmail.com>
Content-Type: text/plain; charset=UTF-8

> If the service check fails, I think Nagios would check the host
> anyway. ?You might like to run a test to confirm this.

testing yes, but your answer didn't cover any part of my question at
all other then you suggest to test it..

anyone else actually knows the answer? i was thinking maybe not to
specify timeperiod inside of service and let it take it from host
definition?

-- 
http://alexus.org/



------------------------------

Message: 21
Date: Tue, 09 Mar 2010 08:32:50 -0800
From: "Morris, Patrick" <patrick.morris at hp.com>
Subject: Re: [Nagios-users] priority: host or service who's really on
	top?
To: "google at alexus.org" <google at alexus.org>
Cc: Nagios Users <nagios-users at lists.sourceforge.net>
Message-ID: <4B967832.7020001 at hp.com>
Content-Type: text/plain; charset=UTF-8; format=flowed

alexus wrote:
>> If the service check fails, I think Nagios would check the host
>> anyway.  You might like to run a test to confirm this.
>>     
>
> testing yes, but your answer didn't cover any part of my question at
> all other then you suggest to test it..
>
> anyone else actually knows the answer? i was thinking maybe not to
> specify timeperiod inside of service and let it take it from host
> definition?
>   

Hosts and services are independent of each other; neither has
precedence.

If you specify a timeperiod on your service checks, it applies to your 
service checks. If you apply it to your host checks, it applies to your 
host checks. They are two different things.



------------------------------

Message: 22
Date: Tue, 9 Mar 2010 10:40:03 -0600
From: "C. Bensend" <benny at bennyvision.com>
Subject: [Nagios-users] check_openmanage: "Failed to load external
	entity" with OMSA v5.3.0 on 2003
To: nagios-users at lists.sourceforge.net
Message-ID:
	
<279e9b559f2d76b3cd06182b043281a3.squirrel at webmail.stinkweasel.net>
Content-Type: text/plain;charset=iso-8859-1


Hey folks,

   I am working my way through some more Windows NSClient++
installs, and I've hit a 2003 server that is not happy with
check_openmanage (please forgive the horrible formatting):


C:\Program Files\NSClient++>check_openmanage -e -p -b
bat_charge=ALL/ctrl_fw=ALL
/ctrl_driver=ALL --omreport F:\dellopenmanage\oma\bin\omreport.exe

I/O warning : failed to load external entity
"E:/dellopenmanage/xslroot/oma/cli/
omclpr.xsl"
error
xsltParseStylesheetFile : cannot parse
E:/dellopenmanage/xslroot/oma/cli/omclpr.
xsl
I/O warning : failed to load external entity
"E:/dellopenmanage/xslroot/oma/cli/
omclpr.xsl"
error
xsltParseStylesheetFile : cannot parse
E:/dellopenmanage/xslroot/oma/cli/omclpr.
xsl
I/O warning : failed to load external entity
"E:/dellopenmanage/xslroot/oma/cli/
omclpr.xsl"
error
xsltParseStylesheetFile : cannot parse
E:/dellopenmanage/xslroot/oma/cli/omclpr.
xsl
Couldn't close filehandle for command
'"F:\dellopenmanage\oma\bin\omreport.exe"
-? 2>&1':
Problem running 'omreport storage controller': Error! XML Transformation
failed
Problem running 'omreport chassis memory': Error! XML Transformation
failed
Problem running 'omreport chassis fans': Error! XML Transformation
failed
Problem running 'omreport chassis pwrsupplies': Error! XML
Transformation
failed

Problem running 'omreport chassis temps': Error! XML Transformation
failed
Problem running 'omreport chassis processors': Error! XML Transformation
failed
Problem running 'omreport chassis volts': Error! XML Transformation
failed
Problem running 'omreport chassis batteries': Error! XML Transformation
failed
Problem running 'omreport chassis pwrmonitoring': Error! XML
Transformation fail
ed
Couldn't close filehandle for command
'"F:\dellopenmanage\oma\bin\omreport.exe"
chassis pwrmonitoring -fmt ssv':
Problem running 'omreport chassis intrusion': Error! XML Transformation
failed
Couldn't close filehandle for command
'"F:\dellopenmanage\oma\bin\omreport.exe"
system esmlog -fmt ssv':
------ SYSTEM: N/A, SN: N/A


   *** Note that I specified F: for the path to OMSA, and the output
is complaining about an external entity in E:.  That is not a typo.

   This is OMSA version 5.3.0 which I have dozens of, and this is
the first time I've seen this.

   This host is a DC, so while I believe it's probably a case of
"uninstall OMSA and re-install OMSA", I'm hoping someone has seen
this before and I can avoid the reboot.

   Trond?  Anyone?

Thanks much!

Benny


-- 
"Show me on the doll where the marketing touched you."
                               -- "Mally" on Fazed.net





------------------------------

Message: 23
Date: Tue, 9 Mar 2010 17:27:52 +0000
From: Jim Avery <jim at jimavery.me.uk>
Subject: Re: [Nagios-users] NSClient - ERROR: Failed to get PDH value.
To: Jatin Davey <jashokda at cisco.com>
Cc: Nagios Mailinglist <nagios-users at lists.sourceforge.net>
Message-ID:
	<765d77c81003090927ja9df489ud559e7fa37aa533e at mail.gmail.com>
Content-Type: text/plain; charset=ISO-8859-1

On 9 March 2010 09:15, Jatin Davey <jashokda at cisco.com> wrote:
> Hi
>
> I am getting this error when i monitor my windows box using NSClient++
>
> NSClient - ERROR: Failed to get PDH value.
>
> Please let me know what can be done.
>
> Thanks
> Jatin

I think it simply means it can't get the performance counter.  I would
start by looking at the performance utility on the server itself and
check you can see the relevant counter there.

I believe I've seen this problem when performance counters are messed
up one way or another, or one time when the performance counter had an
unusual character in it.  I expect you'll find more on the subject in
the forum on the NSClient++ web site.



------------------------------

Message: 24
Date: Tue, 9 Mar 2010 14:04:06 +0000 (UTC)
From: Rick <rick.garland at quantum.com>
Subject: [Nagios-users] event handler script not executing
To: nagios-users at lists.sourceforge.net
Message-ID: <loom.20100309T145848-92 at post.gmane.org>
Content-Type: text/plain; charset=us-ascii

Hi all:
 
Got Nagios core 3.2.0 on CentOS5. Been trying to get an event handler to
execute
but it will not. My configs;
 
define service{
    use                               local_service
    host_name                    my_host
    service_description         NFS Check
    check_period                  24x7
    check_interval                20
    max_check_attempts     4
    check_command            check_nrpe!check_nfs_mounts
    event_handler_enabled    1
    event_handler               
remount-nfs!$SERVICESTATE$!$SERVICESTATETYPE$!$SERVICEATTEMPT$
    notification_period           24x7
    notification_interval          120
    contact_groups              colorado
}
 
define command{
    command_name            remount-nfs
    command_line               $USER1$/eventhandlers/remount-nfs
$SERVICESTATE$
$SERVICESTATETYPE$ $SERVICEATTEMPT$
}
 
enable_event_handlers=1 in the nagios.cfg file
 
The script itself is very simple. At CRITICAL/SOFT/3 and CRITCAL/HARD/4
the
script will execute. Running at command line as UID=nagios it runs fine.
sudo is configured and nagios can mount NFS. 
 
 
The entry in the nagios.log
[1268099555] SERVICE_EVENT_HANDLER: my_host;NFS
CHECK;CRITCAL;SOFT;3;remount-nfs!CRITCAL!SOFT!3
 
I have followed the process through and it will not execute the
remount-nfs
event handler command. 

All perms, dir & file, have been checked. Everything else is working as
it
should including the $SERVICE* macros. Just the script is not being
executed.
 
What is missing?
 
Many thanks
 





------------------------------

Message: 25
Date: Tue, 09 Mar 2010 18:10:07 +0100
From: Trond Hasle Amundsen <t.h.amundsen at usit.uio.no>
Subject: Re: [Nagios-users] check_openmanage: "Failed to load external
	entity" with OMSA v5.3.0 on 2003
To: "C. Bensend" <benny at bennyvision.com>
Cc: nagios-users at lists.sourceforge.net
Message-ID: <15tiq95a0b4.fsf at tux.uio.no>
Content-Type: text/plain; charset=us-ascii

"C. Bensend" <benny at bennyvision.com> writes:

>    I am working my way through some more Windows NSClient++
> installs, and I've hit a 2003 server that is not happy with
> check_openmanage (please forgive the horrible formatting):
>
>
> C:\Program Files\NSClient++>check_openmanage -e -p -b
> bat_charge=ALL/ctrl_fw=ALL
> /ctrl_driver=ALL --omreport F:\dellopenmanage\oma\bin\omreport.exe
>
> I/O warning : failed to load external entity
> "E:/dellopenmanage/xslroot/oma/cli/
> omclpr.xsl"
> error
> xsltParseStylesheetFile : cannot parse
> E:/dellopenmanage/xslroot/oma/cli/omclpr.
> xsl
> I/O warning : failed to load external entity
> "E:/dellopenmanage/xslroot/oma/cli/
> omclpr.xsl"
> error
> xsltParseStylesheetFile : cannot parse
> E:/dellopenmanage/xslroot/oma/cli/omclpr.
> xsl
> I/O warning : failed to load external entity
> "E:/dellopenmanage/xslroot/oma/cli/
> omclpr.xsl"
> error
> xsltParseStylesheetFile : cannot parse
> E:/dellopenmanage/xslroot/oma/cli/omclpr.
> xsl
> Couldn't close filehandle for command
> '"F:\dellopenmanage\oma\bin\omreport.exe"
> -? 2>&1':
> Problem running 'omreport storage controller': Error! XML
Transformation
> failed
> Problem running 'omreport chassis memory': Error! XML Transformation
failed
> Problem running 'omreport chassis fans': Error! XML Transformation
failed
> Problem running 'omreport chassis pwrsupplies': Error! XML
Transformation
> failed
>
> Problem running 'omreport chassis temps': Error! XML Transformation
failed
> Problem running 'omreport chassis processors': Error! XML
Transformation
> failed
> Problem running 'omreport chassis volts': Error! XML Transformation
failed
> Problem running 'omreport chassis batteries': Error! XML
Transformation
> failed
> Problem running 'omreport chassis pwrmonitoring': Error! XML
> Transformation fail
> ed
> Couldn't close filehandle for command
> '"F:\dellopenmanage\oma\bin\omreport.exe"
> chassis pwrmonitoring -fmt ssv':
> Problem running 'omreport chassis intrusion': Error! XML
Transformation
> failed
> Couldn't close filehandle for command
> '"F:\dellopenmanage\oma\bin\omreport.exe"
> system esmlog -fmt ssv':
> ------ SYSTEM: N/A, SN: N/A
>
>
>    *** Note that I specified F: for the path to OMSA, and the output
> is complaining about an external entity in E:.  That is not a typo.
>
>    This is OMSA version 5.3.0 which I have dozens of, and this is
> the first time I've seen this.
>
>    This host is a DC, so while I believe it's probably a case of
> "uninstall OMSA and re-install OMSA", I'm hoping someone has seen
> this before and I can avoid the reboot.
>
>    Trond?  Anyone?

I've seen XML errors from OpenManage when probing disks with broken
firmware, but this seems to be something else. Do you get the same XML
errors when you run the failing commands manually on the server? If so,
I'm afraid there isn't much check_openmanage can do about it.

A reinstall of OpenManage is probably the next logical step..

Cheers,
-- 
Trond H. Amundsen <t.h.amundsen at usit.uio.no>
Center for Information Technology Services, University of Oslo



------------------------------

------------------------------------------------------------------------
------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

------------------------------

_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users


End of Nagios-users Digest, Vol 46, Issue 14
********************************************

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Nagios-users mailing list
Nagios-users at 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





More information about the Users mailing list