Re: [Nagios-users] Issues with check_by_ssh

2012-08-15 Thread Badri Pillai
Hi,

 

since the plugin is executed as user nagios, check if the command (including
all params) works as user nagios (or whatever user id it is running as)

 

Problem could be:

1)  Nagios user  can’t read the ssh key file as it resides in root
directory

2)  Or it can’t write the ~nagios/.ssh/known_hosts file

 

PS: In general it is not a good practice to use root ssh key for nagios
commands

   I would suggest to create a ssh key for nagios user and place it in
nagios home or a place where nagios user has access to

 

Regards,

 

bp

 

 

Von: Eduardo Montes de Oca S. [mailto:edren...@gmail.com] 
Gesendet: Mittwoch, 15. August 2012 17:36
An: nagios-users@lists.sourceforge.net
Betreff: [Nagios-users] Issues with check_by_ssh

 

Hi list,

 

I have some issues with the plugin check_by_ssh. In particular, there is
one error:

 

When I run a shell script located in another server, from the Nagios server
using the check_by_ssh plugin, I don't have any errors and I can see the
result of the script, like this:

 

 mailto:root@TSM-SRV-V-114 root@nagioserver#
/usr/lib/nagios/plugins/check_by_ssh -l root -H ipxenserver -C
/usr/lib/nagios/plugins/check_Xencpu
“OK:CPU%= 3”

 

But, by any strange reason, when I configure the check for Nagios presents
the results in its interface, I have the error:

Imágenes integradas 1

 

I have made the ssh authorization keys in both servers (Nagios and Xen), I
configured the users, permissions,etc. And I can't to do this work it.

 

Could someone help me solve this problem

 

 

This is a part of my definition files:

#XENServer

define command {

   command_name check_by_ssh_xentop

   command_line /usr/lib/nagios/plugins/check_by_ssh -l '$ARG1$'
-H '$HOSTADDRESS$' -C '$ARG2$' -i '$ARG3$'

   }

#Hypervisor check

define service{

use  generic-service

host_name  ORLANDO 

service_description Hypervisor CPU

check_command
check_by_ssh_xentop!root!ipxenserver!/usr/lib/nagios/plugins/check_Xencpu.sh
!/root/.ssh/id_rsa!

}

 

 

 

 

Regards!

 

 

-- 

IC. Eduardo Montes de Oca Sánchez
Skype: edrendar
Gmail: edren...@gmail.com
MSN: ed_montesde...@hotmail.com
Movil: 5523419886

https://linuxcounter.net/cert/549074.png

image001.png--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___
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] n2rrd 1.4.4

2011-09-09 Thread Badri Pillai
Hi,

..
 works great for us.
Thanks, good to know.


 1) We would like to upgrade from 1.4.3  to 1.4.4, but would like to know
 anyone out there have already upgraded to the latest release.
well we have upgraded some customer sites and until now seen no problems.
if you notice any please let us know.

 2) any one has tried the new graph  templates dir (see
Ahmm, we know we are still behind documenting new features in 1.4.4.
In a weeks time the document will be upto date, as far as n2rrd features
are concerned.

 http://n2rrd-wiki.diglinks.com/display/n2rrd/Directory+and+Files)
 - */etc/n2rrd/templates/graph/plugins/custom/*
 - **/etc/n2rrd/templates/graph/plugins/default/*
I assume this way
   1)  we need to create once a template for a check command alias
   2)  and this graph template will be used by all services using this
 command alias
   3)  good part is:  service names could be different
   4) Such that we don't have to create symlinks links e.g. eth.t to
 eth1.t, eth2.t etc..

Exactly.

Regards,

dev team




--
Why Cloud-Based Security and Archiving Make Sense
Osterman Research conducted this study that outlines how and why cloud
computing security and archiving is rapidly being adopted across the IT 
space for its ease of implementation, lower cost, and increased 
reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/
___
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] nagiosgrapher: adding further DS to rrd database

2011-02-13 Thread Badri Pillai
Hi,

have a look at RRD::Simple CPAN module..

n2rrd uses that!!

-bp
On Feb 13, 2011, at 5:06 PM, Yueh-Hung Liu wrote:

 if my memory isn't going wrong, rrdtool has no direct approach to do that.
 you have to dump the specific rrd file to a text format(XML), edit it
 with adding extra DSs, then restore it to an rrd file.
 maybe there are some 3rd-party utilities can do that, you can search them.
 
 On Sun, Feb 13, 2011 at 10:58 PM, Marcus Schopen li...@localguru.de wrote:
 Hi,
 
 this is not a specific nagios question, but I'm using nagios and
 nagiosgrapher and looking for a working howto to add further DS to an
 exsiting rrd.
 
 Thanks,
 Marcus
 
 
 
 --
 The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
 Pinpoint memory and threading errors before they happen.
 Find and fix more than 250 security defects in the development cycle.
 Locate bottlenecks in serial and parallel code that limit performance.
 http://p.sf.net/sfu/intel-dev2devfeb
 ___
 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
 
 
 --
 The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
 Pinpoint memory and threading errors before they happen.
 Find and fix more than 250 security defects in the development cycle.
 Locate bottlenecks in serial and parallel code that limit performance.
 http://p.sf.net/sfu/intel-dev2devfeb
 ___
 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
 


--
The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
Pinpoint memory and threading errors before they happen.
Find and fix more than 250 security defects in the development cycle.
Locate bottlenecks in serial and parallel code that limit performance.
http://p.sf.net/sfu/intel-dev2devfeb
___
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